#231231st of 358 in Backends, databases and hosting

tinydb

Pure-Python document database that stores dicts in a JSON file

Releases and problems feed (RSS)

Stars
7.6k
License
MIT
Last commit
Nov 2026
Last release
Aug 2026
Language
Python
Stars, last 29 weeks+137
6 May 2026: 7,448 stars13 May 2026: 7,459 stars20 May 2026: 7,463 stars27 May 2026: 7,469 stars3 Jun 2026: 7,475 stars10 Jun 2026: 7,481 stars17 Jun 2026: 7,485 stars24 Jun 2026: 7,493 stars1 Jul 2026: 7,498 stars8 Jul 2026: 7,503 stars15 Jul 2026: 7,508 stars22 Jul 2026: 7,511 stars29 Jul 2026: 7,516 stars5 Aug 2026: 7,520 stars12 Aug 2026: 7,523 stars19 Aug 2026: 7,528 stars26 Aug 2026: 7,530 stars2 Sept 2026: 7,532 stars9 Sept 2026: 7,536 stars16 Sept 2026: 7,541 stars23 Sept 2026: 7,545 stars30 Sept 2026: 7,551 stars7 Oct 2026: 7,552 stars14 Oct 2026: 7,556 stars21 Oct 2026: 7,562 stars28 Oct 2026: 7,569 stars4 Nov 2026: 7,570 stars11 Nov 2026: 7,576 stars18 Nov 2026: 7,579 stars25 Nov 2026: 7,585 stars

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
Also in Backends, databases and hosting
RankProjectScore
#229fissionKubernetes-native serverless functions with a warm container pool9k starsApache-2.065 out of 100
#230docker-nodeSource for the official Node.js Docker base images on Docker Hub8.6k starsMIT65 out of 100
#232medooSingle-file PHP database library with a query builder over PDO4.9k starsMIT65 out of 100
#233crudLaravel package that generates admin panels for Eloquent models Live demo ↗ (opens in a new tab)3.4k starsMIT65 out of 100
#234kubeblocksKubernetes operator managing many database engines through one set of CRDs3.2k starsAGPL-3.065 out of 100