# tywalch/electrodb

A DynamoDB library to ease the use of modeling complex hierarchical relationships and implementing a Single Table Design while keeping your query code readable.

Repository: https://github.com/tywalch/electrodb
Canonical: https://ross.abutalabs.com/products/electrodb
Language: TypeScript
License: MIT
License Family: permissive
Topics: dynamodb, single-table-design, aws, dynamodb-database, dynamodb-client, nosql, nosql-database, nosql-data-storage
Last push: 2026-08-09T18:47:47+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 2366, "days_push": 24, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1174, forks 86 (observed 2026-08-28T04:03:51.967191+00:00)

## What it is
ElectroDB is a TypeScript library for AWS DynamoDB that simplifies modeling multiple entities and complex hierarchical relationships in a single table (Single Table Design). It provides schema enforcement, entity isolation, and a readable query builder for access patterns.

## Use cases
- model multiple entities in a single DynamoDB table
- implement single table design on DynamoDB
- define validated schemas for DynamoDB entities
- build hierarchical access patterns with composite keys
- write readable sort key condition queries
- avoid key conflicts between entities sharing one table

## When to choose
- you use DynamoDB and want structured entity modeling with validation
- you are adopting single table design with multiple entity types
- you want readable, composable queries instead of raw DynamoDB expressions
- your data has complex hierarchical relationships and many access patterns

## When to avoid
- you use SQL or non-DynamoDB databases
- you prefer raw DynamoDB document client control with no abstraction
- your project is not on the Node.js/TypeScript ecosystem
- you need a full ORM with migrations and relational joins

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver
- domain: databases, backend, web-development, developer-tools
- platform: cloud
- tags: dynamodb, single-table-design, nosql, entity-modeling, query-builder, data-modeling, aws, nodejs, typescript

## Member repositories
- tywalch/electrodb (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:51.967191+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-30T06:28:19.387760+00:00, confidence not recorded.
  - readme: https://github.com/tywalch/electrodb (fetched 2026-08-28T04:03:51.967191+00:00, sha d1e43ba4c904)
- Data as of 2026-08-30T08:39:29.467469+00:00.
