Skip to content

chore: strip monorepo to only opencode server and deps#1

Merged
BaratovSokhibjon merged 1 commit into
devfrom
server-only
Jul 4, 2026
Merged

chore: strip monorepo to only opencode server and deps#1
BaratovSokhibjon merged 1 commit into
devfrom
server-only

Conversation

@BaratovSokhibjon

Copy link
Copy Markdown
Member

Strips the monorepo down to only the packages required by the opencode HTTP server, verified via turbo prune @opencode-ai/server.

Changes

  • Removed 18 unused packages (app, cli, codemode, console, containers, desktop, docs, enterprise, function, httpapi-codegen, identity, session-ui, slack, stats, storybook, tui, ui, web) plus client, opencode, sdk-next, script
  • Removed root-level non-essential files (.editorconfig, .github, .husky, .vscode, .zed, nix, infra, docs etc.)
  • Updated root package.json workspaces and devDependencies
  • Added packages/server/src/server.ts (Bun HTTP entrypoint)
  • Added packages/server/Dockerfile (multi-stage build)

Verification

  • Docker build: docker build -t opencode-server -f packages/server/Dockerfile . — success
  • Health check: curl localhost:3000/api/health{"healthy":true}
  • Local dev: bun packages/server/src/server.ts — starts and responds

Removed all packages not needed by @opencode-ai/server:
- UI packages (app, web, ui, tui, desktop, storybook, session-ui)
- Admin/console packages (console, enterprise, stats, slack)
- Dev tooling (cli, codemode, docs, identity, function, httpapi-codegen)
- Infrastructure (infra, containers, nix, github workflows)
- Documentation, specs, scripts, and CI/CD files

Kept only the 11 packages transitively required by the server:
core, protocol, schema, llm, plugin, sdk, http-recorder,
effect-drizzle-sqlite, effect-sqlite-node, server

Added server entrypoint (src/server.ts) and Dockerfile following
the existing stats/server pattern using turbo prune.
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@BaratovSokhibjon BaratovSokhibjon merged commit b5189e9 into dev Jul 4, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant