Sign inSign up

[Open-source] A self-hosted collaborative development platform that connects tasks, code, and delivery

Open SourceApprovals & Workflows
2026-12-03 12:35 0 views • 0 downloads 0KB
[Open-source] A self-hosted collaborative development platform that connects tasks, code, and delivery

1. Project Overview

iForge

Self-hosted development collaboration platform that connects tasks, code, and delivery

What is iForge

iForge is for teams that want to put project management and code collaboration in the same workflowIt connects Story / Task, Git branch, commit, merge request (MR), CI/CD, and releaseLet work items be traceable and collaborative from requirements to delivery

Requirements → Story / Task → Branch → Commit → MR / Review → Pipeline → Release

The project can be self-hosted, providing a browser interface, Git HTTP/SSH protocol, and external Runner access

2. Open Source License

Licensed under Apache-2.0

3. Screenshots

Image
Image
Image

4. Feature Overview

Core Capabilities

Domain

Capabilities

Code Management

Repository creation, import, fork, branch, and label, file browsing, diff, archive download, Git HTTP, and SSH

Collaboration and Review

Issue, comment, label, milestone, merge request, line-by-line comment, Approve / Request changes, branch protection

Agile Management

Project, Sprint, Epic, Story, Task, Kanban, dependency, work hour, state transition, and activity record

AI Assistance

AI-driven task decomposition and user story generation, supporting custom model configuration, assisting requirement analysis, and work optimization

Task-Driven Development

Create/associate branch from task, commit, and MR associate work item, delivery status can be traced back

CI/CD

.iforge-ci.yml

 

Pipeline, DAG dependency, log, artifact, environment, deployment, scheduled task, and external Runner

Notification and Integration

WebSocket real-time notification, Webhook, plugin event, email notification, LDAP / OIDC authentication option

Platform Management

Organization and member, access token, SSH/GPG key, audit, system setting, and AI model configuration

5. Tech Stack

Quick Start

The simplest local experience way is Docker Compose. Default uses SQLite, suitable for local development and functional experience.

git clone https://github.com/iforge-go/iforge.gitcd iforgecp .env.example .envdocker compose up -d --build

After startup, access http://localhost:3000, complete administrator initialization for the first time.

Common commands:

docker compose logs -fdocker compose down

Git HTTP is mapped to the host machine 8080 by default, SSH is mapped to 22 by default. If there is a port conflict, adjust IFORGE_HTTP_PORT and IFORGE_SSH_PORT in .env.

Production deployment

Database selection

Scenario

Recommendation

Local development, demonstration, single-person experience

SQLite

Already running production environment

MySQL 8.0+

New production environment, complex queries or future multi-instance planning

PostgreSQL 16+

MySQL 8 is a supported production database, no need to migrate immediately for performance reasons. SQLite is not suitable for multi-instance or high-concurrency write scenarios.

Start MySQL production configuration:

# Set strong password, fixed session key, and specify database driver in .envIFORGE_DB_DRIVER=mysqlMYSQL_ROOT_PASSWORD=<strong-password>MYSQL_PASSWORD=<strong-password>IFORGE_SESSION_SECRET=<random-secret>docker compose --profile mysql up -d --build

Start PostgreSQL:

IFORGE_DB_DRIVER=postgresPOSTGRES_PASSWORD=<strong-password>IFORGE_SESSION_SECRET=<random-secret>docker compose --profile postgres up -d --build

Production environment should be completed additionally:

  • Set a fixed high-entropy value for IFORGE_SESSION_SECRET; multiple replicas must share the same key.
  • Tighten IFORGE_CORS_ORIGINS to actual frontend domain names.
  • Do not expose database ports directly to the public network; provide HTTPS through reverse proxy.
  • Perform regular backup and recovery drills for data/ (repository, logs, and SQLite data) or external databases.
  • When using external Runner, set IFORGE_DISABLE_BUILTIN_EXECUTOR=true and limit Runner's permissions and network access.

Connection pool

MySQL/PostgreSQL uses up to 30, idle 10 database connections for each iForge service instance by default. Can be adjusted through .env:

IFORGE_DB_MAX_IDLE_CONNS=10IFORGE_DB_MAX_OPEN_CONNS=30IFORGE_DB_CONN_MAX_LIFETIME_SECONDS=1800IFORGE_DB_CONN_MAX_IDLE_TIME_SECONDS=300

The connection limit should be planned together with the application instance number and database max_connections to avoid exceeding the database's capacity.

Architecture

┌─────────────────────────────────────────────────────────────────┐│                        Nginx reverse proxy                            ││              iforge-nginx (independent repository unified management)                       ││                                                                  ││   iforge-go.com ──────► iforge-site (document site)                     ││   www.iforge-go.com ──► iforge-site (Documentation Site)                   |│   demo.iforge-go.com ─┬─► iforge-web (Frontend)                   ||                   └─► iforge-server (Backend)                   |└─────────────────────────────────────────────────────────────────┘                              │┌─────────────────────────────┼───────────────────────────────────┐|                   iForge Platform                       |│                                                                  ││  ┌───────────────┐       HTTP / WebSocket       ┌──────────────┐││  │ Next.js Web   │ ───────────────────────────► │ Go + Fiber   │││  │ Next.js 16    │                               │ Server       │││  └───────────────┘                               │ API·Git·SSH  │││                                                  └──────┬───────┘││                                                         │        ││                                                 ┌───────▼──────┐││                                                 │  Database    │││                                                 │  SQLite /    │││                                                 │  MySQL /     │││                                                 │  PostgreSQL  │││                                                 └──────────────┘││                                                         │        ││                                                 ┌───────▼──────┐││                                                 │ CI/CD Runner │││                                                 └──────────────┘│└──────────────────────────────────────────────────────────────────┘

Backend adopts layered directory structure: handler handles HTTP, service carries business logic, model describes data model, git encapsulates Git operation, event/subscriber handles domain events, container is responsible for dependency injection. Frontend adopts Next.js App Router, React, and Chakra UI.

Related Repositories

Repository

Description

iforge

Main Platform (server + web)

iforge-site

Official Documentation Site (Docusaurus)

iforge-runner

CI/CD Executor (Independent Deployment)

iforge-nginx

Nginx Reverse Proxy Configuration (Unified Domain Name Routing)

Current Deployment Boundary

The current version is suitable for single-instance self-hosting. WebSocket connections, domain events, and built-in CI scheduling are mainly run in-process; if multiple instances are required for high availability, shared Git storage, cross-node message distribution, distributed locks, and external Runner should be planned first.

Local development

Dependency

  • Go 1.26+
  • Node.js 18+
  • Git 2.30+
  • Docker 20.10+ (Recommended, used for local dependencies and CI/CD)

Start the Backend

cd servergo run ./cmd/server

Backend defaults to listening on port 8081. If using MySQL or PostgreSQL, please configure server/config.yaml or the corresponding IFORGE_* environment variable first; please refer to
server/config.prod.mysql.yaml and server/config.prod.pg.yaml.

Start the Frontend

cd webnpm installnpm run dev

Frontend defaults to listening on http://localhost:3001.

Configuration Reference

Variables

Description

Default Value

IFORGE_HOME

Data catalog

./data

IFORGE_HTTP_PORT

Backend HTTP/Git HTTP Port

8081

IFORGE_SSH_PORT

Git SSH Port

2022

IFORGE_DB_DRIVER

sqlite、mysql

 

or

 

postgres

sqlite(Compose)

IFORGE_SESSION_SECRET

Session Signature Key

First-time generation

IFORGE_CORS_ORIGINS

Allowed frontend sources

*

IFORGE_DISABLE_BUILTIN_EXECUTOR

Disable built-in CI executor

false

Complete example see .env.example; backend file configuration see
server/config.example.yaml。

Project Structure

iforge/├── server/                 Go/FiberBackend andGitService│   ├── cmd/server/Service Entry│   └── internal/Domain Module、Route、Service and Infrastructure├── web/                    Next.js Frontend├── plugins/Plugin Examples├── docker-compose.yml      Local and Containerized Deployment (SupportingSQLite/MySQL/PostgreSQL)├──.env.example        Environment Variable Example└── deploy/Deployment Configuration (Migrated to Independent Repository iforge-nginx)

 

6. Source Code Repository

Open-source project address:

https://github.com/iforge-go/iforge

#1
资源直链https://github.com/iforge-go/iforge.git
Download

Next steps

Browse similar deployable resources