Skip to content

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 ​

bash
composer install
npm ci
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
npm run dev

Profile 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.
  • /_monocle is 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:

bash
vendor/bin/pint --test
vendor/bin/phpstan analyse
php artisan test --parallel
npm run check
npm run types:check

Demo 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:

bash
php artisan db:seed --class=ShowcaseSeeder

This 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.

AccountTeamRole
admin@lumberjackLocal TeamOwner, and administers Lumberjack
sofie@lumberjackLocal TeamAdmin
jonas@lumberjackLocal TeamMember
maja@lumberjackLocal TeamAdmin
oskar@lumberjackLocal TeamMember
ida@lumberjackLocal TeamMember
eve@lumberjackAcme AgencyOwner
noah@lumberjackAcme AgencyMember
clara@lumberjackAcme AgencyAdmin
freja@lumberjackNorthwind LabsOwner
emil@lumberjackNorthwind LabsAdmin
asta@lumberjackNorthwind LabsMember

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 on api.example.com), Marketing Site and Fulfillment Worker (queues and scheduled tasks, no web traffic).
    • Acme Agency: Acme Booking.
    • Northwind Labs: Customer Portal.

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:

bash
npx puppeteer browsers install chrome   # once
npm run docs:screenshots                # every screenshot
npm run docs:screenshots -- issues jobs # only these

The script only opens pages and dialogs. It reads these environment variables:

VariableDefaultUsed for
LUMBERJACK_URLhttps://lumberjack.testThe Lumberjack to open
DOCS_EMAILadmin@lumberjackSign-in email
DOCS_PASSWORDpasswordSign-in password
DOCS_PROJECTStorefrontThe project to show
DOCS_AI_PROJECTCustomer Portal, else DOCS_PROJECTThe project whose AI usage to show, by name or /projects/<uuid> (it may be in another team)
CHROME_PATHthe Chrome Puppeteer downloadedA Chrome or Chromium to use instead
bash
CHROME_PATH=/usr/bin/chromium npm run docs:screenshots

Reduce the images to 256 colors with ImageMagick before you commit them:

bash
for f in docs/screenshots/*.png; do convert "$f" -dither None -colors 256 "PNG8:$f"; done

Promo 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.

bash
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.png

Remotion 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.tsx puts 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.tsx has the building blocks: the browser window, the app's sidebar, cards, tables, charts, highlights and the cursor. src/theme.ts has 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:

bash
npm run docs:dev      # local preview
npm run docs:build