How anomalyco/sst works
SST is a framework for building and deploying full-stack applications on managed infrastructure. Users initialize or configure an app, define infrastructure components, then use the CLI to deploy or run a live development session; the CLI coordinates project/runtime work and communicates with the deployment server. The graph also preserves documented AWS and Cloudflare component capabilities, resource linking, SDK/auth support, and development tunnels. Some subsystem paths come from the repository tree, but their internals were not sampled; those relationships are omitted unless documented or evidenced by the index.
Main entry points: function.ts AWS components · run.go Project orchestration · component.ts Component foundation · router.ts Router component
Components 25
CLI and project lifecycle
- SST CLI
cmd/sst/main.go - Project orchestration
pkg/project/run.go - Project setup
pkg/project/create.go
Deployment and providers
- Deployment server
pkg/server/server.go - AWS resource handlers
pkg/server/resource/run.go - Cloudflare resources
pkg/server/resource/cloudflare-worker-script.go - Stack state
pkg/state/state.go
Infrastructure components
- AWS components
platform/src/components/aws/function.ts - Bucket component
platform/src/components/aws/bucket.ts - Router component
platform/src/components/aws/router.ts - Container service
platform/src/components/aws/service.ts - AWS DNS
platform/src/components/aws/dns.ts - Cloudflare Worker
platform/src/components/cloudflare/worker.ts - Component foundation
platform/src/components/component.ts - Resource linking
platform/src/components/link.ts
Runtime and application SDK
- Runtime selection
pkg/runtime/runtime.go - Worker runtime
pkg/runtime/worker/worker.go - JavaScript SDK
sdk/js/src/index.ts - Auth SDK
sdk/js/src/auth/handler.ts
Live development
- Live development
cmd/sst/mosaic/dev/dev.go - Config watcher
cmd/sst/mosaic/watcher/watcher.go - Development tunnel
pkg/tunnel/tunnel.go
Other components
- Application developer
- Application services
- Cloud providers
Connections 29
- Application developer → SST CLI: runs commands
cmd/sst/main.go - SST CLI → Project orchestration: runs project
cmd/sst/main.go - SST CLI → Project setup: initializes app
cmd/sst/main.go - Project orchestration → Runtime selection: selects runtime
pkg/project/run.go - Project orchestration → Deployment server: deploys through
- Deployment server → AWS resource handlers: dispatches resources
pkg/server/server.go - Deployment server → Cloudflare resources: dispatches resources
- Project orchestration → Stack state: uses stack state
- Application developer → AWS components: defines infrastructure
README.md - Application developer → Cloudflare Worker: defines infrastructure
README.md - Bucket component → AWS components: uses functions
platform/src/components/aws/bucket.ts - Bucket component → Resource linking: creates links
platform/src/components/aws/bucket.ts - Router component → AWS components: routes to functions
platform/src/components/aws/router.ts - Router component → Bucket component: routes to buckets
platform/src/components/aws/router.ts - Router component → Component foundation: extends foundation
platform/src/components/aws/router.ts - Container service → Component foundation: extends foundation
platform/src/components/aws/service.ts - AWS DNS → Component foundation: extends foundation
platform/src/components/aws/dns.ts - Cloudflare Worker → Component foundation: extends foundation
platform/src/components/cloudflare/worker.ts - AWS components → Component foundation: extends foundation
platform/src/components/aws/function.ts - AWS components → Resource linking: reads linked permissions
platform/src/components/aws/function.ts - AWS components → Cloud providers: provisions AWS
README.md - Cloudflare Worker → Cloud providers: provisions Cloudflare
README.md - Project orchestration → Worker runtime: runs worker
pkg/runtime/worker/worker.go - Worker runtime → Runtime selection: uses runtime
pkg/runtime/worker/worker.go - Application services → JavaScript SDK: uses SDK
README.md - JavaScript SDK → Auth SDK: exposes auth
- Application developer → Live development: starts dev mode
- Live development → Config watcher: watches config
- Application developer → Development tunnel: opens tunnel