#231231st of 358 in Backends, databases and hosting
tinydb
Pure-Python document database that stores dicts in a JSON file
- Stars
- 7.6k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Aug 2026
- Language
- Python
7,448 on 6 May 20267,585 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
TinyDB is an embedded document database written in pure Python with no external dependencies. It stores dict documents in a JSON file by default and offers a query API built on Python operators (==, &, |, ~), plus named tables. Storage backends can be replaced, and middlewares such as CachingMiddleware wrap them. The project is in maintenance mode.
Who it is for: Python developers needing a small embedded store for scripts or small apps
Strengths
- No dependencies and no server process; runs on Python 3.8+ and PyPy3
- Small codebase (about 1800 lines) with a README claim of 100% test coverage
- Storages and middlewares are swappable, e.g. CachingMiddleware over JSONStorage
- Queries use plain Python expressions, including regex and custom test functions
Weaknesses
- Maintenance mode: no significant new features or architectural changes planned
- Aimed at small apps; README positions it as an alternative to SQL databases only at small scale
- No auth, networking or API layer; it is a library, not a backend service
- Not an AI project; fits this list only as an embedded data store
What it needs
- no GPU
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backends, databases and hosting
See all 358| Rank | Project | Score |
|---|---|---|
| #229 | fissionKubernetes-native serverless functions with a warm container pool | 65 out of 100 |
| #230 | docker-nodeSource for the official Node.js Docker base images on Docker Hub | 65 out of 100 |
| #232 | medooSingle-file PHP database library with a query builder over PDO | 65 out of 100 |
| #233 | crudLaravel package that generates admin panels for Eloquent models | 65 out of 100 |
| #234 | kubeblocksKubernetes operator managing many database engines through one set of CRDs | 65 out of 100 |