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 the full fixture corpus. The runtimes also execute the MCP fixtures for the Streamable HTTP surface and the OAuth fixtures for protected-resource flows 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@v1.14.0

```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
223
Go, TypeScript, and Python execute all shared fixtures
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