Development
Lumberjack is a Laravel 13 application with an Inertia and React frontend. It needs PHP 8.5, Node 22, Postgres and Redis.
Run it from source
composer install
npm ci
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
npm run devProfile requests
Monocle profiles every request, job and command while APP_DEBUG is on.
- The round button in the bottom right corner of a page opens its captures.
/_monocleis the dashboard.- For a coding agent, add Monocle's MCP server to your client:
php artisan mcp:start monocle.
Run the checks
These are the checks CI runs:
vendor/bin/pint --test
vendor/bin/phpstan analyse
php artisan test --parallel
npm run check
npm run types:checkDemo data
php artisan migrate --seed or php artisan migrate:fresh --seed fills a fresh database in about half a minute. The data is placed relative to the minute you seed, and is the same on every run.
To add only the showcase to a database you already use:
php artisan db:seed --class=ShowcaseSeederThis adds only the missing showcase people and projects. The seeded health checks point at placeholder hosts, so they turn red after a couple of hours of the scheduler running them.
Accounts
Every password is password.
| Account | Team | Role |
|---|---|---|
admin@lumberjack | Local Team | Owner, and administers Lumberjack |
sofie@lumberjack | Local Team | Admin |
jonas@lumberjack | Local Team | Member |
maja@lumberjack | Local Team | Admin |
oskar@lumberjack | Local Team | Member |
ida@lumberjack | Local Team | Member |
eve@lumberjack | Acme Agency | Owner |
noah@lumberjack | Acme Agency | Member |
clara@lumberjack | Acme Agency | Admin |
freja@lumberjack | Northwind Labs | Owner |
emil@lumberjack | Northwind Labs | Admin |
asta@lumberjack | Northwind Labs | Member |
Projects
- Demo in Local Team is for the SDK workbench. Its server token, public key and three MCP agent tokens are fixed, so a fresh seed keeps the workbench and local MCP clients working; the seeder prints them. Acme Agency members cannot see it.
- The showcase has six projects with a month of data:
- Local Team: Storefront (a webshop on
shop.example.com), Orders API (an API onapi.example.com), Marketing Site and Fulfillment Worker (queues and scheduled tasks, no web traffic). - Acme Agency: Acme Booking.
- Northwind Labs: Customer Portal.
- Local Team: Storefront (a webshop on
The showcase contains:
- releases over 30 days, including a bad Storefront release that broke checkout and was rolled back;
- daily and weekly traffic, with sampled requests, queries, spans and Web Vitals, an N+1 on the product page and a slow sales report;
- about 30 issues in every status, with assignees, labels, notes, watchers and one that is escalating;
- a week of jobs, queue sizes with one backlog, failed and missed scheduled tasks, and commands;
- two weeks of health results with outages, one check recovering, one down and one stale;
- agents with a day of host samples;
- log lines per channel;
- alert channels with placeholder targets, and what they sent;
- status screens from the templates, and a TV showing two of them;
- retention settings for the application, a team and a project.
Screenshots
The images in docs/screenshots are taken from a running Lumberjack with Puppeteer:
npx puppeteer browsers install chrome # once
npm run docs:screenshots # every screenshot
npm run docs:screenshots -- issues jobs # only theseThe script only opens pages and dialogs. It reads these environment variables:
| Variable | Default | Used for |
|---|---|---|
LUMBERJACK_URL | https://lumberjack.test | The Lumberjack to open |
DOCS_EMAIL | admin@lumberjack | Sign-in email |
DOCS_PASSWORD | password | Sign-in password |
DOCS_PROJECT | Storefront | The project to show |
DOCS_AI_PROJECT | Customer Portal, else DOCS_PROJECT | The project whose AI usage to show, by name or /projects/<uuid> (it may be in another team) |
CHROME_PATH | the Chrome Puppeteer downloaded | A Chrome or Chromium to use instead |
CHROME_PATH=/usr/bin/chromium npm run docs:screenshotsReduce the images to 256 colors with ImageMagick before you commit them:
for f in docs/screenshots/*.png; do convert "$f" -dither None -colors 256 "PNG8:$f"; donePromo video
The promo video is a Remotion project in video/, with its own package.json, so the app's dependencies stay untouched. Every page in the film is drawn in React from the app's own colors, fonts and pages; it does not need Lumberjack running or seeded. The film and its poster are committed in art/, and the README shows the poster linked to the film, which the docs site serves beside its pages.
npm run docs:video # art/lumberjack-promo.mp4 and art/lumberjack-promo.jpg
cd video
npm run studio # preview and scrub at http://localhost:3001
npm run render # only the film
npm run poster # only the poster
npm run still -- --frame=1800 # one frame as video/out/still.pngRemotion brings its own Chrome and ffmpeg. The film is 1920 x 1080 at 60 frames a second.
It follows one night: the Payments API goes down at 03:01, the alert reaches Slack, Teams, Discord and phones, the issue and its trace show why, an agent fixes it over MCP, and the overview is green again. Short scenes on background work, logs, AI usage and status screens follow.
src/Promo.tsxputs the scenes in order and plays the music.src/scenes/has one file per scene, each with its texts, timing and camera. Each page in it is drawn after the real one, so check a scene against the app when that page changes.src/ui.tsxhas the building blocks: the browser window, the app's sidebar, cards, tables, charts, highlights and the cursor.src/theme.tshas the colors.
The sounds come from Pixabay: the music, "Electronic Tension" by leberch, and the alarm clock under the opening, "Alarm Clock" by ecfike. The Pixabay Content License allows them in the film but not handed out on their own, so they are not in the repository: npm run sounds (run before the studio and every render) fetches them into video/public/. Without them the film renders silent apart from its notification sounds.
Remotion is free for individuals and companies of up to three people; larger companies need a company license.
Docs site
The docs are built with VitePress:
npm run docs:dev # local preview
npm run docs:build