Examples
Examples
Learn from complete, working examples that demonstrate Blocks patterns in real projects.
Available Examples
JSON Resume Themes
Theme blocks for rendering resume data with validation
Blog Content Validator
Content validation for blog posts with SEO checks
HR Recommendation Engine
Scorer modules for job candidate matching
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 --allContributing Examples
Have a use case that would help others? Examples are welcome:
- Fork the repository
- Create your example in
examples/ - Include a README with context
- Submit a pull request