navigation_

© 2026 Swadhin Biswas

~/projects / opencodehub

OpenCodeHub

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

AI Opencodehub GithubAlternative github Runner gitlab
OpenCodeHub

OpenCodeHub Logo

A modern self-hosted Git platform for teams that want speed, control, and clean workflows.

OpenCodeHub combines Git hosting, pull requests, issues, wiki, merge queue, automation, and a stack-first CLI in one deployable system.

CLI version License Docs


Why OpenCodeHub

Most teams eventually hit the same pain points:

  • PRs are too large to review quickly
  • Tooling is split across many services
  • Data residency and security requirements are hard to satisfy in SaaS-only setups

OpenCodeHub is built for that reality: self-hosted by default, with workflows optimized for fast review cycles and scalable team collaboration.

What Is Already In This Codebase

These are not roadmap claims; they are implemented modules and routes in this repository.

Core platform

  • Git hosting over HTTP and SSH (src/pages/git/*, src/lib/ssh.ts, src/lib/git-server.ts)
  • Pull requests with comments, reviews, drafts, approvals (src/pages/[owner]/[repo]/pulls/*)
  • Issues, labels, milestones, and project boards (src/pages/[owner]/[repo]/issues/*, src/pages/[owner]/[repo]/milestones/*, src/pages/[owner]/[repo]/projects/*)
  • Repository wiki and revision history (src/pages/[owner]/[repo]/wiki/*)
  • Organizations, collaborators, repository settings, branch protection

Delivery workflows

  • Stacked PR workflows in web + CLI (src/lib/stacks.ts, cli/src/commands/stack/index.ts)
  • Merge queue and conflict handling (src/lib/merge-queue.ts, src/pages/[owner]/[repo]/merge-queue.astro)
  • GitHub Actions-style pipeline engine + runner endpoints (src/lib/pipeline.ts, src/pages/api/actions/*, src/runner/*)
  • Webhooks and automation rules (src/pages/api/repos/[owner]/[repo]/webhooks/*, src/lib/automations.ts)

Security and governance

  • Rate limiting middleware (src/middleware/rate-limit.ts, src/middleware.ts)
  • CSRF utilities (src/middleware/csrf.ts)
  • Input validation layer (src/lib/validation.ts)
  • MFA (TOTP), OAuth/OIDC, token management, audit surfaces (src/pages/api/user/settings/2fa.ts, src/lib/oidc.ts, src/pages/admin/audit.astro)

Extensibility and APIs

  • REST API routes: 140+ files under src/pages/api/
  • GraphQL endpoint (src/pages/api/graphql.ts)
  • OpenAPI JSON endpoint (src/pages/api/openapi.json.ts)
  • CLI with 20+ command groups under cli/src/commands/

Storage and database flexibility

  • Database adapter factory with multiple drivers (src/db/adapter/index.ts)
  • Pluggable storage backends (src/lib/storage.ts)

Architecture

OpenCodeHub Architecture

OpenCodeHub is a modular monolith: one main app, optional worker/runner processes, pluggable persistence, and Git protocol handling integrated into the platform.


Thanks for the Star!

If you appreciate my work, consider supporting me.

No support options configured yet.