Loading repository data…
Loading repository data…
prakratis / repository
Production-ready FastAPI backend implementing AES-128 Fernet encryption at-rest, automated TTL record expiration, and SlowAPI rate-limiting. Scalable architecture using SQLModel and Alembic migrations.
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.
An enterprise-grade, privacy-first messaging API built with the FastAPI + SQLModel + Alembic stack. This project demonstrates advanced backend patterns, including Cryptographic Data Persistence, Logical TTL Enforcement, and API Rate Limiting.
To ensure Zero-Knowledge storage, this system implements Symmetric Encryption using AES-128 in CBC mode (via cryptography.fernet).
LargeBinary blobs before being committed to the database.The system maintains a "Clean Slate" policy through a Time-To-Live (TTL) mechanism.
To protect against DDoS and automated flooding, the system utilizes a Fixed-Window Rate Limiting middleware.
limits library).| Component | Technology | Responsibility |
|---|---|---|
| Framework | FastAPI | Asynchronous I/O & OpenAPI (Swagger) Generation |
| ORM |
| Unified Data Validation (Pydantic) & ORM (SQLAlchemy) |
| Migrations | Alembic | Version-controlled DDL & Schema Evolutions |
| Encryption | Fernet | Standardized Symmetric-key cryptography |
| Middleware | SlowAPI | In-memory Rate Limiting and Defense |
The application requires the following secrets to be injected into the runtime environment:
ENCRYPTION_KEY="<base64-encoded-fernet-key>" # Mandatory for data integrity
DATABASE_URL="sqlite:///./secrets.db" # Persistent storage target
pip install -r requirements.txtalembic upgrade headuvicorn main:app --host 0.0.0.0 --port $PORTFastAPI BackgroundTasks for physical row deletion (Hard Delete).