···11+# streamhut
22+33+AtmosphereConf 2026 Code Jam entry - serverless execution on AT Protocol.
44+55+## What is this?
66+77+A proof-of-concept system for running JavaScript bundles stored on your AT Protocol PDS. Your code is your data.
88+99+- **at-run**: Deploy and execute JS bundles from any PDS
1010+- **VOD app**: AtmosphereConf video streaming backend built on at-run
1111+1212+## Project Structure
1313+1414+```
1515+├── packages/at-run/
1616+│ ├── runtime/ # Core types for bundle authors
1717+│ ├── cli/ # Deploy bundles to PDS
1818+│ ├── runner/ # HTTP server for execution
1919+│ └── lexicons/ # AT Protocol schemas
2020+│
2121+├── apps/
2222+│ ├── vod/ # AtmosphereConf VOD bundle
2323+│ └── web/ # Video player frontend
2424+```
2525+2626+## Quick Start
2727+2828+```bash
2929+# Install dependencies
3030+bun install
3131+3232+# Login to your PDS
3333+bun packages/at-run/cli/src/index.ts login
3434+3535+# Build and deploy the VOD bundle
3636+bun build apps/vod/src/index.ts --outfile=apps/vod/dist/bundle.js --target=browser
3737+bun packages/at-run/cli/src/index.ts deploy apps/vod/dist/bundle.js
3838+3939+# Start the runner
4040+bun packages/at-run/runner/src/index.ts
4141+4242+# Test it
4343+curl http://localhost:3000/bundle/YOUR_DID/atmosphereconf-vod/latest/listVideos
4444+```
4545+4646+## How It Works
4747+4848+1. **Write** a bundle with declared permissions using `@at-run/runtime`
4949+2. **Build** with Bun targeting browser (for Deno compatibility)
5050+3. **Deploy** to your PDS as a blob with metadata record
5151+4. **Execute** via any runner - fetches bundle, sandboxes with Deno, returns result
5252+5353+```typescript
5454+import { manifest, endpoint } from "@at-run/runtime"
5555+5656+export const bundle = manifest({
5757+ name: "my-api",
5858+ permissions: { net: ["api.example.com"] },
5959+})
6060+6161+export const getData = endpoint({
6262+ handler: async () => {
6363+ const res = await fetch("https://api.example.com/data")
6464+ return res.json()
6565+ },
6666+})
6767+```
6868+6969+## Documentation
7070+7171+- [at-run README](./packages/at-run/README.md) - Full documentation
7272+- [VOD Bundle](./apps/vod/README.md) - Example bundle
7373+7474+## Requirements
7575+7676+- [Bun](https://bun.sh) - Runtime and bundler
7777+- [Deno](https://deno.land) - Sandbox execution
7878+7979+## License
8080+8181+MIT