DorkOSDorkOS
Contributing

Development Setup

Set up a local development environment for DorkOS

Development Setup

Get DorkOS running locally for development.

Prerequisites

DorkOS requires Node.js 18 or later. Check your version with node --version.

Installation

Clone and install

git clone https://github.com/dork-labs/dorkos.git
cd dorkos
pnpm install

Configure environment

Copy the example environment file and add your API key:

cp .env.example .env

Edit .env and set ANTHROPIC_API_KEY=your-key-here.

Start development servers

pnpm dev

This starts both the Express server (port 4242) and the Vite dev server (port 3000). Open http://localhost:3000 in your browser.

Running Individual Apps

dotenv -- turbo dev --filter=@dorkos/server
dotenv -- turbo dev --filter=@dorkos/client

Always use pnpm scripts or prefix commands with dotenv -- to ensure .env is loaded. Running bare turbo will not pick up environment variables.

Common Commands

Prop

Type

Running Specific Tests

pnpm vitest run apps/server/src/services/__tests__/transcript-reader.test.ts

Monorepo Structure

DorkOS is a Turborepo monorepo with four apps and four shared packages:

turbo.json
vitest.workspace.ts
package.json
DirectoryPackageDescription
apps/client@dorkos/clientReact 19 SPA (Vite 6, Tailwind 4, shadcn/ui)
apps/server@dorkos/serverExpress API server
apps/web@dorkos/webMarketing site & docs (Next.js 16, Fumadocs)
apps/obsidian-plugin@dorkos/obsidian-pluginObsidian sidebar plugin
packages/clidorkosPublishable npm CLI
packages/shared@dorkos/sharedZod schemas, shared types
packages/typescript-config@dorkos/typescript-configShared tsconfig presets
packages/test-utils@dorkos/test-utilsMock factories, test helpers

Next Steps