Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lasect/dymunim

Open more actions menu

Repository files navigation

Dymunim

Postgres-backed job queue with Cloudflare Dynamic Workers for code execution.

Stack

  • Database: Postgres 16 + PGMQ
  • Execution: Cloudflare Dynamic Workers (LOADER.load / LOADER.get)
  • API: TanStack Start server functions
  • UI: TanStack Start + shadcn/ui

Architecture

UI → Postgres (job storage) → Server Functions → Cloudflare Worker → Dynamic Workers

Jobs store JavaScript code in Postgres. Server calls Cloudflare to spawn dynamic workers that execute the code in a sandbox.

Quick Start

  1. Deploy Cloudflare Worker:

    cd cloudflare-worker
    npm install
    wrangler deploy
  2. Copy .env.example to .env and set CLOUDFLARE_WORKER_URL

  3. Start database and UI:

    docker-compose up -d
    cd apps/web && bun run dev
  4. Open http://localhost:3000

Environment Variables

  • DATABASE_URL - Postgres connection
  • CLOUDFLARE_WORKER_URL - Deployed Cloudflare Worker URL

Key Files

  • cloudflare-worker/src/index.ts - Worker Loader implementation
  • apps/web/src/server/functions.ts - Job API
  • apps/web/src/routes/workers.new.tsx - Dynamic worker UI
  • infrastructure/postgres/migrations/ - Database schema

About

postgres-native execution layer powered by cloudflare dynamic workers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.