Theory Cloud · AppTheory

The contract-first serverless runtime.

One application model. Three runtimes. AppTheory keeps Go, TypeScript, and Python in lock-step on the shared Lambda contract — routing, middleware, error envelope, AppSync, WebSockets, and event workloads — verified on every commit by 128 shared contract fixtures. The Go runtime also carries the MCP Streamable HTTP surface used by Remote MCP deployments.

Where AppTheory shows up

Three real Lambda surfaces — one runtime, one contract, one entrypoint behind all of them.

Core patterns

One app. Three runtimes.

Pick a language and ship the same Lambda contract.

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

```go package main import ( "context" "encoding/json" "github.com/aws/aws-lambda-go/lambda" apptheory "github.com/theory-cloud/apptheory/runtime" ) func main() { app := apptheory.New() app.Get("/ping", func(ctx *apptheory.Context) (*apptheory.Response, error) { return apptheory.Text(200, "pong"), nil }) // One entrypoint handles HTTP, AppSync, SQS, EventBridge, // DynamoDB Streams, Kinesis, and WebSockets. lambda.Start(func(ctx context.Context, event json.RawMessage) (any, error) { return app.HandleLambda(ctx, event) }) } ```
Contract fixtures
128
shared across Go · TS · Python
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