B
Blocks
Examples

Examples

Learn from complete, working examples that demonstrate Blocks patterns in real projects.

Available Examples

Example Structure

Each example includes:

  • blocks.yml - Complete configuration with domain modeling
  • Block implementations - Working code with validation
  • Test data - Sample inputs for running validation
  • Expected outputs - What correct results look like

Running Examples

Clone and run any example:

git clone https://github.com/thomasdavis/blocks
cd blocks/examples/json-resume-themes
pnpm install
blocks run --all

Contributing Examples

Have a use case that would help others? Examples are welcome:

  1. Fork the repository
  2. Create your example in examples/
  3. Include a README with context
  4. Submit a pull request