Theory Cloud · TableTheory

The DynamoDB-first multi-language data contract.

One specification. Three runtimes. TableTheory keeps Go, TypeScript, and Python in lock-step on the same single-table model — verified on every commit by the P0 contract scenarios.

Where TableTheory shows up

Three distinct data domains in the Theory Cloud stack — one contract behind all of them.

Architecture patterns

One model. Three runtimes.

Pick a language and ship the same contract.

go get github.com/theory-cloud/tabletheory@vX.Y.Z

```go package main import ( "log" "github.com/aws/aws-lambda-go/lambda" "github.com/theory-cloud/tabletheory" ) // Models are plain Go structs with theorydb: + json: struct tags. type Note struct { PK string `theorydb:"pk" json:"pk"` SK string `theorydb:"sk" json:"sk"` Body string `json:"body"` } var db *tabletheory.LambdaDB func init() { // Cold-start initialization — reused across invocations. var err error db, err = tabletheory.NewLambdaOptimized() if err != nil { log.Fatal(err) } } func handler() error { return db.Model(&Note{ PK: "USER#42", SK: "NOTE#welcome", Body: "Hello, Theory Cloud.", }).Create() } func main() { lambda.Start(handler) } ```
P0 contract scenarios
9
CRUD · lifecycle · TTL · release-state
Runtimes
3
Go · TypeScript · Python
Distribution
GitHub Releases
immutable, pinned
License
Apache-2.0
open source

Quick starts

The deepest-value sections, ranked by how often new consumers reach for them.

All guides