The official examples repository for Blazing - demonstrating real-world use cases for Blazing Core and Blazing Flow.
Live Examples: https://blazing.work/docs/examples
This repository serves as the single source of truth for all Blazing examples. Examples are automatically:
Inspired by modal-examples.
blazing-examples/
├── 01_getting_started/ # Basic examples to get started
├── 02_web_endpoints/ # Web servers, APIs, HTTP endpoints
├── 03_data_processing/ # ETL, batch processing, data pipelines
├── 04_async_parallel/ # Async patterns and parallel execution
├── 05_integrations/ # Third-party service integrations
├── 06_advanced/ # Advanced patterns and techniques
├── 07_api_patterns/ # API usage patterns and sync helpers
├── 08_runtime_routing/ # Runtime behavior, routing, depth, worker types
├── 09_sandbox_isolation/ # Sandboxed execution and Pyodide patterns
├── 10_web_endpoints_advanced/# Advanced endpoint and ASGI integrations
├── 11_integrations_platform/ # Platform integrations and resilience patterns
├── 12_gpu_ai_agents/ # GPU workflows and agent-style patterns
├── 13_deployment_packaging/ # Packaging and deployment patterns
├── generate_manifest.py # Generates examples.json manifest
└── examples.json # Generated manifest (auto-updated)
Basic examples to help you get started quickly with Blazing Core and Flow.
Examples of web servers, REST APIs, GraphQL endpoints, and WebSocket servers.
Data transformation, ETL pipelines, and batch processing examples.
Asynchronous programming patterns and parallel execution for maximum throughput.
Integration examples with popular services (databases, APIs, cloud services).
Advanced patterns including CRDT queues, custom runtimes, and zero-trust networking.
API usage patterns including wait_result, handle patterns, and sync helpers.
Runtime behavior, routing, depth tracking, worker types, and state machines.
Sandboxed execution patterns, Pyodide dependencies, and isolation strategies.
Advanced HTTP endpoint and ASGI server integration patterns.
Platform integrations, local connectors, and resilience patterns.
GPU workflows and agent-style sandbox patterns.
Container images and packaging for sandbox/workflow dependencies.
# Install Blazing
pip install blazing
# Configure credentials
blazing configure
# Navigate to an example directory
cd 01_getting_started/hello_world
# Run the example
python flow.py
blazing deploy flow.py
Each example should follow this structure:
"""
# Example Title
Brief description of what this example demonstrates.
## Metadata
- **Product**: Blazing Core | Blazing Flow
- **Difficulty**: Beginner | Intermediate | Advanced | Expert
- **Time**: X min
- **Tags**: tag1, tag2, tag3
## Description
Detailed description of:
- What this example does
- Key concepts demonstrated
- Use cases
## What you'll learn
- Bullet point 1
- Bullet point 2
- Bullet point 3
"""
# Your example code here
flow.py, meta.json, and EXPECTED_OUTPUT.mdflow.pypython generate_manifest.py
git add .
git commit -m "Add: [example name]"
git push
The documentation website will automatically update with your new example!
The generate_manifest.py script scans all example files and creates examples.json, which contains:
This manifest is consumed by the documentation website at build time.
python generate_manifest.py
This should be run automatically in CI, but you can run it locally to preview changes.
We welcome contributions! To contribute an example:
git checkout -b feature/my-example)python generate_manifest.py| Field | Required | Description | Example |
|---|---|---|---|
| Product | Yes | Which product (Blazing Core or Blazing Flow) | Blazing Core |
| Difficulty | Yes | Skill level required | Beginner, Intermediate, Advanced, Expert |
| Time | Yes | Estimated time to complete | 10 min |
| Tags | Yes | Comma-separated searchable tags | api, fastapi, rest |
This repository uses GitHub Actions to:
examples.jsonMIT License - see LICENSE for details
Questions? Open an issue or reach out on Discord
The official examples repository for Blazing - demonstrating real-world use cases for Blazing Core and Blazing Flow.
Live Examples: https://blazing.work/docs/examples
This repository serves as the single source of truth for all Blazing examples. Examples are automatically:
Inspired by modal-examples.
blazing-examples/
├── 01_getting_started/ # Basic examples to get started
├── 02_web_endpoints/ # Web servers, APIs, HTTP endpoints
├── 03_data_processing/ # ETL, batch processing, data pipelines
├── 04_async_parallel/ # Async patterns and parallel execution
├── 05_integrations/ # Third-party service integrations
├── 06_advanced/ # Advanced patterns and techniques
├── 07_api_patterns/ # API usage patterns and sync helpers
├── 08_runtime_routing/ # Runtime behavior, routing, depth, worker types
├── 09_sandbox_isolation/ # Sandboxed execution and Pyodide patterns
├── 10_web_endpoints_advanced/# Advanced endpoint and ASGI integrations
├── 11_integrations_platform/ # Platform integrations and resilience patterns
├── 12_gpu_ai_agents/ # GPU workflows and agent-style patterns
├── 13_deployment_packaging/ # Packaging and deployment patterns
├── generate_manifest.py # Generates examples.json manifest
└── examples.json # Generated manifest (auto-updated)
Basic examples to help you get started quickly with Blazing Core and Flow.
Examples of web servers, REST APIs, GraphQL endpoints, and WebSocket servers.
Data transformation, ETL pipelines, and batch processing examples.
Asynchronous programming patterns and parallel execution for maximum throughput.
Integration examples with popular services (databases, APIs, cloud services).
Advanced patterns including CRDT queues, custom runtimes, and zero-trust networking.
API usage patterns including wait_result, handle patterns, and sync helpers.
Runtime behavior, routing, depth tracking, worker types, and state machines.
Sandboxed execution patterns, Pyodide dependencies, and isolation strategies.
Advanced HTTP endpoint and ASGI server integration patterns.
Platform integrations, local connectors, and resilience patterns.
GPU workflows and agent-style sandbox patterns.
Container images and packaging for sandbox/workflow dependencies.
# Install Blazing
pip install blazing
# Configure credentials
blazing configure
# Navigate to an example directory
cd 01_getting_started/hello_world
# Run the example
python flow.py
blazing deploy flow.py
Each example should follow this structure:
"""
# Example Title
Brief description of what this example demonstrates.
## Metadata
- **Product**: Blazing Core | Blazing Flow
- **Difficulty**: Beginner | Intermediate | Advanced | Expert
- **Time**: X min
- **Tags**: tag1, tag2, tag3
## Description
Detailed description of:
- What this example does
- Key concepts demonstrated
- Use cases
## What you'll learn
- Bullet point 1
- Bullet point 2
- Bullet point 3
"""
# Your example code here
flow.py, meta.json, and EXPECTED_OUTPUT.mdflow.pypython generate_manifest.py
git add .
git commit -m "Add: [example name]"
git push
The documentation website will automatically update with your new example!
The generate_manifest.py script scans all example files and creates examples.json, which contains:
This manifest is consumed by the documentation website at build time.
python generate_manifest.py
This should be run automatically in CI, but you can run it locally to preview changes.
We welcome contributions! To contribute an example:
git checkout -b feature/my-example)python generate_manifest.py| Field | Required | Description | Example |
|---|---|---|---|
| Product | Yes | Which product (Blazing Core or Blazing Flow) | Blazing Core |
| Difficulty | Yes | Skill level required | Beginner, Intermediate, Advanced, Expert |
| Time | Yes | Estimated time to complete | 10 min |
| Tags | Yes | Comma-separated searchable tags | api, fastapi, rest |
This repository uses GitHub Actions to:
examples.jsonMIT License - see LICENSE for details
Questions? Open an issue or reach out on Discord