Loading repository data…
Loading repository data…
Reprompts / repository
FastSecForge - A pluggable FastAPI security boilerplate generator with JWT auth, MongoDB/SQLAlchemy support, and a CLI for instant project scaffolding. Boost your backend development with built-in best practices!
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
FastSecForge is a robust, pluggable Python security boilerplate generator built on top of FastAPI, SQLAlchemy, and MongoDB. It provides JWT authentication, user management, and a powerful CLI (typer) to scaffold fully functional, secure project templates in one command.
passlib[bcrypt])Install FastSecForge from PyPI:
pip install fastsecforge
Or install in editable mode from source:
git clone https://github.com/reprompts/fastsecforge.git
cd fastsecforge
python -m venv venv
source venv/bin/activate # Windows: venv\\Scripts\\activate
pip install -e . # editable mode
FastSecForge exposes one primary command: new_project. This will scaffold a complete FastAPI project for you.
fastsecforge <project_name>
<project_name>: Name of the new project (also used as package name).After running this, you will have:
<project_name>/
└── src/
└── <project_name>/
├── __init__.py
├── main.py # FastAPI app entrypoint
├── config.py # Settings loader
├── database.py # DB session & models
├── core/
│ ├── __init__.py
│ └── security.py # Auth, password hashing, JWT utilities
├── models/
│ ├── __init__.py
│ └── user.py # User ORM models
├── routers/
│ ├── __init__.py
│ ├── auth.py # Authentication routes
│ └── users.py # User management routes
├── schemas/
│ ├── __init__.py
│ └── user.py # Pydantic schemas
└── templates/ # Additional template assets
Navigate into the new project
cd <project_name>
Create & activate a virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\\Scripts\\activate
Install dependencies
pip install -r requirements.txt
Configure environment variables
.env.example to .envStart the development server
uvicorn src.<project_name>.main:app --reload
Your API will be available at http://127.0.0.1:8000 with interactive docs at http://127.0.0.1:8000/docs.
If you scaffold tests, run:
pytest
This project is licensed under the MIT License.
Contributions welcome! Open an issue or submit a pull request against main.