Make a Ledu book
A Ledu book is a folder of JSON, audio and images. Here is the whole format, with the tools to check a book before you send it.
Download the starter kitSpec as MarkdownJSON Schemas
Spec, schemas, validator, sample book and AI brief · ZIP, 150 KB
From idea to book
- 1
Start from the sample
Copy the sample book in the kit, rename it and give it a new id.
- 2
Write the sections
By hand, from your own tools, or with an AI assistant.
- 3
Validate
Run the validator until it prints 0 errors.
- 4
Send it to Ledu
We check it on real devices and send you a preview code.
Ideas in one minute
- A book is a folder (a package). Its
book.jsonis the manifest: what the book is called, its cover, its languages and its table of contents. - The table of contents lists sections. Each section is one JSON file of blocks, read top to bottom: a heading, a paragraph, a word list, a dialogue, an exercise and so on.
- Sections sit directly in the book (
sections) or inside chapters (chapters), one level deep. Chapters can carry a group (a unit) for a second level in the contents. - A book teaches a target language to a reader of a base language. Base-language text is a
localized map (
{"en": "…", "zh-Hans": "…"}); target-language text is a plain string in a field namedfa. - Audio, images and stroke data are files inside the package, named by paths relative to the package folder.
The format, part by part
Package and values
The book folder, and the value types every file shares.
The manifest
book.json: the book's identity, languages and table of contents.
Sections and blocks
Section files, and every block for text, lines, grammar and lesson flow.
Exercises
The six scored exercise types and how their answers are checked.
Passages and lexicon
Long texts with tap-a-word meanings and sentence audio.
Scripts and writing
Letter charts, stroke data, Japanese furigana and Chinese verse.
Validation and versions
What the validator checks, and how format versions keep books readable.
Writing a good book
Audio, ids, images and a lesson rhythm that works.
Publishing
From a validated package to a book in the Ledu app.
AI assistants
A prompt to paste, and the files an assistant or editor can read.