The Problem
Coding agents can generate code, but they lack a backend to deploy it to. Teams end up wiring together databases, auth, storage, and compute manually, or paying for closed platforms that lock the agent in. InsForge positions itself as the open-source layer that gives an agent the same backend primitives a human engineer would have.
What This Does
InsForge is a monorepo of seven self-contained projects, not a single codebase. The core is backend/ (506 files, TypeScript), which implements S3-compatible storage, auth, an AI gateway, email, realtime, and edge functions. packages/ (620 files) holds shared schemas, a UI kit, and a dashboard for managing the platform. frontend/ is a minimal 16-file app, likely a starter or demo.
The repo includes agent integration layers: .agents/, .claude/, .codex/, and .github/copilot-instructions.md define "skills" that let agents read backend state and configure resources. examples/ contains a Python ML experiment tracker. Deployment is via Docker and Kubernetes, with GitHub Actions CI.
How It Is Wired
Execution starts at backend/src/server.ts. The most heavily used path is the S3 gateway: handle in backend/src/api/routes/s3-gateway/commands/abort-multipart-upload.ts reaches 12 functions and is called 45 times by sendS3Error, 22 times by getInstance, and 21 times by getS3Bucket. The request function is called from 130 places, making it the highest-blast-radius change point. withAccessToken (102 callers) and cn (72 callers) follow.
The import graph shows 12 modules in circular dependencies, including packages/dashboard/src/features/database/templates/index.ts and PaymentsSettingsDialog.tsx. The S3 gateway's request.ts and errors.ts are hubs (26 and 24 dependents respectively) — changing them ripples across the codebase. Ten files exceed 1,200 lines, including backend/src/services/auth/auth.service.ts and backend/src/providers/ai/openrouter.provider.ts.
Outbound effects: 4 functions make network calls, 4 do crypto, 13 touch the database, 4 read/write files, and 1 calls a model. The cloud.provider.ts in backend/src/providers/database/ handles both crypto and network, generating connection strings and signing tokens.
How To Use It
git clone https://github.com/moses-y/InsForge
cd InsForge
npm install
cp .env.example .env
# Configure database, auth providers, and storage credentials in .env
npm run dev
The Dockerfile and deploy/Dockerfile.deno support containerized deployment. The README documents an MCP server and CLI + Skills interface for agent interaction. The backend/tests/local/ directory contains docker-compose files for MinIO and RustFS, implying storage backends are swappable.
Real-World Use
A coding agent uses the MCP server to create a Postgres database, deploy an edge function, and set up an auth provider — all through InsForge's API. The agent reads schema metadata, runs a migration, and stores uploads in an S3 bucket, without a human touching infrastructure.
Code Health & Issues
Static analysis found 143 issues: 32 high, 111 medium, 0 low. Five kinds dominate:
- High - Hub modules:
backend/src/api/routes/s3-gateway/request.tshas 26 dependents;errors.tshas 24. High churn risk. - High - Oversized files:
backend/src/services/auth/auth.service.tsat 1,213 lines;openrouter.provider.tssimilarly large. - High - Import cycles: 12 modules in circular dependencies, including dashboard feature files.
- High - Deep nesting: 32 files with indentation depth 10, e.g.,
AuthSettingsMenuDialog.tsx. - High - Duplicated code: 1,401 repeated 6-line blocks across 280 files.
The health audit flags three high-severity items: unpinned GitHub Actions (tag-based, vulnerable to supply-chain attacks), a wildcard CORS origin with credentials in backend/src/server.ts, and CI workflows that never run the 277 test files. Medium issues include missing least-privilege token permissions, no Dependabot, unpinned base images, no dependency scanning, and 18MB of video files in docs/images/. Committed secrets were detected.
The Bottom Line
InsForge is a serious, feature-complete backend platform with real depth — S3 gateway, auth, AI providers, and agent tooling. The architecture is sound but carries technical debt: hub modules, deep nesting, and CI that doesn't test. Teams wanting an open-source, agent-friendly backend should evaluate it; teams needing production stability should fix the CI and CORS issues first.