Contributing

Set up the VitNode monorepo locally, run tests and typechecks, and submit pull requests.

Contributions to VitNode - whether bug fixes, new features, or documentation improvements - are always welcome!

Quick start

Clone the repository, start local containers, and launch the dev server:

Setup VitNode monorepo
bun install
bun run docker:dev
bun dev
pnpm install
pnpm docker:dev
pnpm dev
npm install
npm run docker:dev
npm run dev

Open http://localhost:3000 to view the website, AdminCP, and live docs.


Monorepo Layout

DirectoryRole
packages/vitnode@vitnode/core package containing routing, auth, models, and UI primitives
apps/webFrontend TanStack Start application and documentation portal
apps/apiStandalone Hono REST/RPC API server
plugins/*First-party plugins (@vitnode/blog, @vitnode/example)

Local Validation Checks

Before opening a pull request, run the same checks that execute in GitHub Actions CI:

1. Typecheck

Typecheck
bun run typecheck
pnpm typecheck
npm run typecheck

2. Run Tests

Run unit tests
bun test
pnpm test
npm test

3. Build All Workspaces

Build workspaces
bun run build
pnpm build
npm run build

Pull Request Guidelines

  1. Focused PRs: Keep changes scoped to a single feature or bug fix.
  2. Follow Conventions: Follow repository conventions from AGENTS.md (no any, arrow function components, semantic tokens).
  3. Tests: Add unit tests for non-trivial logic using Vitest.

Learn More