{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "template-developer-docs",
  "type": "registry:block",
  "title": "Developer docs template",
  "description": "A documentation landing page for a developer product (Lodestar, an API for maps): the install command above the fold, a real terminal session, a three-step quickstart with copyable code, the guides, the latest releases and who builds on it. Near-black and green, monospaced, dense.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/navbar-simple.json",
    "https://ui.klarhimmel.com/r/hero-code.json",
    "https://ui.klarhimmel.com/r/features-terminal.json",
    "https://ui.klarhimmel.com/r/steps-numbered.json",
    "https://ui.klarhimmel.com/r/features-grid.json",
    "https://ui.klarhimmel.com/r/about-timeline.json",
    "https://ui.klarhimmel.com/r/logos-strip.json",
    "https://ui.klarhimmel.com/r/cta-band.json",
    "https://ui.klarhimmel.com/r/footer-columns.json",
    "https://ui.klarhimmel.com/r/theme.json"
  ],
  "files": [
    {
      "path": "templates/developer-docs.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/templates/developer-docs.tsx",
      "content": "// Developer docs template (Klarhimmel UI). Each section is a block, its copy is the block's props. Change the\n// copy here; colours, fonts and radius come from the Style. Blocks validate their props and fall back field by field.\n//\n// Wire before shipping:\n//  - Links: `#section` links jump within the page. Links to https://example.com are placeholders: point them at your own pages.\n//  - Forms: set `action` on the footer newsletter (it is `/replace-with-your-endpoint` now). With `method: 'post'` the form submits natively, with no JavaScript. The live demo never submits.\n//  - Style: uses the default Klarhimmel palette, Geist fonts, radius and spacing. Import theme.css after Tailwind.\n\nimport { Theme, type Style } from '../theme/style';\nimport { BlockSurface } from '../blocks/surface';\nimport NavbarSimple, { spec as NavbarSimpleSpec } from '../blocks/navbar-simple';\nimport HeroCode, { spec as HeroCodeSpec } from '../blocks/hero-code';\nimport FeaturesTerminal, { spec as FeaturesTerminalSpec } from '../blocks/features-terminal';\nimport StepsNumbered, { spec as StepsNumberedSpec } from '../blocks/steps-numbered';\nimport FeaturesGrid, { spec as FeaturesGridSpec } from '../blocks/features-grid';\nimport AboutTimeline, { spec as AboutTimelineSpec } from '../blocks/about-timeline';\nimport LogosStrip, { spec as LogosStripSpec } from '../blocks/logos-strip';\nimport CtaBand, { spec as CtaBandSpec } from '../blocks/cta-band';\nimport FooterColumns, { spec as FooterColumnsSpec } from '../blocks/footer-columns';\n\nconst style: Style = {\n  \"preset\": \"Klarhimmel\",\n  \"mode\": \"light\",\n  \"colors\": {\n    \"canvas\": \"#faf9f7\",\n    \"surface\": \"#ffffff\",\n    \"ink\": \"#17171a\",\n    \"muted\": \"#6b6b75\",\n    \"line\": \"#e8e6e1\",\n    \"accent\": \"#1c6ee0\",\n    \"accentFg\": \"#ffffff\"\n  },\n  \"altColors\": {\n    \"canvas\": \"#0b0b0d\",\n    \"surface\": \"#1a1a1f\",\n    \"ink\": \"#f2f1ee\",\n    \"muted\": \"#8f8f9a\",\n    \"line\": \"#383842\",\n    \"accent\": \"#5b9bf5\",\n    \"accentFg\": \"#0b1a2c\"\n  },\n  \"fonts\": {\n    \"display\": \"Geist\",\n    \"sans\": \"Geist\",\n    \"mono\": \"Geist Mono\"\n  },\n  \"radius\": 8,\n  \"size\": 16\n};\n\nexport default function DeveloperDocsTemplate() {\n  return (\n    <Theme theme=\"brand\" style={style} mode=\"system\">\n      <BlockSurface id=\"top\">\n        <NavbarSimple\n          props={{\n            ...NavbarSimpleSpec.defaults,\n            ...{\n              \"brand\": \"Lodestar\",\n              \"links\": [\n                {\n                  \"label\": \"Quickstart\",\n                  \"href\": \"#quickstart\"\n                },\n                {\n                  \"label\": \"Guides\",\n                  \"href\": \"#guides\"\n                },\n                {\n                  \"label\": \"Changelog\",\n                  \"href\": \"#changelog\"\n                },\n                {\n                  \"label\": \"Reference\",\n                  \"href\": \"https://example.com/reference\"\n                }\n              ],\n              \"cta\": {\n                \"label\": \"Get an API key\",\n                \"href\": \"#start\"\n              },\n              \"secondary\": {\n                \"label\": \"GitHub\",\n                \"href\": \"https://example.com/github\"\n              },\n              \"themeToggle\": true\n            },\n          } as typeof NavbarSimpleSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"hero\">\n        <HeroCode\n          props={{\n            ...HeroCodeSpec.defaults,\n            ...{\n              \"eyebrow\": \"Lodestar API 2.4\",\n              \"title\": \"Maps, routes and places in one API\",\n              \"description\": \"Geocoding, routing and tiles with one key and one client library. Typed, documented, and fast from the first request.\",\n              \"command\": \"npm install @lodestar/sdk\",\n              \"primary\": {\n                \"label\": \"Read the quickstart\",\n                \"href\": \"#quickstart\"\n              },\n              \"secondary\": {\n                \"label\": \"API reference\",\n                \"href\": \"https://example.com/reference\"\n              }\n            },\n          } as typeof HeroCodeSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"demo\" tone=\"muted\">\n        <FeaturesTerminal\n          props={{\n            ...FeaturesTerminalSpec.defaults,\n            ...{\n              \"eyebrow\": \"See it work\",\n              \"title\": \"From install to a route in one terminal\",\n              \"description\": \"Every call is a typed function, and every response is documented down to the field.\",\n              \"link\": {\n                \"label\": \"Open the playground\",\n                \"href\": \"https://example.com/playground\"\n              },\n              \"terminal\": {\n                \"command\": \"npx lodestar route Göteborg Malmö\",\n                \"output\": \"Route found in 41 ms: 283 km, 2 h 52 min, via E6\"\n              },\n              \"prompt\": {\n                \"label\": \"Ask the docs\",\n                \"text\": \"How do I avoid tolls on a route?\"\n              }\n            },\n          } as typeof FeaturesTerminalSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"quickstart\">\n        <StepsNumbered\n          props={{\n            ...StepsNumberedSpec.defaults,\n            ...{\n              \"eyebrow\": \"Quickstart\",\n              \"title\": \"Your first request in three steps\",\n              \"description\": \"Takes about five minutes. You need Node 20 or later.\",\n              \"layout\": \"list\",\n              \"items\": [\n                {\n                  \"title\": \"Install the SDK\",\n                  \"description\": \"One package, no peer dependencies.\",\n                  \"meta\": \"Terminal\",\n                  \"code\": \"npm install @lodestar/sdk\"\n                },\n                {\n                  \"title\": \"Create a client with your key\",\n                  \"description\": \"Keys are scoped per project. Keep yours out of the browser.\",\n                  \"meta\": \"client.ts\",\n                  \"code\": \"import { Lodestar } from \\\"@lodestar/sdk\\\";\\nconst lodestar = new Lodestar({ key: process.env.LODESTAR_KEY });\"\n                },\n                {\n                  \"title\": \"Ask for a route\",\n                  \"description\": \"Distances are in metres, durations in seconds.\",\n                  \"meta\": \"route.ts\",\n                  \"code\": \"const route = await lodestar.route({ from: \\\"Göteborg\\\", to: \\\"Malmö\\\" });\"\n                }\n              ]\n            },\n          } as typeof StepsNumberedSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"guides\" tone=\"muted\">\n        <FeaturesGrid\n          props={{\n            ...FeaturesGridSpec.defaults,\n            ...{\n              \"columns\": \"3\",\n              \"eyebrow\": \"Guides\",\n              \"title\": \"Learn the parts you need\",\n              \"description\": \"Short guides, each with a runnable example.\",\n              \"items\": [\n                {\n                  \"icon\": \"compass\",\n                  \"title\": \"Geocoding\",\n                  \"description\": \"Turn an address into coordinates and back, in forty languages.\"\n                },\n                {\n                  \"icon\": \"zap\",\n                  \"title\": \"Routing\",\n                  \"description\": \"Fastest, shortest and avoiding tolls, with alternatives.\"\n                },\n                {\n                  \"icon\": \"globe\",\n                  \"title\": \"Map tiles\",\n                  \"description\": \"Vector tiles for any client, styled in one JSON file.\"\n                },\n                {\n                  \"icon\": \"lock\",\n                  \"title\": \"Authentication\",\n                  \"description\": \"Keys, scopes, rotation and signed requests.\"\n                },\n                {\n                  \"icon\": \"gauge\",\n                  \"title\": \"Rate limits\",\n                  \"description\": \"Quotas, retries and how to stay under them.\"\n                },\n                {\n                  \"icon\": \"code\",\n                  \"title\": \"Webhooks\",\n                  \"description\": \"Get told when a long job finishes, with signed payloads.\"\n                }\n              ]\n            },\n          } as typeof FeaturesGridSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"changelog\">\n        <AboutTimeline\n          props={{\n            ...AboutTimelineSpec.defaults,\n            ...{\n              \"eyebrow\": \"Changelog\",\n              \"title\": \"What shipped lately\",\n              \"lead\": \"Every release, with the breaking changes called out first. Subscribe below to get them by email.\",\n              \"items\": [\n                {\n                  \"year\": \"v2.4\",\n                  \"title\": \"Alternative routes\",\n                  \"description\": \"Ask for up to three alternatives, each with its own duration and distance.\"\n                },\n                {\n                  \"year\": \"v2.3\",\n                  \"title\": \"Faster geocoding\",\n                  \"description\": \"Median latency down from 90 to 41 milliseconds. No code changes needed.\"\n                },\n                {\n                  \"year\": \"v2.2\",\n                  \"title\": \"Signed webhooks\",\n                  \"description\": \"Verify every payload with a shared secret. Unsigned webhooks are deprecated.\"\n                },\n                {\n                  \"year\": \"v2.1\",\n                  \"title\": \"Vector tiles\",\n                  \"description\": \"Tile styles in JSON, with a live editor in the dashboard.\"\n                }\n              ]\n            },\n          } as typeof AboutTimelineSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"used-by\" tone=\"muted\">\n        <LogosStrip\n          props={{\n            ...LogosStripSpec.defaults,\n            ...{\n              \"title\": \"Built on Lodestar\",\n              \"description\": \"Teams that ship maps with it.\",\n              \"logos\": [\n                {\n                  \"name\": \"Fraktia\"\n                },\n                {\n                  \"name\": \"Cykelkollen\"\n                },\n                {\n                  \"name\": \"Vägvisaren\"\n                },\n                {\n                  \"name\": \"Rutten\"\n                },\n                {\n                  \"name\": \"Kartlabbet\"\n                },\n                {\n                  \"name\": \"Hamnguiden\"\n                }\n              ]\n            },\n          } as typeof LogosStripSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"start\" tone=\"inverse\">\n        <CtaBand\n          props={{\n            ...CtaBandSpec.defaults,\n            ...{\n              \"title\": \"Get a key and make your first call\",\n              \"description\": \"Free up to 50,000 requests a month. No card.\",\n              \"primary\": {\n                \"label\": \"Get an API key\",\n                \"href\": \"#start\"\n              },\n              \"secondary\": {\n                \"label\": \"Read the reference\",\n                \"href\": \"https://example.com/reference\"\n              }\n            },\n          } as typeof CtaBandSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"footer\" tone=\"muted\">\n        <FooterColumns\n          props={{\n            ...FooterColumnsSpec.defaults,\n            ...{\n              \"brand\": \"Lodestar\",\n              \"tagline\": \"Maps, routes and places in one API.\",\n              \"columns\": [\n                {\n                  \"title\": \"Docs\",\n                  \"links\": [\n                    {\n                      \"label\": \"Quickstart\",\n                      \"href\": \"#quickstart\"\n                    },\n                    {\n                      \"label\": \"Guides\",\n                      \"href\": \"#guides\"\n                    },\n                    {\n                      \"label\": \"Changelog\",\n                      \"href\": \"#changelog\"\n                    }\n                  ]\n                },\n                {\n                  \"title\": \"Developers\",\n                  \"links\": [\n                    {\n                      \"label\": \"Reference\",\n                      \"href\": \"https://example.com/reference\"\n                    },\n                    {\n                      \"label\": \"SDKs\",\n                      \"href\": \"https://example.com/sdks\"\n                    },\n                    {\n                      \"label\": \"Status\",\n                      \"href\": \"https://example.com/status\"\n                    }\n                  ]\n                },\n                {\n                  \"title\": \"Company\",\n                  \"links\": [\n                    {\n                      \"label\": \"About\",\n                      \"href\": \"https://example.com/about\"\n                    },\n                    {\n                      \"label\": \"Security\",\n                      \"href\": \"https://example.com/security\"\n                    },\n                    {\n                      \"label\": \"Contact\",\n                      \"href\": \"https://example.com/contact\"\n                    }\n                  ]\n                }\n              ],\n              \"legal\": \"© 2026 Lodestar AB\",\n              \"newsletter\": {\n                \"title\": \"Release notes by email\",\n                \"placeholder\": \"you@example.com\",\n                \"submit\": \"Subscribe\",\n                \"note\": \"Only releases, about twice a month.\",\n                \"action\": \"/replace-with-your-endpoint\",\n                \"method\": \"post\"\n              },\n              \"legalLinks\": [\n                {\n                  \"label\": \"Privacy\",\n                  \"href\": \"https://example.com/privacy\"\n                },\n                {\n                  \"label\": \"Terms\",\n                  \"href\": \"https://example.com/terms\"\n                }\n              ]\n            },\n          } as typeof FooterColumnsSpec.defaults}\n        />\n      </BlockSurface>\n    </Theme>\n  );\n}\n"
    }
  ]
}
