TiiJeiJ8/Constella
About
A self-hosted real-time collaborative infinite canvas for structured thinking and visual knowledge creation.自托管实时协作无限画布,赋能结构化思考与可视化知识创作。
Web & App DevelopmentMeasured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README-en.md
OriginalConstella
A real-time collaborative infinite canvas for structured knowledge and externalized thinking
Vue 3 · TypeScript · Vite · Electron · Yjs
Quick Start · Core Features · Screenshots · Plugin Ecosystem · Contributing

Overview
Constella focuses on structured thinking, connecting nodes, content, and collaborators on an infinite canvas. It runs in modern browsers and as an Electron desktop app.
[!IMPORTANT] This repository contains the Constella frontend (Web + Electron). For the backend, use Constella_CORE.
The project is actively evolving. Contributions through Issues and PRs are welcome.
[!NOTE] Developing or building from source requires Node.js.
Desktop releases (installer / zip) include Node.js, so end users do not need to install it separately.
Core Features
| Feature | Description |
|---|---|
| Infinite canvas | Nodes, edges, free dragging, and zooming |
| Real-time collaboration | CRDT-based synchronization with Yjs + y-websocket for simultaneous editing and shared state |
| Plugin-based nodes | Text, Markdown, Image, Hyperlink, and more, with support for importing node plugins |
| Room permissions | Defined member roles and collaboration boundaries |
| Languages and themes | Chinese and English, with light and dark themes |
| Data persistence | IndexedDB on the Web and electron-store on desktop |
Quick Start
Prerequisites
- Node.js 22.12.0
- Backend service: Constella_CORE
Get the Source
git clone https://github.com/TiiJeiJ8/constella.git
Navigate to the frontend's web directory, then install dependencies and start the app:
npm install
npm run dev
On first launch, enter your backend URL on the home page. The address is saved locally for future sessions.
Common Commands
| Purpose | Command | Output Directory |
|---|---|---|
| Start the Web development server | npm run dev |
— |
| Start Electron in development mode | npm run dev:electron |
— |
| Build Web assets | npm run build |
dist/ |
| Build the Electron client (includes the Node runtime) | npm run build:electron |
release/ |
Build and Deployment
Build Desktop Releases
1. Update the version number (required before building)
Replace 1.x.x with your target version:
npm run version:bump -- 1.x.x
This command updates web/package.json and web/package-lock.json, then attempts to synchronize ../server/package.json and ../server/package-lock.json. If the server directory or backend version files are missing, backend synchronization is skipped automatically and the frontend version update still succeeds.
2. Choose a build option
| Build Option | Command |
|---|---|
| Generate both installer and zip | npm run build:electron:release |
| Generate the installer only | npm run build:electron:installer |
| Generate the zip only | npm run build:electron:zip |
Build artifacts are generated in release/.
dist/ holds the renderer build and dist-electron/ holds the main/preload builds; distributables and win-unpacked/ go to release/. Only the renderer output and the two Electron entry files are included in the application. Vite bundles renderer and main-process npm packages, so these are devDependencies; backend production dependencies are installed separately by the runtime preparation script. An automatic packaging check rejects unexpected directories and unbundled main-process dependencies.
A failed backend production dependency installation stops the build and preserves the previous runtime. After installation, only the staging directory is pruned: backend declarations/source maps, known SQLite/LevelDB build files, and prebuilds for other platforms are removed; runtime code, target native modules, and licenses remain. Electron language resources retain the product's supported zh-CN and en-US locales.
Web Deployment
Run npm run build, then deploy the frontend assets in dist/ using Nginx, Caddy, or any static hosting platform.
For backend deployment, refer to Constella_CORE.
Collaboration Address Configuration
The WebSocket URL is derived automatically from the backend URL entered on the home page. To override it, add the following to .env.development:
VITE_WS_URL=localhost:3000
Backend JWT Secret Configuration
| Scenario | Configuration |
|---|---|
| Packaged desktop release (Electron app) | No manual configuration is required. On first startup, the backend generates a random secret and saves it to the local configuration directory. |
| Self-hosted deployment | Set the secret through the JWT_SECRET environment variable or a configuration file. See the backend documentation. |
Plugin Ecosystem
Constella supports both built-in node plugins and installable runtime plugins.
Plugin Types
| Type | Description |
|---|---|
| Built-in official plugins | Located in src/plugins/ and shipped as part of the application |
| User-installed plugins | Distributed primarily as .constella-plugin packages, with .zip supported for compatibility |
| Development plugins | Imported from a plugin folder when Developer Mode is enabled in Settings |
Keep these three plugin categories separate so that each directory has a clear responsibility.
Installation and Persistence
- Manage plugins through Settings → Plugins or the room dock plugin panel. The plugin panel defaults to package installation for end users.
manifest.jsonis the entry file inside a plugin directory and should not be distributed as a standalone installation package.- Installed user plugins are persisted under Electron user data and remain available after restarting the desktop app.
- Turning off
Developer Modehides development plugin entry points and prevents development plugins from loading at runtime. Their records are retained for later reuse.
Developer Documentation
Screenshots
Expand an item below to view the corresponding interface.
Themes · Dark and Light Modes
Dark Mode

Light Mode

Room Management · Room Page and Room Creation
Room Page

Create a Room

Canvas Editing · Editor Demo

Plugin Management · Plugin Panel and Settings
Plugin Panel

Plugin Settings

Project Structure
src/
├─ components/ # Shared UI components
├─ plugins/ # Node plugins
├─ composables/ # Reusable composition logic
├─ services/ # API and collaboration services
├─ locales/ # Internationalization resources
├─ views/ # Page-level views
└─ assets/ # Static assets
electron/ # Electron main process and preload
public/ # Public assets
docs/ # Usage and development documentation
Contributing
You can contribute to Constella in the following ways:
- Share feedback: Open an Issue to report a bug, start a discussion, or propose an improvement.
- Improve the project: Submit a PR for features, fixes, documentation, or tests.
- Support development: Star or Fork the project to support its continued development.
Disclaimer
This project is under active development. Some features and interfaces may change. Please evaluate and test thoroughly before production use.
License
This project is licensed under the MIT License.
Third-party Open Source Components
Constella's Markdown node editor uses an internal fork based on MarkText / Muya. The related source is located in web/vendor/muya, with the original MIT License, NOTICE, and upstream README preserved in that directory.
Star History
Explore related projects
Loading…