Introduction
Qiwu (栖梧, project name qiwu-vue-admin) is a full-stack Node admin template. It provides the building blocks that business admin consoles usually need: sign-in, single sign-on, permissions, organization structure, dictionaries, logs, monitoring, scheduled tasks, messaging, files, code generation and approval workflows. You only write your own business logic on top.

To learn why I built this project, see Project story.
Current status
The current version is v1.17.0. The in-app assistant has been removed as a whole; MCP agent access (APP_MCP) stays unchanged. Versions v1.8.0 to v1.16.0 have been withdrawn from the public repository, and their changes other than the assistant (basic office requests, operations settings such as process roles and pool limits, employee chat, voice messages and foreground calls, and several fixes) are included in v1.17.0. Both APP_IM and im.call.enabled default to off; realtime calls use a configurable self-hosted LiveKit service, with at most 8 group participants including the caller. See the v1.17.0 changelog for changes and upgrade steps. Release: v1.17.0.
For chat and calls, this release provides project-owned source, dependency coordinates and integration instructions, without third-party SDK binaries or signed application packages. Plugin compilation and simulator tests have evidence; real LiveKit/TURN, host signing/install and Android/iPhone hardware media remain unaccepted. One Android transitive dependency still awaits redistribution-license clarification; see App requirements. Mini program chat and App offline push are not implemented.
The current public composition offers basic office requests and approvals: leave, travel, expenses, seal use and general requests, with required attachments, notices and basic mobile handling. The current public version does not include attendance (clock-in/out). Complete collaboration, meeting, knowledge and supplies business features are outside this public distribution.
Qiwu is open source under the MIT license. The tables below cover sign-in, permissions, multi-tenancy, code generation, workflows, messaging, files and MCP access. Mobile builds and local debugging are available; real-device, app-store, SMTP and S3 acceptance still belongs to the deployment owner. See the Changelog for version history.
Live demo
No setup needed: open the live demo directly.
The demo has multi-tenancy on: one system serves many companies at once, each company is called a tenant, and no tenant can see another's data. That is why the sign-in page has an extra Tenant code field, which says which company you are signing in to. When you sign in with the platform account (the account of the side that runs the system), leave the tenant code empty:
| Sign-in | Value |
|---|---|
| Tenant code | Leave empty |
| Username | admin |
| Password | admin@123 |

To see what a company sees after signing in, sign in to one of the two sample tenants. Each tenant has a package that decides which features the tenant can use:
| Sample tenant | Tenant code | Username | Password |
|---|---|---|---|
| Yunshan Technology (sample): brand name 云杉协同, its package holds every feature open to tenants | yunshan | admin | KnjUB2fTabw2wnxL |
| Qinghe Trading (sample): brand name 青禾办公, its package has no approvals | qinghe | admin | KnjUB2fTabw2wnxL |
After signing in with the platform account, go to System → Tenants, click Enter on a tenant's row, fill in a reason and click Enter tenant to view that tenant as platform staff. While you are inside, a banner stays at the top of the page to remind you that you are working in another tenant; click Leave tenant on the banner to return to the platform.
A slider captcha appears when you sign in. Drag the puzzle piece into the gap.
Demo mode
Visitors can browse every feature. Apart from a few actions such as signing in, signing out, switching languages, saving table column settings, marking as read, and entering and leaving tenants, write operations are rejected with the message "This action is unavailable in demo mode." Visitors' IP and User-Agent (UA) are shown masked. Do not enter real personal information.
Source repository: 732124645/qiwu-vue-admin. To run it on your machine and change the code, see Getting started.
Who it is for
- Students and programming beginners: the docs start with installing the tools and using a terminal, and walk you step by step to your first feature module. There is a dedicated Beginner tutorial (Chinese).
- Frontend developers who want to go full-stack: if you know Vue, you can start right away. The backend also uses TypeScript, so there is no new language to learn. There is a dedicated Backend primer for frontend developers (Chinese).
- Backend developers moving from Java to Node: the features map to admin templates like RuoYi, so the concepts are familiar at a glance. There is a dedicated Guide for Java developers (Chinese).
- Small full-stack teams and agencies: deliver a complete admin console from one repository, with types and validation rules shared between frontend and backend.
- Indie developers: use it as the admin base for a SaaS product or an internal tool.
Tech stack
| Part | Choice |
|---|---|
| Backend | NestJS 12 (ESM), TypeORM, MySQL 8.4, Redis 7+, Socket.IO |
| Frontend | Vue 3.5, Vite 8, Element Plus, Pinia, vue-i18n |
| Shared | @qiwu/shared: zod validation rules, types, error codes, permission constants |
| Tooling | pnpm workspace, TypeScript 6, Vitest, Playwright, oxlint + ESLint |
How it differs from Java admin templates
The feature scope follows the system/infra parts of RuoYi and Yudao (popular Chinese Java admin templates). Table names, APIs, permission notation, dictionary codes and UI text are all different, and the API protocol is not compatible.
The main differences:
- One language: TypeScript on both ends. The same zod rule drives backend validation, frontend forms and API docs.
- Stricter security by default: out-of-scope access always returns 404 and does not reveal whether a record exists. The privilege escalation guard, encrypted storage of secrets, content-based detection of uploaded file types and other measures are on by default. See Security baseline.
- Built-in internationalization: from the first line of code, all text goes through translation keys; it was not added afterwards.
- Node ecosystem trade-offs: Java-only features (such as Druid monitoring and JVM panels) are replaced with equivalents, such as a MySQL status card and a Node runtime panel.
Features at a glance
✅ Done · 🚧 In progress · ⏸ Later
For details on each feature, see the Features overview.
System management
| Feature | Status |
|---|---|
| Users (department tree filter, import and export, reset password, assign roles) | ✅ |
| Roles (menu permissions, data scope, assign users, privilege escalation guard) | ✅ |
| Menus (three kinds: group / page / action, where "action" means a button permission; external links, embedded pages, keep alive) | ✅ |
| Departments, positions | ✅ |
| Dictionaries, parameters | ✅ |
| Bulletins (rich text, notification bell, read statistics) | ✅ |
| My profile (profile details, password change, avatar cropping, changing the bound mobile number, access tokens) | ✅ |
| App versions (register hot-update resource packages and full packages of the mobile app; the app prompts for updates on launch) | ✅ |
Security and auditing
| Feature | Status |
|---|---|
| Password sign-in, SMS sign-in, sign-up (off by default), password reset by SMS | ✅ |
| Image captcha / slider captcha | ✅ |
| Lockout after failed sign-ins, sign-in IP blacklist, forced password change at first sign-in, password expiry | ✅ |
| WeChat mini program sign-in, account linking (off by default) | ✅ |
| Online users, force sign-out (the user is disconnected in real time) | ✅ |
| Action log, sign-in log, API access log, API error log | ✅ |
| Demo mode (read-only) | ✅ |
System tools and monitoring
| Feature | Status |
|---|---|
| Code generation (single table / tree / master-detail, from the web UI or the command line, optionally with mobile pages) | ✅ |
| Developing with AI (one set of development rules read by every AI coding tool, a project rules file, ten task recipes, a generated project map, check failures that say how to fix them) | ✅ |
| Scheduled tasks (visual cron editor, misfire policy, retries, timeouts, run log) | ✅ |
| File storage (local / S3-compatible, direct browser upload, authenticated download of private files) | ✅ |
| Inbox messages, email, SMS (Alibaba Cloud / Tencent Cloud) | ✅ |
| Server, MySQL and Redis monitoring, cache management | ✅ |
| Job queues (on the existing Redis, each job runs in the tenant that added it, automatic retries), queue monitor | ✅ |
| Region tree, IP geolocation | ✅ |
| API docs (Swagger) | ✅ |
| Form designer (user, department, dictionary, attachment and region components, automatic day counts and detail totals, export to JSON and Vue code) | ✅ |
Workflow
| Feature | Status |
|---|---|
| Process engine (all-must-approve / any-one / sequential, parallel and conditional branches, send back, transfer, add signers, withdraw, overdue reminders) | ✅ |
| Approval center (to-dos, handled tasks, my requests, CC to me, reminders, printing) | ✅ |
| Office requests (leave, travel, expenses, seal use, general forms; approval center, private attachments, notices and basic mobile handling) | ✅ |
| Process designer (tree style, similar to DingTalk approvals; checks before publishing and points to the faulty node) | ✅ |
BPMN designer (standard diagram notation, converted to a tree process on publish; import and export of .bpmn, read-only diagram on the instance detail) | ✅ |
| Automatic timeout handling (approve automatically, reject automatically or hand to the manager when overdue) | ✅ |
| Process model management (categories, versions, JSON export and import), progress tree | ✅ |
| Dynamic form approvals (field access, a user picked in the form as approver, private attachments) | ✅ |
| No-code approvals (New approval wizard with built-in templates for general approval, leave, expense claim and overtime) | ✅ |
| Approval data (filter by form fields, export to Excel) | ✅ |
Other
| Feature | Status |
|---|---|
| Three layouts, tabs, dark mode, light / dark sidebar, lock screen, username watermark, Chinese / English switch | ✅ |
| Multi-instance deployment (cross-instance realtime push, rate limits shared through Redis) | ✅ |
| Server deploy kit (one directory per release, PM2 cluster restarts one process at a time, health checks, automatic switch back to the previous release's code on failure) and GitHub Actions checks and releases | ✅ |
| New project script (sets up a separate database, Redis database number, secrets and system name for the new project) | ✅ |
| OAuth2 authorization server / single sign-on (authorization code + PKCE, so other systems can let users sign in with their Qiwu accounts; OAuth2 client management, consent page, remembered consent) | ✅ |
| Multi-tenancy (one deployment serves many companies, sharing one database with data isolated per tenant; tenants, tenant packages, bound domains, brands, platform staff entering a tenant to investigate problems; off by default) | ✅ |
| WeChat Official Accounts (several accounts, messages and conversations, auto replies, custom menus, fans and tags, materials, template messages, channel QR codes; article drafts, publishing, mass messages, statistics, comments and subscription notices need a verified service account and have so far only been verified in a simulated environment; off by default) | ✅ |
| MCP agent access (agents call the console's tools with the user's own permissions; personal access tokens or OAuth2, emergency stop, rate limits, per-tool switch, action log; off by default) | ✅ |
| Mobile app (uni-app: WeChat mini program, Android, iOS; sign-in, Workbench, messages, approvals (including dynamic forms), realtime push, WeChat subscribe message reminders and app update checks are done, with light and dark themes; checks on real devices before release are still in progress) | 🚧 |
| Other third-party sign-in (GitHub, DingTalk, WeCom, Feishu (Lark), WeChat QR code, etc.) | ⏸ |
| Employee chat and calls (direct/group chat, directory, text/pictures/files/stickers/voice; foreground calls up to 8 participants) | Source and engineering checks complete; real media, devices and native redistribution acceptance outstanding |
| Mini program chat, App offline push and background answering | ⏸ |
Disclaimer
This project is provided "as is" under the MIT license, without any warranty. Users decide what to do with it and bear the responsibility, and it must not be used for anything illegal. See the full Disclaimer.
Contributing
Qiwu is open source and contributions are welcome. Pick the place that fits what you want to do:
| What you want to do | Where to go |
|---|---|
| Ask a question, share usage tips or ideas | Discussions |
| Report a bug or suggest a feature | Issues; use the issue templates and include the version, environment and reproduction steps |
| Contribute code, or improve the docs in the template repository | Read the contributing guide first, then open a pull request; for larger changes, discuss the approach in Discussions or an issue first |
| Report a security vulnerability | Do not report it in public. Report it privately as described in Reporting a vulnerability |
| Point out a mistake on this docs site | Use "Edit this page on GitHub" at the bottom of the page, or leave a comment below it |
Next steps
- Getting started: run it on your machine
- Project structure (Chinese): how the code is organized
- Adding a business module (Chinese): write your first business page with the code generator