HUB
Sign inSign up
babychain logo

babyseaoss/babychain

Sponsored OSS

By BabySea, Inc.

•Updated 5 months ago

Canvas studio, agentic planner, and durable chain API for image and video model workflows.

Image
API management
Machine learning & AI
Developer tools
1

2.5K

babyseaoss/babychain repository overview

⁠BabyChain

BabyChain is a self-hosted canvas studio and durable HTTP API for chaining image and video generation models. Design image-to-video workflows visually, run them from the dashboard, or call the same production API from your own application. BabyChain keeps provider credentials server-side, stores run state in PostgreSQL/Aurora, and sends one signed callback when the final result is ready.

⁠Image

docker pull babyseaoss/babychain:latest

Available tags:

  • latest
  • 0.4.1
  • 0.4.0
  • 0.3.0
  • 0.2.0
  • 0.1.1

⁠Quick start

Create an environment file from the BabyChain .env.example and fill at least:

  • NEXT_PUBLIC_SITE_URL
  • DATABASE_URL
  • OWNER_EMAIL
  • OWNER_PASSWORD
  • OWNER_SESSION_SECRET
  • BABYCHAIN_API_KEY
  • BABYCHAIN_CRON_SECRET
  • BABYCHAIN_CALLBACK_SECRET
  • Inference provider keys if you use BYOK-mode (Alibaba Cloud, Black Forest Labs, BytePlus, Google, OpenAI, Runway)
  • BabySea keys if you use BabySea-mode
  • Amazon Bedrock keys if you use Agentic Workflow (Amazon Nova)
  • Storage provider keys if you use storage (AWS S3, Vercel Blob)

Then run:

docker run --rm \
  --name babychain \
  --env-file .env.local \
  -p 3000:3000 \
  babyseaoss/babychain:latest

Open:

http://localhost:3000

The published latest image is built for local use at http://localhost:3000. For a production domain, build your own image with the final public URL:

docker build \
  --build-arg NEXT_PUBLIC_SITE_URL="https://your-domain.example.com" \
  -t babychain:production .

⁠Health check

The image exposes port 3000 and includes a container health check against:

/api/health

You can verify manually:

curl -fsS http://localhost:3000/api/health

⁠Runtime requirements

BabyChain requires a reachable PostgreSQL database. AWS Aurora PostgreSQL is the recommended production database. Apply the schema before the first real run:

pnpm run aurora:migrate

For long-running deployments, schedule queued-run recovery by calling:

GET /api/cron/process-runs

with:

Authorization: Bearer BABYCHAIN_CRON_SECRET

⁠Security notes

  • Runs as the non-root node user.
  • Based on node:24-alpine.
  • Does not ship npm/npx in the final runtime image.
  • Provider credentials stay server-side.
  • Caller applications authenticate with BabyChain API keys.
  • SENTRY_AUTH_TOKEN is only needed in CI/build environments for optional source map uploads, not at runtime.

Tag summary

Content type

Image

Digest

sha256:a4675068d…

Size

254.7 MB

Last updated

5 months ago

docker pull babyseaoss/babychain