Taking SnapClass from Streamlit Prototype to a Dockerized API
Splitting a Streamlit prototype into a FastAPI service, containerizing both, and wiring up CI/CD.
By Akshay More · 2026-05-26 · 7 min read · Web Development
Taking SnapClass from Streamlit Prototype to a Dockerized API
SnapClass started as a Streamlit prototype, which is great for demoing an idea and bad for anything that needs a stable API surface. Productionizing it meant splitting the logic out from the UI.
The split
A FastAPI service exposing the core functionality as a REST API, running on port 8000. Streamlit kept as a thin UI layer on port 8501, calling the API instead of holding logic itself. Both containerized separately with Docker so they scale and deploy independently.
What broke along the way
A ModuleNotFoundError traced back to inconsistent package paths between the Streamlit and FastAPI containers. webrtcvad failing to build inside Docker, needing the right system level build dependencies added to the image. Streamlit version incompatibilities between what worked locally and what the container pulled. Supabase UUID and integer type mismatches that only showed up once real data hit the tables.
CI/CD
GitHub Actions runs the build and test steps on push, so a broken container never reaches deployment silently.
Takeaway
A prototype and a product have different jobs. Separating them early made each piece easier to reason about, even though it meant more moving parts up front.