# msiemens/tinydb

TinyDB is a lightweight document oriented database optimized for your happiness :)

Repository: https://github.com/msiemens/tinydb
Canonical: https://ross.abutalabs.com/products/tinydb
Homepage: https://tinydb.readthedocs.org
Language: Python
License: MIT
License Family: permissive
Topics: python, nosql, database, documentdb, json
Last push: 2026-08-10T18:34:35+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 64, longevity 100
- inputs: {"age_days": 4800, "days_push": 23, "days_rel": 27, "gap_med": 333.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7557, forks 626 (observed 2026-08-28T04:10:01.625059+00:00)

## What it is
TinyDB is a lightweight, pure-Python document-oriented NoSQL database that stores documents as dicts in a JSON file with no external dependencies or server. It provides a simple query API and is extensible via custom storages and middlewares.

## Use cases
- store json documents in a small python app without a database server
- embedded nosql database for a desktop or cli tool
- simple key-value/document store for prototypes and scripts
- persist structured data in pure python with no dependencies
- query json files with a mongodb-like query syntax

## When to choose
- you need a tiny embedded document store for a small app that doesn't warrant SQL or a database server
- you want zero external dependencies and pure Python
- you need a simple, fun API for storing and querying dicts

## When to avoid
- you need concurrent multi-process access or high throughput
- your dataset is large or requires indexing, transactions, or SQL
- you need active feature development - the project is in maintenance mode

## Facets
- artifact type: library
- maturity: maintenance
- function: database, serialization, json
- domain: databases, developer-tools, backend
- platform: python, cross-platform
- tags: nosql, document-database, embedded-database, pure-python, json-storage

## Member repositories
- msiemens/tinydb (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:01.625059+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:37:22.883571+00:00, confidence not recorded.
  - readme: https://github.com/msiemens/tinydb (fetched 2026-08-28T04:10:01.625059+00:00, sha 0a07dad842a3)
  - registry_pypi: https://pypi.org/pypi/tinydb/json (fetched 2026-08-29T08:32:53.775206+00:00, sha 6632de5472d3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
