Guides
Surfaces
Journal
Long-form reading: books as directories of chapters, with a reading view and optional narration.The journal surface publishes books. A book is a directory, a chapter is an
MDX file inside it, and one books.json holds the order and the jacket copy.
It requires no slices and runs on zero environment variables.
Its files, listed in composition/surfaces/journal.json, are
src/app/(journal), src/lib/journal and src/content/journal. It serves
/journal and declares rootRedirect: "/journal" for compositions where
nothing else serves /.
Last updated October 18, 2026- /journal — the shelf, one cover per book. A cover links to the book's first chapter.
- /journal/<book> — the book: cover, subtitle, author and chapter list.
- /journal/<book>/<chapter> — the reading view.
- /journal/about — the author, read from books.json.
- Create a directory under books/. Its name is the book's id and its URL segment.
- Add one .mdx file per chapter, with title, summary, order and publishedAt in the frontmatter. Chapters sort by order, then by title.
- Add an entry to books in books.json with the same id and a title, subtitle, author, cover and summary.
Edit this page on GitHub