wundergraph/wunderbase
wundergraph/wunderbase has 527 GitHub stars and 21 forks. Star changes are not measured yet. Last checked 2026-11-07 15:06 UTC. Last push 2022-10-26.
Serverless GraphQL Database built on top of Firecracker, SQLite and Prisma
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
is a Serverless SQLite database exposed through GraphQL. It can sleep for days and wakes up in less than a second. During sleep, you only pay for storage. It is capable to serve a medium traffic website.
- Firecracker (Fly.io Machines) Runs on top of the same technology as AWS Fargate.
- Scale to zero. Cold starts in less than 600ms.
- Fast. 10k reads / 2k writes requests per second.
- Cheap Fly.io free tier allows your to run it almost for free.
Love the idea? :heartbeat: Read the announcement blog post to get more insights!
Getting Started
1. Install dependencies
Mac
sh install-prisma-darwin.shLinux
sh install-prisma-linux.sh
2. Start the server
Run the application locally
ENABLE_SLEEP_MODE=false go run main.goRunning with Docker
docker run -p 4466:4466 -e ENABLE_SLEEP_MODE=false wundergraph/wunderbase
3. Visit the playground
Open http://0.0.0.0:4466 in your browser.
Running on fly Machines
Check out the fly.io Machines documentation on how to deploy WunderBase to fly.io. You can build the image yourself using the Dockerfile in this repo, or just use a pre-built image from Docker Hub.
Testing
Note: Requires Docker
go test ./...
Firecracker & Fly Machines
- Sleep Mode
- By default, sleep mode is enabled. This means, if there is no traffic, WunderBase will sleep. Sleep mode lets WunderBase exit with exit code 0. This indicated to fly that the application wants to sleep.
- Cold Starts
- I've measured an avg cold start time of 400-600ms.
- Backups
- We're looking at integrating Litestream or a similar service for backups. If you'd like to contribute, please reach out!
Internals
WunderBase uses the Prisma Query Engine internally to translate GraphQL queries to SQL. We've added a proxy written in Golang to add GraphiQL 2.0 as the frontend and handle the lifecycle to make the service sleep when it's not in use. We're also using the Prisma Migration Engine to run migrations.
Security
I do not recommend to expose WunderBase to the public internet. The intended use case is to run it on a private network and expose it to your frontend via an API Gateway, like WunderGraph!
Note: Get Early Access to WunderGraph Cloud - " The Vercel for Backend " 🪐 The Serverless API Developer Platform 🪄
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,370 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,752 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,288 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,448 stars