Skip to content

Local development

Run the dashboard and API from source to try it out or to contribute.

Requirements

  • Node.js ≥ 20.19
  • pnpm 10npm install -g pnpm@10

Setup

bash
git clone https://github.com/starredev/palworld-dashboard.git tsuki-panel
cd tsuki-panel
pnpm install
cp .env.example .env   # optional — sensible defaults work out of the box
pnpm dev

pnpm dev runs both apps together:

The default login password is admin (change it with AUTH_PASSWORD in .env).

TIP

The dashboard calls the API same-origin at /api; Vite proxies that to localhost:4000 in dev, so you don't need to configure any URL.

Run one app at a time

bash
pnpm dev:dashboard   # just the Vue app
pnpm dev:api         # just the Fastify API

Useful scripts

CommandDescription
pnpm devRun the dashboard and API together
pnpm buildBuild every workspace package
pnpm lintESLint across the monorepo
pnpm lint:fixESLint with autofix
pnpm formatPrettier write
pnpm typecheckType-check every package
pnpm testRun the Vitest suites

Connecting to a real server in dev

Point the API at your Palworld server by setting the connection variables in .env (see Connect your Palworld server). Save editing and live config editing generally need the Docker deployment (they depend on mounted paths and container control), so those are best tested with the Docker install.

Editing these docs

The docs site is its own workspace under docs/:

bash
pnpm --filter @tsuki/docs docs:dev      # live preview at http://localhost:5173
pnpm --filter @tsuki/docs docs:build    # build the static site into docs/.vitepress/dist

Released under the MIT License.