Wiki.js | A modern and powerful wiki app built on Node.js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
NGPixel 2e9ef68a4d
docs: update README
2 weeks ago
.devcontainer refactor: remove vega project structure 2 weeks ago
.github chore: various fixes + updates 2 years ago
.vscode refactor: remove vega project structure 2 weeks ago
backend refactor: migrate from graphql to rest for frontend 2 weeks ago
blocks refactor: remove vega project structure 2 weeks ago
dev chore: update to Node 24 and upgrade dependencies 8 months ago
frontend refactor: remove vega project structure 2 weeks ago
.editorconfig feat: login screen UI + server code cleanup 4 years ago
.gitattributes fix: sidebar display 7 years ago
.gitignore refactor: use core vite instead of quasar cli 2 years ago
LICENSE Initial commit 10 years ago
README.md docs: update README 2 weeks ago
config.sample.yml feat: more models + migrations (wip) 3 weeks ago
localazy.json feat: locale system groundwork + various improvements 3 years ago

README.md

Wiki.js

License Standard - JavaScript Style Guide GitHub Sponsors Open Collective backers and sponsors

Next Generation Open Source Wiki

🟥 ⚠️ ⚠️ 🟥
THIS IS A VERY BUGGY, INCOMPLETE AND NON-SECURE DEVELOPMENT BRANCH!
USE AT YOUR OWN RISK! THERE'S NO UPGRADE PATH FROM THIS BUILD AND NO SUPPORT IS PROVIDED!
🟥 ⚠️ ⚠️ 🟥

The current stable release (2.x) is available at https://js.wiki


Using VS Code Dev Environment

Requirements

Usage

  1. Clone the project.
  2. Open the project in VS Code.
  3. Make sure you have Dev Containers extension installed. (On Windows, you need the WSL VS Code extension as well.)
  4. Reopen the project in container (from the popup in the lower-right corner of the screen when opening the project, or via the Command Palette (Ctrl+Shift+P or F1) afterwards).
  5. Once in container mode, make a copy of config.sample.yml and rename it to config.yml. There's no need to edit the file, the default values are ok.
  6. Two terminals should automatically launch in the lower part of the screen. If this isn't the case, from the Command Palette, run the task "Create terminals":
    • Launch the Command Palette (Ctrl+Shift+P or F1)
    • Type Run Task and press Enter
    • Select the task "Create terminals" and press Enter
  7. In the right-side terminal (Frontend), run the command:
    npm run build
    
  8. In the left-side terminal (Backend), run the command:
    npm run start
    
  9. Open your browser to http://localhost:3000
  10. Login using the default administrator user:
    • Email: admin@example.com
    • Password: 12345678

DO NOT report bugs. This build is VERY buggy and VERY incomplete. Absolutely NO support is provided either.

Backend Development

From the left-side terminal (Backend), run the command:

npm run dev

This will launch the server and automatically restart upon modification of any server files.

Only precompiled client assets are served in this mode. See the sections below on how to modify the frontend and run in SPA (Single Page Application) mode.

Frontend Development

Make sure you are running npm run dev in the left-side terminal (Backend) first! Requests still need to be forwarded to the server, even in SPA mode!

If you wish to modify any frontend content (under /frontend), you need to start the Quasar Dev Server in the right-side terminal (Frontend):

npm run dev

You can then access the site at http://localhost:3001. Notice the port being 3001 rather than 3000. The app runs in a SPA (single-page application) mode and automatically hot-reload any modified component. Any requests made to the /_api endpoint are automatically forwarded to the server running on port 3000, which is why both must be running at the same time.

Any change you make to the frontend will not be reflected on port 3000 until you run the command npm run build in the right-side terminal.

pgAdmin

A web version of pgAdmin (a PostgreSQL administration tool) is available at http://localhost:8000. Use the login dev@js.wiki / 123123 to login.

The server dev should already be available under Servers. If that's not the case, add a new one with the following settings:

  • Hostname: db
  • Port: 5432
  • Username: postgres
  • Password: postgres
  • Database: postgres

Generic Setup

Requirements

  • PostgreSQL 16 or later
  • Node.js 24.x or later

Usage

  1. Clone the project
  2. Make a copy of config.sample.yml and rename it to config.yml
  3. Edit config.yml and fill in the database details. You need an empty PostgreSQL database.
  4. Run the following commands to install dependencies and generate the client assets:
    cd backend
    npm install
    cd ../ux
    npm install
    npm run build
    cd ../blocks
    npm install
    npm run build
    cd ..
    
  5. Run this command to start the server:
    node server
    
  6. In your browser, navigate to http://localhost:3000 (or the IP/hostname of the server and the PORT you defined earlier.)
  7. Login using the default administrator user:
    • Email: admin@example.com
    • Password: 12345678

DO NOT report bugs. This build is VERY buggy and VERY incomplete. Absolutely NO support is provided either.