SVOCS: A Svelte-first Docs Generator
As a data engineer, I care about two things: how fast I can ship and how much I'll hate maintaining this in six months. SVOCS hits both because it treats Markdown as a first-class citizen while leveraging Svelte 5 runes for state management. No more fighting with legacy stores or awkward component porting.
The Technical Breakdown
SVOCS is essentially a high-performance wrapper around SvelteKit and Pagefind. Here is how the workflow actually functions:
.md or .svx files into the content/ directory. If you need to control the order or titles of your sidebar, you use a _meta.json file. It's clean, predictable, and keeps the config out of the global scope.adapter-static for deployment. The resulting JS payload is tiny (~100KB gzipped), which is a breath of fresh air compared to the bloated bundles usually associated with "modern" docs.# Getting a dev environment up is basically instant
$ bun run dev
➜ ready in ~300msReal-world Utility
The real win here is the .svx support. Being able to drop a live, interactive Svelte component directly into a Markdown file is a massive productivity gain for anyone building technical documentation or API demos. You get the writing speed of Markdown with the power of a full-blown framework.
It also handles the boring stuff that usually takes hours to configure:
llms.txt support (crucial for making your docs AI-readable).If you are already using SvelteKit, switching to this eliminates the context-switching tax. You use your existing components, your existing logic, and you ship a site that actually scores 95+ on Lighthouse.
https://svocs.dev/