stave.dev

Examples

Annotated walkthroughs of real Zero Framework modules, with ShadowComponent handling the interactive parts.

Each example walks through a complete, working piece of code — not pseudocode or snippets, but the actual source files you would find in a real project. Start with the fundamentals and work your way up.

How to Read These

Each walkthrough follows a consistent structure:

  1. Overview — What the example builds and which concepts it covers
  2. File structure — The directory layout so you know where everything lives
  3. Annotated source — The complete code with explanations between each section
  4. Key takeaways — The patterns and principles worth remembering

The HelloWorld listings are the real source files of the module bundled in core/modules/HelloWorld/. It is off by default; HelloWorld = on under [enabled] in app/modules.ini turns it on.

Prerequisites

These examples assume you have read the Zero Framework overview. You don't need to memorize the docs — just understand what a module is and how URLs map to methods.