Open Source PaaS Engine

Your Own Vercel & Railway,
Self-Hosted In Under 3 Mins

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.

git-deploy-worker-01
PaaS Engine Online

Paste a GitHub URL above and click Deploy to view the deployment trace.

Core Engine Capabilities

Engineered for absolute efficiency

Dreamer goes beyond standard tutorials to deliver complex mechanisms built for real, self-hosted workloads.

Smart Scale-to-Zero

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.

Redis SET NX Dedup3s Browser PollingAPI 503 fallback

Dual Engine Abstraction

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_metal

Real-Time Log Pipeline

Build 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 index

Zero-Config Framework Detection

Scans 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.

No configs needed
Next.jsViteExpressHTML

Postgres State Machine Trigger

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.

Enforced: QUEUED ➔ BUILDING ➔ UPLOADING/STARTING ➔ RUNNING

AES-256-GCM Secure Env Storage

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 Log

Internal Mechanics

System Architecture Under the Hood

Compare the mechanics of project deployments versus scale-to-zero wake loops.

Deploy pipeline workflow

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.

API Server

Receives request, verifies HMAC, queues job in <5ms

BullMQ + Redis

Manages concurrency limiting (max 3 runs) and retries

Build Worker

Clones repo, detects framework, builds static or Docker build

Static Path

Uploads build artifacts directly to Amazon S3 for proxy streaming

OR
Dynamic Path

Pushes image to ECR ➔ Updates ECS Service ➔ Configures ALB routing rule

Architectural Foundation

Technology Stack Decoded

A carefully selected set of tools optimized for reliability, isolation, and cost structure.

System LayerTechnologyDesign Decision rationale
API ServerNode.js, Express, TypeScriptFamiliar ecosystem, fast iteration, native AWS SDK v3 integration.
Task QueueBullMQ + RedisPersistent job handling, retry logic, concurrency limit, and Bull Board UI dashboard.
DatabasePostgreSQL 16 + PrismaAppend-only deployment log persistence, full-text tsvector search index, DB triggers.
Build RunnerECS Fargate (RunTask)Completely isolated VM environments per build to guarantee security and zero crosstalk.
App RuntimeECS Service + ALBDynamic app instances behind host-based listener rules, supporting seamless routing.
Log PipelineSSE + Redis Pub/SubSSE requires no client-side socket dependencies (~40KB bundle saved) and supports auto-reconnection.
Encrypted SecretsAES-256-GCMAuthenticated encryption prevent cipher tampering. A unique IV per value blocks dictionary attacks.

Get Started

Host Your Own Platform

Deploy Dreamer locally on your machine or deploy the CDK infrastructure to your AWS account.

1Clone & Install Dependencies
git clone https://github.com/SamanPandey-in/dreamer.git
cd dreamer
pnpm install
2Setup Env Configuration
cp 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.local
3Start Local Infrastructure & DB
docker compose up -d
cd apps/api
pnpm prisma migrate deploy
pnpm prisma generate
4Run Dev Mode
# Run local development with bare-metal Docker engine
pnpm dev

Objections Answered

Frequently Asked Questions

Take Control of Your Deployments

Set up your own platform in under 3 minutes. Free yourself from restrictive plans and high cloud bills.

Deploy Your PaaS