Self-hosted AI-native knowledge workspace and installable PWA with hybrid search, GraphRAG, REST, SDK, CLI, and MCP access for people and AI agents.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/HiAi-gg/docsmint && cp docsmint/*.md ~/.claude/agents/Subagents overview
# DocsMint **A self-hosted AI-native knowledge workspace and installable PWA for people, applications, and AI agents.** DocsMint stores documents in a structured JSON editor model first. Markdown is the convenient second format for editing, importing, and exporting content. Automatic chunking, 1024-dimensional embeddings, multilingual hybrid search, and GraphRAG make the same knowledge base useful to people, applications, and agents through the web application, REST API, TypeScript SDK, CLI, and MCP server. [](LICENSE) [](https://github.com/hiai-gg/docsmint/releases) [](https://www.npmjs.com/package/@hiai-gg/docsmint) [](https://hub.docker.com/r/vgalibov/docsmint) [](https://github.com/hiai-gg/docsmint/stargazers) [](https://github.com/hiai-gg/docsmint/actions/workflows/ci.yml) [](https://bun.sh) [](https://www.typescriptlang.org) [](https://svelte.dev) [](https://elysiajs.com) [](https://tailwindcss.com) [](https://orm.drizzle.team) [](CONTRIBUTING.md) [](https://lobehub.com/mcp/hiai-gg-docsmint) <img width="1920" height="974" alt="DocsMint installable document workspace" src="https://github.com/user-attachments/assets/94701d01-a361-4ca1-b16d-de2a0c64d684" /> ## Why DocsMint? - **Write naturally** in a rich visual editor or raw Markdown. - **Find meaning, not only keywords** with exact, lexical, fuzzy, vector, multilingual expansion, and graph retrieval fused through RRF. - **Keep retrieval current** with automatic, incremental chunking and re-embedding after document or metadata changes. - **Connect agents directly** through REST, a typed SDK, CLI, or MCP. - **Control access** with global keys or category-scoped `read`, `edit`, and `write` permissions. - **Own the full stack**: application data, vectors, graph, queue, and files run on infrastructure you control. ## What's new in DocsMint 0.6.7? - **Reliable HTTPS sessions.** Every protected SvelteKit route accepts Better Auth's secure production cookie as well as the local-development cookie. - **Cleaner retrieval.** Deleted documents are excluded before exact, lexical, fuzzy, vector, chunk, and graph ranking. - **Explicit GraphRAG providers.** Entity extraction requires its own chat-completion URL and never sends chat requests to an embedding endpoint. - **Safer self-host defaults.** Auth origins are validated configuration, the SeaweedFS Filer UI binds to loopback, folder moves refresh knowledge metadata, and backups exclude `.env`. DocsMint 0.6.7 includes the safe index recovery introduced in 0.6.6: - **Safe explicit index recovery.** Admin document reindexing keeps the active generation searchable until a new generation has passed embedding, graph, summary, and finalize stages. - **Truthful queue admission.** Maintenance requests force a replacement generation and report an error when durable enqueue fails instead of returning a false-positive success. - **Verified MCP distribution.** The official MCP Registry manifest, npm stdio package, hosted Streamable HTTP endpoint, bundled Skill, prompts, resources, and 17-tool catalog remain one versioned contract. DocsMint 0.6.6 includes the registry metadata fixes released in 0.6.3-0.6.5 and the complete MCP foundation introduced in 0.6.2: - **Official MCP identity.** DocsMint now publishes the verified `io.github.HiAi-gg/docsmint` registry identity for both the npm stdio server and the hosted Streamable HTTP endpoint. - **One capability implementation.** The public `@hiai-gg/docsmint/mcp` contract lets hosts provide a scoped API client while reusing the same 17 tools, two prompts, three resources, and bundled document-manager Skill. - **Current protocol runtime.** The MCP server uses the stable v2 server package and retains compatible stdio negotiation for existing clients. DocsMint 0.6.2 includes the reliable knowledge refresh and scoped automation foundation introduced in 0.6.1: - **Reliable knowledge refreshes.** Explicit full reindexing now supersedes failed or stuck generations, retries release stale extraction claims, and publishes embeddings, summaries, and graph projections only for the current document generation. - **Safer scoped automation.** Global keys can manage the complete document domain, while category keys stay confined to their category, folders, documents, tags, graph traversal, and index operations according to explicit `read`, `edit`, and `write` permissions. - **Portable agent integration.** The MCP package exposes 17 document-manager tools, two reusable prompts, three context resources, and a bundled Skill, with Bunx, NPX, and local-checkout installation paths. - **Compatible frontend packaging.** Published frontend entrypoints resolve the canonical hiai-ui exports used by the source build and packed consumers. DocsMint 0.6.1 includes the mobile and PWA foundation introduced in 0.6.0: - **Installable, update-safe PWA.** A versioned service worker, responsive app shell, install prompt, and deterministic offline fallback make DocsMint feel at home on desktop and mobile browsers. - **Private offline reading and explicit drafts.** Identity-partitioned local snapshots keep selected documents readable offline. Drafts autosave locally, then return through a deliberate review-and-apply flow after reconnecting; DocsMint never silently replays offline mutations. - **Touch-safe mobile navigation.** Sidebar document actions, Copy controls, and overflow menus remain reachable on touch devices without depending on hover, with accessible targets and narrow-screen layouts. - **A flexible editor contract.** Reactive visual/Markdown mode preferences, Minimal toolbar support, and a reusable compact TipTap editor let hosts match the writing surface to the task without forking editor internals. - **Stable document discovery.** The public API and TypeScript SDK provide deterministic cursor pagination and global sorting by title, category, folder, or update time, with canonical category and folder metadata. - **Clear public and restricted sharing.** Share creation exposes the resulting URL for both public links and restricted invitation workflows, with an explicit Copy action that works on narrow screens. - **Knowledge built for agents.** REST, the typed SDK, CLI, and MCP server expose scoped document operations, while multilingual hybrid search and GraphRAG help people and AI agents retrieve connected knowledge instead of isolated keyword matches. DocsMint combines an installable self-hosted PWA knowledge base, mobile document workspace, offline reading, local drafts, multilingual semantic search, GraphRAG, MCP, a TypeScript SDK, CLI, and composable frontend hosts in one open-source system. For self-hosted customization, see [PWA hosting](docs/PWA_HOSTING.md) and [extension points](docs/EXTENDING.md). ## Fastest installation: give this prompt to your agent If you are installing DocsMint through an AI coding agent, use this path first. It keeps the setup to Docker plus one provider choice and avoids unnecessary source-code changes. ```text Install DocsMint from https://github.com/HiAi-gg/docsmint. Verify Docker and Docker Compose v2, clone the repository, and run `bash scripts/quickstart.sh`. Do not print or commit .env. Ask me to enter only an OpenRouter key or select Ollama, then run quickstart again. Verify http://localhost:50701, http://localhost:50700/api/health, and `docker compose ps`. Do not replace Bun, rewrite migrations, disable GraphRAG, or delete volumes. ``` After startup, open **http://localhost:50701** and create the first account. For manual installation, use the Docker quickstart below. ## Quickstart ### Requirements - Docker Engine or Docker Desktop - Docker Compose v2 - One of: - an [OpenRouter](https://openrouter.ai/) API key; or - a local [Ollama](https://ollama.com/) instance ### Start with Docker ```bash git clone https://github.com/HiAi-gg/docsmint.git cd docsmint bash scripts/quickstart.sh ``` On its first run, the script creates an ignored root `.env`, generates the database, authentication, and storage secrets, builds the PostgreSQL image, applies migrations, and starts the complete application. For OpenRouter, add one value to `.env` and run the script again: ```dotenv OPENROUTER_API_KEY=sk-or-your-key ``` For Ollama, select the local provider instead: ```dotenv AI_PROVIDER=ollama OLLAMA_PORT=11434 ``` Then make sure the configured local models are available: ```bash ollama pull bge-m3 ollama pull qwen3:8b bash scripts/quickstart.sh ``` Open **http://localhost:50701**. The API health endpoint is **http://localhost:50700/api/health**. ### First use 1. Create your account in the web application. 2. Create a category or folder and add or import a document. 3. Wait for the document pipeline to finish chunking and embedding. 4. Search u
What people ask about docsmint
What is HiAi-gg/docsmint?
+
HiAi-gg/docsmint is subagents for the Claude AI ecosystem. Self-hosted AI-native knowledge workspace and installable PWA with hybrid search, GraphRAG, REST, SDK, CLI, and MCP access for people and AI agents. It has 71 GitHub stars and its last recorded update is dated 2026-08-20.
How do I install docsmint?
+
You can install docsmint by cloning the repository (https://github.com/HiAi-gg/docsmint) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is HiAi-gg/docsmint safe to use?
+
Our security agent has analyzed HiAi-gg/docsmint and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains HiAi-gg/docsmint?
+
HiAi-gg/docsmint is maintained by HiAi-gg. The last recorded GitHub activity is dated 2026-08-20, with 0 open issues.
Are there alternatives to docsmint?
+
Yes. On ClaudeWave you can browse similar subagents at /categories/agents, sorted by popularity or recent activity.
Deploy docsmint to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/hiai-gg-docsmint)<a href="https://claudewave.com/repo/hiai-gg-docsmint"><img src="https://claudewave.com/api/badge/hiai-gg-docsmint" alt="Featured on ClaudeWave: HiAi-gg/docsmint" width="320" height="64" /></a>More Subagents
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
The agent that grows with you
Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
The agent engineering platform.
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.