Skip to content
braivoPublic

About

Braivo Learning Format: an open, extensible specification for portable learning content (reading material, questions with answer keys, images, and audio), with JSON Schemas, examples, a TypeScript validator, and conformance tests. Draft 0.1.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Braivo Spec

An open, extensible format for portable learning content, published at braivo.org. Konstantin Tarkus founded Braivo Spec.

content/      the specification, in plain Markdown
schemas/      its JSON Schemas, one directory per version
examples/     example packages
validator/    a TypeScript validator and its command line
conformance/  test packages with expected verdicts, for any implementation
website/      the Astro and Fumadocs site that publishes both
docs/adr/     design decisions

Development

Requires Bun.

bun install
bun run dev              # http://localhost:4321
bun run validate <path>  # check a package directory or .braivo file
bun run format           # format code
bun run lint             # lint code
bun run test             # unit and conformance tests
bun run check            # check formatting, lint, type-check, test, build, and check links
bun run preview          # serve the build as Cloudflare would

Writing pages

A page is a .md file under content/ with a title in its frontmatter. Its path is its URL under /spec: content/index.md is /spec, and content/a/b.md is /spec/a/b. A meta.json beside pages orders them in the sidebar.

Link with relative paths to files, as on GitHub: ./manifest.md#fields, ../schemas/0.1/manifest.json. The build turns them into site URLs, or GitHub URLs for files the site does not publish. Put images in content/.

A file at schemas/<version>/<name>.json is served at /schema/<version>/<name>.json.

Contributing

See the contribution guidelines and project license terms.

Deployment

bun run deploy publishes the static build to Cloudflare Workers at braivo.org. It needs wrangler login and access to the braivo.org zone.

About

Braivo Learning Format: an open, extensible specification for portable learning content (reading material, questions with answer keys, images, and audio), with JSON Schemas, examples, a TypeScript validator, and conformance tests. Draft 0.1.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages