r/FastAPI • u/Pristine_Mirror_4052 • Jan 16 '26
Tutorial Как сделать авторизацию в fastapi
Мне для олимпиады нужно сделать 2OAuth
r/FastAPI • u/Pristine_Mirror_4052 • Jan 16 '26
Мне для олимпиады нужно сделать 2OAuth
r/FastAPI • u/DrHusband • Jan 16 '26
r/FastAPI • u/Wrong_Cow5561 • Jan 15 '26
🚀 Major Update v3.0: Production-Ready Python FastAPI Course - Now with Interactive Learning Roadmap!
Hey r/FastAPI! 👋
I'm excited to share another major update to my free, open-source Python development course! After amazing community feedback, I've added something special - an interactive web-based learning roadmap that makes navigating this comprehensive course incredibly easy!
This is NOT an advertisement - just sharing valuable learning resources with the community! 🎓
The biggest addition - a beautiful, interactive roadmap that helps you navigate the entire learning journey!
✅ Visual Learning Paths - See all 6 learning paths in an intuitive tree structure
✅ Direct GitHub Integration - Every topic links directly to the relevant code
✅ Expandable Sections - Drill down into topics that interest you
✅ Progress Tracking - Know exactly where you are in your learning journey
✅ Mobile-Responsive - Learn on any device
✅ Beautiful UI - Gradient design with smooth animations
Live Demo: bookstore-api-course.vercel.app
📚 BookStore API Learning Roadmap
├── 🚀 Quick Explorer (5 min)
│ ├── Setup Environment → [Direct link to QUICK_START.md]
│ ├── Start Development Server → [Direct link to run_bookstore.py]
│ └── Explore API Documentation → [Direct link to docs]
├── 📱 API User (30 min)
│ ├── Authentication Flow → [Direct link to auth.py]
│ └── Core Operations → [Direct link to routers/]
├── 👨💻 Developer (2 hours)
│ ├── Code Structure → [Direct link to PROJECT_STRUCTURE.md]
│ └── Testing Deep Dive → [Direct link to tests/]
├── 🏭 Production User (1 hour)
│ ├── Docker Deployment → [Direct link to deployment/docker/]
│ └── Monitoring Setup → [Direct link to monitoring/]
└── ☸️ DevOps Engineer (3 hours)
├── Kubernetes Deployment → [Direct link to k8s/]
└── CI/CD Pipeline → [Direct link to .github/workflows/]Added comprehensive English comments throughout the codebase:
✅ Educational explanations - Not just what, but WHY
✅ Concept introductions - Learn patterns as you read
✅ Best practices - Understand production standards
✅ Architecture insights - See how everything fits together
Perfect for newcomers studying the repository!
FastAPI with async/await and automatic OpenAPI docs
SQLAlchemy 2.0 with proper relationship management
Pydantic v2 for bulletproof data validation
JWT Authentication with secure token handling
Alembic migrations for professional database management
Unit tests - Core functionality validation
Integration tests - API endpoint testing
Property-based tests - Hypothesis for edge cases
Performance tests - Load testing with Locust
Security tests - Automated vulnerability scanning
Multi-stage Docker builds - Optimized for production
Kubernetes manifests - Auto-scaling and high availability
Docker Compose - Both dev and production environments
Nginx load balancer - SSL termination and routing
Prometheus - Metrics collection and alerting
Grafana - Beautiful dashboards and visualization
Loki - Centralized log aggregation
Structured logging - JSON format with request tracing
GitHub Actions - Automated testing and deployment
Multi-environment - Staging and production workflows
Security scanning - Bandit, Safety, Semgrep integration
Automated releases - Version management and tagging
Just want to see it work? One command setup!
Clone → Run → Explore API docs
Make your first API request
See production-quality code in action
Learn to integrate with professional APIs
JWT authentication flow
CRUD operations with pagination
Advanced filtering and search
Error handling patterns
Understand and modify production-quality code
FastAPI application architecture
SQLAlchemy models and relationships
Pydantic schemas and validation
Testing strategies and patterns
Deploy and monitor in real environments
Docker containerization
Environment configuration
SSL/HTTPS setup
Monitoring dashboards
Master the complete infrastructure pipeline
Kubernetes deployment
Auto-scaling configuration
CI/CD automation
Security best practices
Use as comprehensive Python/DevOps curriculum
FastAPI cheatsheets and examples
OOP and advanced Python patterns
Testing methodologies
Production deployment guides
✅ Interactive roadmap - Navigate visually with direct GitHub links (NEW!)
✅ Beginner-friendly comments - Learn as you read the code (NEW!)
✅ Real production patterns - Not toy examples
✅ Database migrations - Professional schema management
✅ Clean architecture - Organized for scalability
✅ Complete CI/CD - From commit to production
✅ Security-first - Best practices built-in
✅ Monitoring ready - Observability from day one
✅ Interview prep - Discuss real architecture in interviews
Backend: FastAPI, SQLAlchemy, Pydantic, Alembic
Database: PostgreSQL, Redis
Deployment: Docker, Kubernetes, Nginx
Monitoring: Prometheus, Grafana, Loki
Testing: pytest, Hypothesis, Locust
CI/CD: GitHub Actions
Roadmap: Flask, Vercel (NEW!)
# 30-second setup
git clone https://github.com/f1sherFM/bookstore-api-course.git
cd bookstore-api-course
cd deployment/docker && docker-compose up -d
# API docs: http://localhost:8000/docs
# Grafana: http://localhost:3000
# Interactive Roadmap: bookstore-api-course.vercel.app 📈 95%+ test coverage - Comprehensive quality assurance
🏗️ Production-ready - Used in real deployments
🗺️ Interactive roadmap - Visual learning experience (NEW!)
📝 Educational comments - Learn from the code (NEW!)
🔄 Professional migrations - Alembic integration
📁 Clean structure - Organized for teams
🚀 6 learning paths - Something for everyone
📚 Complete documentation - Every feature explained
🔒 Security hardened - Best practices implemented
By the end, you'll have:
✅ Built a scalable, monitored API from scratch
✅ Mastered database migrations and schema management
✅ Learned production deployment with Docker/K8s
✅ Implemented comprehensive testing strategies
✅ Set up monitoring and observability
✅ Created a portfolio project for interviews
✅ Navigated a real production codebase with confidence (NEW!)
GitHub: https://github.com/f1sherFM/bookstore-api-course
Interactive Roadmap: bookstore-api-course.vercel.app
Quick Start: Check QUICK_START.md in the repo
Documentation: Browse documentation/ directory
This project has grown thanks to community feedback! The new interactive roadmap was inspired by requests for better navigation and learning structure.
If you find this useful:
⭐ Star the repo - Helps others discover it
🐛 Report issues - Help make it better
💡 Suggest features - What would you like to see?
🤝 Contribute - PRs welcome!
Remember: This is a learning resource, not a commercial product. Everything is free and open-source!
[You can add screenshots of the interactive roadmap here]
Beautiful gradient design
Expandable tree structure
Direct GitHub integration
Mobile-responsive layout
Statistics and progress tracking
What do you think of the new interactive roadmap? Does it make the learning journey clearer? Any features you'd like to see added? 🤔
P.S. The roadmap website itself is also open-source and deployed on Vercel - check out the roadmap-site branch to see how it's built! w/ love, your f1sherFM 💕
r/FastAPI • u/jvertrees • Jan 14 '26
Hey all,
While I didn't use FastAPI directly in this short demo, it comfortably plugs right in. If you ever wanted to have a small playground to test out resiliency, data guarantees, etc for a distributed system w/observability here you go:
Write Up & Overview: https://www.linkedin.com/pulse/part-1-observable-sandbox-visualizing-backpressure-jason-vertrees-18wlc
Code: https://github.com/inchoate/distr-system
Hope this helps some of you.
Cheers!
r/FastAPI • u/RealnessKept • Jan 13 '26
I am wanting to create connections in ContextVars, but I don't know if it is safe.
I am using SQLAlchemy and AsyncPG. I also have a notion of a Database Access Object, which is essentially a singleton class that manages database connections.
Many of my endpoints follow this pattern at the moment:
@router.post("", status_code=status.HTTP_201_CREATED)
@requires_auth(MSMRole.MarketManager)
async def create_market_manager_contact(contact: Contact):
"""Creates a contact for the authenticated market manager."""
account_id = get_account_id()
async with mm_db.engine.begin() as conn:
address_id = None
if contact.address:
address_id = await mm_db.upsert_address(contact.address, conn=conn)
contact_id = await mm_db.create_market_manager_contact(
conn=conn,
contact=contact,
market_manager_id=account_id,
address_id=address_id
)
return {"contact_id": contact_id}My requires_auth validates a JWT and a session (if JWT is invalid) then creates a ContextVar for the identifying information of the person who called the endpoint. I was thinking of adding a connection kind of like this:
async def connection_scope(
role: MSMRole,
account_id: UUID,
commit: bool = True
):
"""Context manager for database connection lifecycle."""
dao = _get_dao_for_role(role)
async with dao.engine.begin() as conn:
await conn.execute(sqlalchemy.text(f"SET LOCAL ROLE {dao.role}"))
context = ConnectionContext(
connection=conn,
dao=dao,
role=role,
account_id=account_id
)
set_connection_context(context)
try:
yield context
if not commit:
pass # Transaction will auto-rollback if not committed
except Exception as e:
raise # Transaction will auto-rollback on exception
finally:
clear_connection_context()And finally how to use it:
@asynccontextmanager
async def connection_scope_from_auth():
"""Convenience wrapper that gets role and account_id from auth context."""
from src.utilities.security.fastapi import get_auth_context
auth_context = get_auth_context()
async with connection_scope(
role=auth_context.role,
account_id=auth_context.account_id
) as ctx:
yield ctxI am wondering if there are issues with this pattern when it comes to threads and blocking. I don't see many people do it this way, so it makes me hesitant. Do let me know your thoughts, or if you know of a better way!
r/FastAPI • u/Mean-Still-7293-34 • Jan 13 '26
r/FastAPI • u/Mean-Still-7293-34 • Jan 13 '26
Rabbit Manager is a simple, Python-based utility for managing RabbitMQ message queues. It provides an easy-to-use interface for sending, receiving, and processing messages with built-in support for automatic reconnections and error handling. This open-source, MIT-licensed project is ideal for Python developers and DevOps engineers looking to integrate RabbitMQ into FastAPI apps or other Python microservices with minimal overhead.
Reliable Messaging: Send messages to RabbitMQ queues and receive them with automatic acknowledgements, even over connection losses.
Auto-Reconnect & Batch Processing: Automatically reconnects on errors and easily handles multiple messages or batch operations.
Intuitive Interface: Iterable consumption and context-manager support let you consume messages with Pythonic for loops or with blocks.
Queue Management: Inspect queue size and set message TTL per queue, simplifying monitoring and maintenance tasks.
Easy Setup: Available on PyPI as rabbit-manager (install with pip install rabbit-manager). Requires Python 3.10+ and the Pika library.
RabbitMQ is a popular message broker for building scalable backend systems and microservices. Rabbit Manager removes boilerplate by handling low-level queue tasks, so developers can focus on business logic. It’s especially useful in FastAPI or other async frameworks where seamless background processing is needed. The library includes clear documentation and examples (see the GitHub repo) and even provides a built-in test suite.
Join the community! Check out the GitHub repo and the PyPI page for rabbit-manager. Star the project, submit issues, or send pull requests. Whether you’re a Python enthusiast, DevOps engineer, or open-source contributor, your help can make Rabbit Manager even better.
Install Now: pip install rabbit-manager (requires Python 3.10+ and Pika). License: MIT. Get started today and take your Python RabbitMQ integration to the next level!
Github https://github.com/ViktorViskov/rabbit-manager PyPI https://pypi.org/project/rabbit-manager/
r/FastAPI • u/MAwais099 • Jan 12 '26
Hi there,
I'm a beginner learning fastapi from fastapi official tutorial / user guide. It's really a great guide written in beginner friendly language. I think I've done 1/3 of this tutorial.
I'm learning stuff but I think it's not sticking. I need to build stuff with these concepts and tools I learn so that they can stick in my head.
I just want you guys to list some projects recommendations which increase in complexity one by one so that i actually get to practice more of FastAPI.
Also, if you can, please also write how many days each project should typically take so I can judge myself against and get clearer perspective.
Thanks a lot for your time!
Edit: I forgot to mention that right now, I'm preferring sqlite (because I know some of it) and SQLModel. Maybe later I'll learn SQLAlchemy.
r/FastAPI • u/Wrong_Cow5561 • Jan 11 '26
Hey r/FastAPI! 👋
I'm excited to share a major update to my free, open-source Python development course! After receiving amazing feedback from the community, I've made significant improvements that make this even more production-ready and beginner-friendly.
This is NOT an advertisement - just sharing valuable learning resources with the community! 🎓
✅ Version-controlled schema changes - No more create_all() hacks!
✅ Safe production deployments - Rollback capabilities for peace of mind
✅ Team collaboration - Sync database schemas across developers
✅ Custom migration manager - Easy-to-use Python script for all operations
# Professional database management
python development/scripts/migrate.py status
python development/scripts/migrate.py create "Add user preferences" --autogenerate
python development/scripts/migrate.py upgrade🎯 Clean root directory - No more file chaos!
📦 Logical organization - Everything has its place
🚀 Deployment-focused - All deployment configs in one place
📚 Developer-friendly - Tools and examples organized properly
bookstore-api/
├── 📁 deployment/ # Docker, K8s, configs
├── 📁 development/ # Scripts, examples, tools
├── 📁 documentation/ # Comprehensive guides
├── 📁 requirements/ # Organized dependencies
└── 📁 archive/ # Legacy files📖 Progressive roadmap - 6 different learning paths based on your goals
⚡ 30-second setup - Get started immediately
🛠️ Better tooling - Enhanced scripts and automation
📚 Comprehensive docs - Step-by-step guides for everything
FastAPI with async/await and automatic OpenAPI docs
SQLAlchemy 2.0 with proper relationship management
Pydantic v2 for bulletproof data validation
JWT Authentication with secure token handling
Database migrations with Alembic (NEW!)
Unit tests - Core functionality validation
Integration tests - API endpoint testing
Property-based tests - Hypothesis for edge cases
Performance tests - Load testing with Locust
Security tests - Automated vulnerability scanning
Multi-stage Docker builds - Optimized for production
Kubernetes manifests - Auto-scaling and high availability
Docker Compose - Both dev and production environments
Nginx load balancer - SSL termination and routing
Prometheus - Metrics collection and alerting
Grafana - Beautiful dashboards and visualization
Loki - Centralized log aggregation
Structured logging - JSON format with request tracing
GitHub Actions - Automated testing and deployment
Multi-environment - Staging and production workflows
Security scanning - Bandit, Safety, Semgrep integration
Automated releases - Version management and tagging
Just want to see it work? One command setup!
Learn to integrate with professional APIs
Understand and modify production-quality code
Deploy and monitor in real environments
Master the complete infrastructure pipeline
Use as comprehensive Python/DevOps curriculum
✅ Real production patterns - Not toy examples
✅ Database migrations - Professional schema management (NEW!)
✅ Clean architecture - Organized for scalability (NEW!)
✅ Multiple learning paths - Choose your adventure (NEW!)
✅ Complete CI/CD - From commit to production
✅ Security-first - Best practices built-in
✅ Monitoring ready - Observability from day one
✅ Interview prep - Discuss real architecture in interviews
Backend: FastAPI, SQLAlchemy, Pydantic, Alembic
Database: PostgreSQL, Redis
Deployment: Docker, Kubernetes, Nginx
Monitoring: Prometheus, Grafana, Loki
Testing: pytest, Hypothesis, Locust
CI/CD: GitHub Actions
# 30-second setup
git clone https://github.com/f1sherFM/bookstore-api-course.git
cd bookstore-api-course
cd deployment/docker && docker-compose up -d
# API docs: http://localhost:8000/docs
# Grafana: http://localhost:3000📈 95%+ test coverage - Comprehensive quality assurance
🏗️ Production-ready - Used in real deployments
🔄 Professional migrations - Alembic integration (NEW!)
📁 Clean structure - Organized for teams (NEW!)
🚀 6 learning paths - Something for everyone (NEW!)
📚 Complete documentation - Every feature explained
🔒 Security hardened - Best practices implemented
By the end, you'll have:
Built a scalable, monitored API from scratch
Mastered database migrations and schema management
Learned production deployment with Docker/K8s
Implemented comprehensive testing strategies
Set up monitoring and observability
Created a portfolio project for interviews
GitHub: https://github.com/f1sherFM/bookstore-api-course
Quick Start: Check QUICK_START.md in the repo
Documentation: Browse documentation/ directory
This project has grown thanks to community feedback! Special thanks to everyone who suggested improvements.
If you find this useful:
⭐ Star the repo - Helps others discover it
🐛 Report issues - Help make it better
💡 Suggest features - What would you like to see?
🤝 Contribute - PRs welcome!
Remember: This is a learning resource, not a commercial product. Everything is free and open-source!
What do you think of the new improvements? Any features you'd like to see added? 🤔
r/FastAPI • u/somebodyElse221 • Jan 11 '26
Hey everyone!
In the last several months, we have been working on the FastKit Core package. FastKit Core is an open-source, lightweight toolkit developed for the FastAPI framework. It provides common patterns, code structure, and infrastructure solutions following modern Python and FastAPI conventions.
The main idea is improve the development experience and speed up the development proces focusing on solving common problems that we have on a daily bases on production.
FastKit Core provides:
Repository Pattern for database operations
Service Layer for business logic
Multi-language support - built into models and translation files
Validation with structured and translated error messages
HTTP Utilities for consistent API responses
And more.
You can find full documentation here.
We invite you to take a look at the code on GitHub. We would truly appreciate any feedback or contributions!
r/FastAPI • u/fastlaunchapidev • Jan 09 '26
Hey everyone,
After building multiple FastAPI projects, I realized I was spending the same 1–3 weeks every time on the exact same stuff:
JWT auth & user management
Stripe subscriptions + webhooks
Email flows
Background tasks (Celery)
Database setup & migrations
Deployment boilerplate
So I end up building a production ready FastAPI template that I now reuse for all my projects.
It includes:
FastAPI + SQLAlchemy + Alembic
JWT auth (email + social-ready)
Stripe billling (subscriptions, webhooks)
Background jobs with Celery
Email infrastructure
Docker + deployment setup
The goal isn’t to “teach FastAPI” - it’s for people who already know it and just want to ship faster.
I’ve been using it in real projects and recently cleaned it up into something reusable.
here you can find it: https://fastlaunchapi.dev
what’s the part of fastapi you hate rebuilding the most?
r/FastAPI • u/Lee-stanley • Jan 08 '26
Real-time AI is exploding chatbots, RAG, LLM streaming. Yet I still see new projects using Flask instead of FastAPI. Native async, WebSockets, auto-docs, and Pydantic make it perfect for modern AI serving.Are you using FastAPI for AI/ML APIs? What’s your stack?
r/FastAPI • u/Single_Toe_4890 • Jan 08 '26
Hello guys I am starting my backend journey from fastapi after learning postgres and docker basics I am learning this through a yt video on freecodecamp's channel by Sanjeev Thiyagarajan
I would appreciate any kind of help or suggestions you guys can give me Thanks
r/FastAPI • u/0nlykelvin • Jan 08 '26
Easily and cheaply host, deploy and manage your own FastAPI apps on a vps.
Easy install, guided interaction and workflows. While still being the one in control.
KCstudio Launchpad is the Bash TUI Platform I build for hosting fullstack apps with ease; secured, easy to maintain and manage while keeping an eye on the vps which KCstudio Launchpad makes interactive and helpful.
I build this to solve my own problems. Now i open sourced it to give back.
Please try it out on a fresh Ubuntu 24.04 VPS and let me know your opinions!
Its free under MIT!
It uses FastAPI for some boilerplate backend apps, but you can also just swap it out to your custom code!
GitHub: https://github.com/kelvincdeen/KCstudio-Launchpad
Install v2.0 using this:
wget https://github.com/kelvincdeen/kcstudio-launchpad/releases/latest/download/kcstudio-launchpad.deb && \
sudo apt install ./kcstudio-launchpad.debr/FastAPI • u/Due_End_3353 • Jan 07 '26
I’ve built production-ready PDF utility APIs covering encryption, decryption, compression, watermarking, and redaction.
Ideal for SaaS products or internal tools that need reliable PDF handling without managing heavy dependencies.
🔗 APIs: https://rapidapi.com/user/nidhibusinessinfotech
Here's the doc: https://docs.google.com/document/d/1bkcnMXvseLpbsr28LhHvd1dT7FOeuHl3n0Nowo7Qu18/edit?tab=t.0
Available immediately. Happy to help with integration or custom requirements.
r/FastAPI • u/Ancient-Direction231 • Jan 06 '26
r/FastAPI • u/Hopeful_Beat7161 • Jan 05 '26
Working on a project that needed different caching strategies for different endpoints. fastapi-cache2 felt too limiting, raw redis-py meant too much boilerplate.
So I made fastapi-rc. It's definitely nothing super special or groundbreaking, but the main difference is you get three approaches:
Pattern 1: Direct Redis access Full control for complex operations (bulk invalidation, pipelines, etc)
Pattern 2: CacheService wrapper Handles common patterns automatically:
Cache-aside (get_or_set)
Automatic serialization with Pydantic models
Pattern based invalidation
TTL management with jitter
Pattern 3: Custom cache dependencies Define caching strategy once, inject everywhere:
async def get_user_cache(redis: RedisClient) -> CacheService[User]:
return CacheService(
redis,
namespace="users",
model=User,
default_ttl=600,
use_jitter=True,
)
UserCache = Annotated[CacheService[User], Depends(get_user_cache)]All three patterns use FastAPI's Depends() so it feels native.
Out of the box:
Connection pooling with configurable size
Retry logic with exponential backoff
Health checks
Graceful degradation if Redis unavailable
Type safety with generics. CacheService[User] enforces return type.
Install: pip install fastapi-rc
Source: https://github.com/CarterPerez-dev/fastapi-rc
I just built it for one of my projects then decided I might as well make it a package, so lmk what you think or if you have any feedback.
r/FastAPI • u/Adventurous-Storm102 • Jan 05 '26
hey guys, i've compiled some of the most important learnings i've gained up to this point about building a better and faster backend service into an article.
please review it and provide feedback. also, suggest any techniques i have missed, and you've found interesting.x
https://blog.coffeeinc.in/why-your-backend-is-slow-and-what-to-do-about-it-d008d7ae9566
r/FastAPI • u/Primary-Wasabi-8923 • Jan 04 '26
I got comments saying my experience don't match and not really good advices. Any guidance please?
r/FastAPI • u/Sad-Guidance4579 • Jan 03 '26
Generating PDFs usually sucks because you're stuck concatenating HTML strings in your backend. Every time you need to change a font size or move a logo, you have to redeploy your code.
We built PDFMyHTML to fix that workflow.
It’s a PDF generation API that uses real headless browsers (Playwright) so you get full support for Flexbox, Grid, and modern CSS. But the real value is in the workflow:
Hosted Templates: Build your designs (Handlebars/Jinja2) in our dashboard and save them.
Live Editor: Tweak your layout and see the PDF render in real-time before you integrate.
Clean API: Your backend just sends a JSON payload { "name": "John", "total": "$100" } and we merge it with your template.
We’re looking for our first 50 power users to really stress-test the platform. We just launched a Founder's Deal (50% OFF for all of 2026) for early adopters who want to lock in a rate while helping us shape the roadmap.
Would love to hear your feedback on the editor experience!
r/FastAPI • u/phalt_ • Jan 02 '26
r/FastAPI • u/Hopeful_Beat7161 • Dec 31 '25
Made a repo with 60 cybersecurity projects mapped out from beginner to advanced. I've full built 5 of them with source code so far, the other 55 have detailed writeups but need more help to code the rest of them and eventually have 100+ projects fully built for people to learn from - clone - build upon, etc.
The point of the repo is basically to give people actual things to build instead of asking "what should i make" and getting the same mass advice. All the projects have instructions and context so you can just pick one and go. (dont have to use the instructions, I'm super open to whatever tech stack you want to use or how to go about it)
Some few examples of whats in there:
- Port scanner
- SIEM dashboard
- Security News Scraper
- Malware analysis sandbox
- Binary Analysis Tool
- Reverse shell handler
- Docker Security Audit
- Blockchain Smart Contract Auditor
If you contribute you get your name on a repo thats already at 100+ stars and growing after just one month and just 5/60 projects built (now imagine what it could become!). Good portfolio stuff and you'd be getting in early before this thing gets way bigger.
Process is easy. Fork it, pick a project that looks interesting, build it out, submit a PR and I review everything.
(Feel free to read the CONTRIBUTING.md)
Lmk if you have questions or if theres a specific project you wanna know more about
r/FastAPI • u/Sad-Guidance4579 • Dec 31 '25
I’ve spent way too many hours debugging CSS for PDF reports by blindly tweaking code, running a script, and checking the file.
So I built a Live Template Editor for my API.
What’s happening in the demo:
Real-Time Rendering: The right pane is a real Headless Chrome instance rendering the PDF as I type.
Handlebars Support: You can see me adding a {{ channel }} variable, and it updates instantly using the mock JSON data.
One-Click Integration: Once the design is done, I click "API" and it generates a ready-to-use cURL command with the template_id.
Now I can just store the templates in the dashboard and send JSON data from my backend to generate the files.
It’s live now if you want to play with the editor (it's within the Dashboard, so yes, you need to log in first, but no CC required, no nothing).