Documentation

Example project

The standalone repository is a complete, independently cloneable TinyJS site and the source for this documentation site.

Open the TinyJS example repository on GitHub.

Clone it, install its dependencies, and start the server:

git clone https://github.com/carlfairclough/tinyjs-example.git
cd tinyjs-example
npm install
npm run serve

Open http://127.0.0.1:8080. To generate the same HTML under dist/:

npm run build

What it demonstrates

The repository shows the TinyJS conventions working together in one small, inspectable codebase:

  • YAML and JSON content documents
  • numbered navigation and unlisted routes
  • nested TSX layouts
  • selected page templates
  • a safe Markdown field
  • an actual 404 response
  • static and dynamic output from one renderer

The page you are reading is itself rendered by TinyJS with no React or client runtime.