Skip to content

swadhinbiswas/OpencodeHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

310 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCodeHub

OpenCodeHub

CLI version License CI

Self-hosted Git platform with stacked PRs, merge queue, CI/CD, and AI code review. Built for teams that want speed and control.


Quick Start

git clone https://github.com/swadhinbiswas/OpencodeHub.git
cd OpenCodeHub
cp .env.example .env
docker compose up -d
docker compose exec app bun run scripts/seed-admin.ts

Open http://localhost:4321 and create your admin account.

Requirements: Docker, or Node.js 20+ with PostgreSQL.


What It Does

Git Hosting — HTTP smart protocol + SSH push/pull. Forks, mirroring, LFS, wiki.

Stacked PRs — Break large changes into dependent branches. Each PR builds on the previous. Review in order, merge in order.

Merge Queue — Stack-aware merge ordering with speculative CI builds. main never breaks.

CI/CD — GitHub Actions-compatible workflows. Docker-based runners. Artifacts, secrets, matrix builds.

AI Code Review — GPT-4, Claude, Gemini, Groq, Ollama, and 5+ more providers. Catches bugs, security issues, and style problems automatically.

Issues & Projects — Labels, milestones, custom fields, kanban boards.

175+ API Endpoints — REST + GraphQL. Full programmatic access to everything.

CLIoch command line tool for stack workflows, reviews, and repository management.


Deploy

Docker (Recommended)

git clone https://github.com/swadhinbiswas/OpencodeHub.git
cd OpenCodeHub
cp .env.example .env
docker compose up -d
docker compose exec app bun run scripts/seed-admin.ts

Render (Free)

See Render Deployment Guide. Uses free PostgreSQL + Upstash Redis.

Other Options

Platform Guide
Docker Compose Deployment Guide
NAS (Synology/TrueNAS) NAS Guide
Kubernetes K8s Guide
Cloudflare Tunnel Cloudflare Guide
Free Tier Options Free Deployment

Tech Stack

Layer Tech
Framework Astro 4.x SSR + React 18
Database PostgreSQL, SQLite, Turso (Drizzle ORM)
Auth JWT, OAuth, 2FA/TOTP, SSO/SAML
CI/CD Docker-based runners, GitHub Actions syntax
Storage Local, S3, MinIO, R2, or any S3-compatible
CLI Commander.js (npm i -g opencodehub-cli)

Documentation

Full docs at docs.opencodehub.space:


CLI

npm install -g opencodehub-cli

och auth login --url http://localhost:4321
och stack create feature/auth
och stack submit
och focus

Contributing

  1. Fork the repo
  2. Create a branch
  3. npm install && npm run db:push && npm run dev
  4. Run tests: npm run test
  5. Open a PR

See CONTRIBUTING.md for details.


License

MIT

About

A fully self-hosted Git platform built for speed. Features SSH, Actions-compatible pipelines, and AI code reviews in a beautiful interface

Topics

Resources

License

Contributing

Stars

10 stars

Watchers

0 watching

Forks

Contributors