Clones your repositories, auto-detects frameworks, containerizes applications, provisions wildcard routing subdomains, streams build logs, and scales to zero when idle. AWS or local Docker.
Engineered for absolute efficiency
Dreamer goes beyond standard tutorials to deliver complex mechanisms built for real, self-hosted workloads.
Dynamic app deployments receiving no traffic for 15 minutes scale automatically to desiredCount: 0 on ECS, halting active charges. Wakes up in seconds on subsequent requests using a distributed lock to prevent cold-start bottlenecks.
Deploy to ECS Fargate for cloud orchestration, or route to local Docker containers and NGINX on bare-metal. The worker interacts with a unified execution interface.
DEPLOYMENT_ENVIRONMENT=cloud|bare_metalBuild logs stream in real-time from the ECS build container using Redis Pub/Sub directly to Server-Sent Events (SSE). Concurrently saves to PostgreSQL with sequence numbers for gapless history.
SSE + Redis Pub/Sub + PG GIN indexScans package configuration to identify Next.js (SSR vs export), React, Vue, Svelte, Express, or static HTML. Auto-generates high-performance multi-stage Dockerfiles (~50MB final images) to speed up pulls and deployments.
Application-layer status updates can fail under heavy race conditions or double worker pick-ups. Dreamer enforces strict state machine transitions directly inside the database via PostgreSQL triggers, preventing concurrent updates or double-queues.
Variables and keys are encrypted using AES-256-GCM with a unique initialization vector (IV) per value. Decrypted dynamically only at container initialization inside Fargate.
IV per value + Audit LogCompare the mechanics of project deployments versus scale-to-zero wake loops.
When a new deploy job is triggered, the request is immediately enqueued on BullMQ and returns a response in under 5ms, processing the build pipeline asynchronously.
Receives request, verifies HMAC, queues job in <5ms
Manages concurrency limiting (max 3 runs) and retries
Clones repo, detects framework, builds static or Docker build
Uploads build artifacts directly to Amazon S3 for proxy streaming
Pushes image to ECR ➔ Updates ECS Service ➔ Configures ALB routing rule
A carefully selected set of tools optimized for reliability, isolation, and cost structure.
| System Layer | Technology | Design Decision rationale |
|---|---|---|
| API Server | Node.js, Express, TypeScript | Familiar ecosystem, fast iteration, native AWS SDK v3 integration. |
| Task Queue | BullMQ + Redis | Persistent job handling, retry logic, concurrency limit, and Bull Board UI dashboard. |
| Database | PostgreSQL 16 + Prisma | Append-only deployment log persistence, full-text tsvector search index, DB triggers. |
| Build Runner | ECS Fargate (RunTask) | Completely isolated VM environments per build to guarantee security and zero crosstalk. |
| App Runtime | ECS Service + ALB | Dynamic app instances behind host-based listener rules, supporting seamless routing. |
| Log Pipeline | SSE + Redis Pub/Sub | SSE requires no client-side socket dependencies (~40KB bundle saved) and supports auto-reconnection. |
| Encrypted Secrets | AES-256-GCM | Authenticated encryption prevent cipher tampering. A unique IV per value blocks dictionary attacks. |
Deploy Dreamer locally on your machine or deploy the CDK infrastructure to your AWS account.
git clone https://github.com/SamanPandey-in/dreamer.git
cd dreamer
pnpm installcp apps/api/.env.example apps/api/.env
cp apps/build-engine/.env.example apps/build-engine/.env
cp apps/reverse-proxy/.env.example apps/reverse-proxy/.env
cp apps/frontend/.env.example apps/frontend/.env.localdocker compose up -d
cd apps/api
pnpm prisma migrate deploy
pnpm prisma generate# Run local development with bare-metal Docker engine
pnpm devSet up your own platform in under 3 minutes. Free yourself from restrictive plans and high cloud bills.
Deploy Your PaaS