Query and Render Your Codebase
See the code
Turn your JavaScript, TypeScript, Markdown, and MDX
into reusable structured data for blogs, docs, and presentations
so your content always matches what’s in your codebase.
npx create-renoun@latest
import { Directory } from 'renoun'
const posts = new Directory({
path: 'posts',
loader: (path) => import(`./posts/${path}.mdx`),
})
async function Page({ slug }: { slug: string }) {
const post = await posts.getFile(slug, 'mdx')
const Content = await post.getContent()
return <Content />
}
The easiest way to get started using renoun is with an application template:
Maintaining technical blogs, docs, and presentations is hard because the source of truth is split between content files, code, and examples causing drift. The renoun SDK turns your codebase into structured, queryable data (files, exports, types, and MDX) so you can render indexes, navigations, API references, and pages directly from what’s in the repo, keeping everything in sync as it changes.
See the Contributing Guide for details on how to contribute to renoun.
(top 24 of 28)
3,574 followers · starred Dec 2023
457 followers · starred Dec 2023
849 followers · starred May 2024
2,230 followers · starred Mar 2024
Query and Render Your Codebase
See the code
Turn your JavaScript, TypeScript, Markdown, and MDX
into reusable structured data for blogs, docs, and presentations
so your content always matches what’s in your codebase.
npx create-renoun@latest
import { Directory } from 'renoun'
const posts = new Directory({
path: 'posts',
loader: (path) => import(`./posts/${path}.mdx`),
})
async function Page({ slug }: { slug: string }) {
const post = await posts.getFile(slug, 'mdx')
const Content = await post.getContent()
return <Content />
}
The easiest way to get started using renoun is with an application template:
Maintaining technical blogs, docs, and presentations is hard because the source of truth is split between content files, code, and examples causing drift. The renoun SDK turns your codebase into structured, queryable data (files, exports, types, and MDX) so you can render indexes, navigations, API references, and pages directly from what’s in the repo, keeping everything in sync as it changes.
See the Contributing Guide for details on how to contribute to renoun.
(top 24 of 28)
3,574 followers · starred Dec 2023
457 followers · starred Dec 2023
849 followers · starred May 2024
2,230 followers · starred Mar 2024