Skip to content

Latest commit

 

History

History
205 lines (130 loc) · 12.2 KB

README.md

File metadata and controls

205 lines (130 loc) · 12.2 KB

Doca

Doca

Open-source, self-hosted workspace for documents and knowledge

Rich text · Markdown · Spreadsheets · Slides · Infinite canvas
Released under the MIT License.

Self-host with Docker · Download apps · Live demo · Documentation

Latest release MIT license

English · 简体中文 · 繁體中文 · 日本語 · Français · 한국어 · Español · Русский

Five collaborative editors

Co-edit in real time, leave comments, and review version history. Organize your documents in knowledge libraries and connect your own AI models to work with the materials you can access.

Rich text · Plans, guides, and meeting notes

Doca rich text editor displaying a team collaboration guide beside the knowledge library tree

Markdown · Technical notes and code snippets

Doca Markdown editor with a development note in source and preview split view

Spreadsheets · Budgets and project tracking

Doca spreadsheet editor with a formatted project budget

Slides · Presentations and project updates

Doca presentation editor displaying a product introduction

Infinite canvas · Flowcharts and mind maps

Doca canvas editor showing a project flowchart, mind map, and action table

Editor screenshots captured from Doca 0.3.0 in English with sample content in an isolated local deployment.

Quick start with Docker

Run Doca on your own server with SQLite and local file storage. A fresh installation uses one Compose file and requires Docker Engine, Docker Compose, and an HTTP(S) reverse proxy. Existing installations must read the release requirements and retain their project name, volumes, databases, attachments and master key.

# 1. Download the standalone configuration into a permanent deployment directory
mkdir doca && cd doca
curl -fL https://github.com/workhold/doca/releases/download/v0.3.13/doca-compose-v0.3.13.yaml -o compose.yaml

# 2. Generate the master key with openssl rand -hex 32
# Edit compose.yaml: fill in DOCA_ORIGIN and DOCA_CREDENTIAL_MASTER_KEY
chmod 600 compose.yaml

# 3. Pull, start and wait for healthy
docker compose pull
docker compose up -d
docker compose ps

# 4. Enter the administrator login and password at the terminal prompt
docker compose exec doca bash docker/admin.sh bootstrap

The password must be at least 12 characters. There is no default account. Compose binds to 127.0.0.1:39120; configure an HTTP(S) reverse proxy before browser access. SQLite, files, plugins, and the AI database persist in doca_data.

The complete quick start includes .env, the reverse proxy, health checks, administrator recovery, and data preservation.

For native Debian 12 setup, see the interactive Linux installer.

Offline deployment

For servers without GitHub access, transfer deployment files without Git or source code. The supplier runs node scripts/pack-deployment.mjs to generate the bundle; the guide also includes copyable Compose, .env, and initialization steps. If registries are unreachable too, deliver the matching image with docker save / docker load.

Deploy on RepoCloud

Mobile and desktop apps

Download the Android APK, macOS DMG, or Windows installer · Desktop client guide

Doca mobile workspace with recent documents, their locations, and access labels Doca mobile AI assistant with an input box and conversation controls

Doca 0.3.8 mobile workspace and AI assistant with a Simplified Chinese interface

Doca desktop workspace with multiple tabs and a backend switcher

Doca 0.3.0 desktop workspace

Desktop setup and sign-in

The Doca desktop client (Windows, macOS) connects to your own Doca service: workspace windows with independent tabs, several backends at once — signing out or removing one backend closes only its own pages. Sign-in uses system-browser authorization and desktop credentials stay in a local encrypted file. Windows, tabs, and routes are saved per backend and restored on relaunch. Plugins remain installed and executed on your server and load through the authenticated proxy.

Current builds are unsigned and not notarized: on macOS, right-click the app and choose Open the first time; Windows may show a SmartScreen prompt. Your server must run 0.2.37 or newer. See the desktop client guide.

What you can do

Doca workspace with recent documents, a team knowledge library, and the AI assistant entry

  • Knowledge management. Knowledge libraries with document trees, plus shared knowledge books with workflows, source evidence, and human review.
  • Personal AI assistant. Work with authorized documents and files, read PDF/Office attachments, generate or edit images, and analyze webpage material. Requires configured models and services.
  • Browser extension. Capture pages or selections in Chrome and Edge with text, source links, and images. Save to a new or existing document and organize webpages with Doca AI in the sidebar.
  • MCP services. Connect external AI clients such as Codex to authorized Doca tools and SKILLs, using personal services or company integrations acting as a named user.
  • Files and sharing. Personal files, shared folders, invitations, permission controls, share links, search, notifications, and trash. Local or S3-compatible file storage.
  • Accounts and languages. Use Doca in several languages. Sign in with a password, phone verification code, OIDC, Google, GitHub, WeChat QR, or QQ. External login and SMS require service configuration.
  • Self-hosting and extensions. Docker deployment. Use SQLite for one server, or shared PostgreSQL, Redis, and file storage for multiple replicas. Business plugins use the public @smartdoca/plugin-sdk.

One deployment has one account system. The default image installs no quick-notes, mail, calendar, membership, or moderation plugins. Templates and materials need a separately installed provider. See capabilities and limits.

Bring web sources into your own knowledge library

Configure a capture profile under Browser assistant in personal settings, download the site-configured extension, and load its unpacked folder in Chrome / Edge. It follows your Doca website sign-in and saves a page or selection to personal documents, a library destination, or an existing document. Installation currently uses the download package; no browser-store release is provided.

The webpage toolbar provides capture, Doca assistant, and settings. Its sidebar summarizes and organizes the active page using the site's models, metering, and approvals, with conversations available in Doca too. Source webpages appear in operated resources, and page-first conversation titles make them easier to find. See browser assistant setup and usage.

Connect external AI clients to Doca tools and SKILLs

Doca exposes Streamable HTTP MCP so compatible clients can discover authorized tools, read SKILL manuals, and work with documents and files. Personal services act as their owner; company services support integrations with an explicit target user on every operation. Service grants and resource permissions both apply. Tokens can be reset, disabled, or revoked independently.

Enable MCP in personal settings, create a service, and copy its generated client configuration. Administrators manage company services in the administration area. Tokens are displayed only when created or reset and can be supplied through the client's environment. See MCP services and client setup.

Documentation

English · 简体中文 · 繁體中文 · 日本語 · Français · 한국어 · Español · Русский

For a documentation preview, run pnpm docs:dev and open http://127.0.0.1:39140/#/en/. pnpm docs:check verifies language editions and local links. See the GitHub Pages setup in documentation maintenance.

Development

Node.js 22.12 or newer and pnpm 11.25.0:

pnpm install --frozen-lockfile
cp .env.example .env
# Set a writable absolute storage root; replace the public master-key sample for a fresh install.
pnpm dev

Open http://127.0.0.1:39130. Initialize the administrator with bash scripts/bootstrap-admin-local.sh. pnpm check runs TypeScript, tests, and the Web build. See development.

Useful links

Website (Chinese) · Plugin marketplace · Releases

Ask questions and propose features · Report a bug

Note

The live demo is for exploration. Use the language menu on the sign-in screen or in the workspace header. Demo data is cleared from time to time; please do not store important data there.

Contact the author

License

MIT. The separately published rich text, spreadsheet, Markdown, canvas, and slides editors use the same license.