# SnackBase – Open-source, GxP-compliant back end for Python…

Hi HN, I’m the creator of SnackBase. I built this because I work in Healthcare and Life Sciences domain and was tired of spending months building the same "compliant" infrastructure (Audit Logs, Row-Level Security, PII Masking, Auth) before writing any actual product code. The Problem: Existing Baa…

- **Page:** https://magpie.gallery/i/snackbase-open-source-gxp-compliant-back-end-for-p-ee8p
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** web
- **Tags:** backend, compliance, python, fastapi, healthcare

## Source

Web · lalitgehani: SnackBase – Open-source, GxP-compliant back end for Python teams

- **Original:** https://news.ycombinator.com/item?id=46600092

> Hi HN, I’m the creator of SnackBase. I built this because I work in Healthcare and Life Sciences domain and was tired of spending months building the same "compliant" infrastructure (Audit Logs, Row-Level Security, PII Masking, Auth) before writing any actual product code. The Problem: Existing BaaS tools (Supabase, Appwrite) are amazing, but they are hard to validate for GxP (FDA regulations) and often force you into a JS/Go ecosystem. I wanted something native to the Python tools I already use. The Solution: SnackBase is a self-hosted Python (FastAPI + SQLAlchemy) backend that includes: Compliance Core: Immutable audit logs with blockchain-style hashing (prev_hash) for integrity. Native Python Hooks: You can write business logic in pure Python (no webhooks or JS runtimes required). Clean Architecture: Strict separation of layers. No business logic in the API routes. The Stack: Python 3.12 + FastAPI SQLAlchemy 2.0 (Async) React 19 (Admin UI) Links: Live Demo: https://demo.snackbase.dev Repo: https://github.com/lalitgehani/snackbase The demo resets every hour. I’d love feedback on the DSL implementation or the audit logging approach. https://snackbase.dev

## GitHub projects

- https://github.com/lalitgehani/snackbase

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
