Problem
Leadtype says "bring your own UI," but users need concrete proof that it works well in each major framework. Svelte/SvelteKit and Astro should be first-class supported targets, not afterthoughts.
The goal is not one generic integration that feels awkward everywhere. The goal is one agnostic core with native-feeling framework recipes.
Proposal
Create a first-class framework integration matrix.
Initial supported matrix:
- Next.js App Router
- Nuxt/Nitro
- Astro
- SvelteKit with
mdsvex
- TanStack Start / Vite React
- Fumadocs
Each framework should document:
- MDX/markdown source setup.
- How to render human docs pages.
- How to serve generated artifacts.
- How to serve raw markdown or content-negotiated markdown.
- How to load static search JSON.
- What runs at build time vs server/runtime.
Framework-Specific Expectations
SvelteKit:
- Use
+page.server.ts / +page.svelte for human pages.
- Use
+server.ts for markdown/API responses.
- Use
entries() for prerendered dynamic routes.
- Use stores/runes for client search ergonomics.
Astro:
- Use
getStaticPaths() for generated routes.
- Use endpoints for markdown responses.
- Interop with Astro Content Collections where users already use them.
- Use framework islands or plain client scripts for search UI.
Nuxt:
- Use Nitro routes/middleware.
- Use Vue composables for search.
- Position clearly against Nuxt Content: Nuxt Content is a Nuxt CMS; Leadtype is the portable artifact pipeline.
Next:
- Use App Router pages/route handlers.
- Use
generateStaticParams().
- Use React hooks for search ergonomics.
Acceptance Criteria
Problem
Leadtype says "bring your own UI," but users need concrete proof that it works well in each major framework. Svelte/SvelteKit and Astro should be first-class supported targets, not afterthoughts.
The goal is not one generic integration that feels awkward everywhere. The goal is one agnostic core with native-feeling framework recipes.
Proposal
Create a first-class framework integration matrix.
Initial supported matrix:
mdsvexEach framework should document:
Framework-Specific Expectations
SvelteKit:
+page.server.ts/+page.sveltefor human pages.+server.tsfor markdown/API responses.entries()for prerendered dynamic routes.Astro:
getStaticPaths()for generated routes.Nuxt:
Next:
generateStaticParams().Acceptance Criteria
/llms.txt,/llms-full.txt, markdown mirrors, and search JSON.mdsvexsetup with Leadtype remark/source plugins.getStaticPaths()and endpoint examples.