GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hurole/MiniCI: A lightweight continuous integration (CI) system based on Gitea and scripts.

BranchesTags
Open more actions menu

Latest commit

 

History

49 Commits
49 Commits

Folders and files

NameName
Last commit message
Last commit date
apps
apps
 
 
bin
bin
 
 
openwiki
openwiki
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.oxlintrc.json
.oxlintrc.json
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.zh-CN.md
README.zh-CN.md
 
 
oxfmt.config.ts
oxfmt.config.ts
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 

Repository files navigation

MiniCI Logo

MiniCI

A lightweight, modern continuous integration (CI) and deployment platform built on a TypeScript monorepo.

English • 简体中文

License Node.js pnpm TypeScript React 19 Koa Prisma


📖 Introduction

MiniCI is an end-to-end continuous integration and deployment management system. Managed via pnpm workspaces, it pairs a fast Node.js/Koa backend with a responsive React 19 single-page application to provide an intuitive, flexible pipeline execution engine.

✨ Features

  • ⚡ Modern Frontend: React 19, Rsbuild, Arco Design, TailwindCSS, and atomic Zustand state management.
  • 🚀 Robust Backend: Node.js + Koa 2 with TC39 Stage 3 routing decorators and CSR architecture.
  • 🗄️ Data Persistence: Prisma ORM with SQLite backend and built-in migration management.
  • 🔄 Git & OAuth Integration: First-class support for Gitea OAuth authentication, repository cloning, and branch/commit tracking.
  • 🛠️ Unified Toolchain: Ultra-fast linting and formatting powered by oxlint and oxfmt (@fka/oxfmt-config).
  • 🔒 Type-Safe: Full-stack TypeScript strictly enforced throughout the monorepo.

🛠 Tech Stack

Domain Technologies
Monorepo & Package Management pnpm Workspaces, TypeScript
Linting & Formatting oxlint, oxfmt (@fka/oxfmt-config)
Frontend (apps/web) React 19, Rsbuild, Arco Design, TailwindCSS, Zustand, React Router v7
Backend (apps/server) Node.js, Koa, Prisma (SQLite), Pino, zx

📂 Project Structure

MiniCI/
├── apps/
│   ├── server/             # Backend Koa application
│   │   ├── controllers/    # API Controllers
│   │   ├── decorators/     # TC39 Stage 3 route decorators (@Get, @Post, etc.)
│   │   ├── libs/           # Utility libraries (Git, Execution Queue, Webhook, etc.)
│   │   ├── middlewares/    # Koa middleware stack
│   │   ├── prisma/         # Prisma schema and SQLite database
│   │   └── .env.example    # Server environment template
│   └── web/                # Frontend React application
│       └── src/
│           ├── components/ # Shared UI components
│           ├── pages/      # Route views (pages, sub-components, services)
│           ├── stores/     # Zustand state stores
│           └── utils/      # HTTP client and helpers
├── .oxlintrc.json          # Oxlint configuration
├── oxfmt.config.ts         # Oxfmt configuration
├── package.json            # Root workspace scripts & dev tools
└── pnpm-workspace.yaml     # pnpm workspace definition

🚀 Getting Started

Prerequisites

  • Node.js (v20.0.0 or higher recommended)
  • pnpm (corepack enable or npm install -g pnpm)

1. Clone & Install Dependencies

git clone https://github.com/hurole/MiniCI.git
cd MiniCI
pnpm install

2. Environment Configuration

Copy the example environment configuration in apps/server:

cp apps/server/.env.example apps/server/.env

Edit apps/server/.env to configure your database path and Gitea OAuth credentials:

# Server
PORT=3001
NODE_ENV=development

# SQLite Database
DATABASE_URL="file:./prisma/data/dev.db"

# Gitea OAuth (for authentication & repository access)
GITEA_URL="https://your-gitea-instance.com"
GITEA_CLIENT_ID="your_oauth_client_id"
GITEA_CLIENT_SECRET="your_oauth_client_secret"
GITEA_REDIRECT_URI="http://localhost:3000/login"

# Logging & Workspace
LOG_LEVEL="debug"
PIPELINE_WORKSPACE="/tmp/minici/workspace"

3. Database Initialization

Generate the Prisma client and push the schema to SQLite:

cd apps/server
pnpm prisma generate
pnpm prisma db push
cd ../..

4. Run Development Servers

Start both frontend and backend development servers concurrently:

pnpm dev
  • Web UI: http://localhost:3000
  • Backend API: http://localhost:3001

📜 Available Scripts

Command Description
pnpm dev Starts all workspace applications in parallel
pnpm lint Runs oxlint for fast static code analysis
pnpm lint:fix Automatically fixes lint issues with oxlint --fix
pnpm fmt Formats all code with oxfmt
pnpm fmt:check Verifies code formatting across the repository
pnpm check Runs full static check (oxlint && oxfmt --check)
pnpm --filter web build Builds the frontend production bundle
pnpm --filter server build Compiles the backend TypeScript code

🗺️ Roadmap

  • Gitea Integration: OAuth2 authentication, repository browsing, branch & commit discovery.
  • Multi-Git Providers Support:
    • GitHub OAuth & API integration (Repositories, Branches, Commits, Pull Requests).
    • GitLab self-hosted & SaaS integration.
    • Custom Git provider adapter interface (GitProvider abstraction).
  • Webhook Automation: Trigger automated pipeline executions on Git push / tag / PR events.
  • Notification Channels: Lark/Feishu, DingTalk, WeChat Work, Slack, and Discord webhook integration.
  • Pipeline Execution Enhancements:
    • Concurrent matrix builds.
    • Docker-in-Docker isolated container execution environments.
    • Artifacts archiving & cache management.

🤝 Development Guidelines

Please refer to AGENTS.md for code conventions, architectural patterns, and development workflow.

  1. Strict Monorepo Isolation: Do not cross-import code between server and web.
  2. ESM Imports: Relative imports in the backend must include .ts extensions.
  3. Format & Lint: Ensure pnpm check passes before committing code.

📄 License

This project is licensed under the MIT License.

About

A lightweight continuous integration (CI) system based on Gitea and scripts.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.