26 KiB
stay pikkie 🤘
A self-hosted, punk little bug tracker where beta testers report the little things, as fast as they can type bullet points.
Why PIKKIE?
Beta testers notice dozens of tiny things per session. Classic issue trackers make each one a form. PIKKIE makes it a bullet point:
- [12g] App crashes when you rotate on the login screen
- Toast covers the save button
- Back button closes the app instead of going back
(indent a line to add details to the bullet above)
Paste it and you get three tracked items, each with its own status, discussion and caliber. Screenshots go in with ⌘/Ctrl+V; terminal output and logs can be pasted as text evidence. The project and caliber you picked are remembered, and the form stays put for the next batch.
Got a lot to report? Switch to ⚡ rapid fire: type, Enter, type, Enter… then ⌘/Ctrl+Enter fires the whole magazine. Or drop in a .txt / .md file of - bullet lines.
For a detailed report, choose 📄 Full ticket in the web UI. It keeps paragraphs, Markdown and logs in one issue, up to 100,000 characters. MCP submit_bullets likewise treats each array string as one complete ticket, including line breaks.
Screenshots
The Android companion has full parity for testers and admins: rapid fire, camera and gallery uploads, the image board, phone notifications, QR login, in-app updates and the whole admin cave.
Features
| ✱ Bullet reports | One line per issue, indented lines become details. Attach screenshots, files, or pasted terminal and log text as evidence; small text attachments can be read inside the web and Android apps. |
| ⚡ Rapid fire | A line-per-bullet mode built for speed: Enter = next bullet, per-line caliber, evidence optional. |
| 📄 Full ticket | One long issue with paragraphs, Markdown and logs preserved. No silent 2,000-character cutoff. |
| 📥 Import | Drop .txt / .md files: - bullet lines are imported, nested bullets become details, checkboxes and prose are skipped. |
| 🎯 Calibers | Weights from .22 (nitpick) through 9mm (minor), .45 ACP (annoying) and 7.62 (major) to 12 GAUGE (blocker). Pick a default or tag a line. |
| 🗂 Projects | Admins create projects. The last one each tester used is remembered on every device, so nobody re-picks it 40 times a session. Reporters can move their own open bullets to another active project; admins can move any bullet. |
| 👀 Public overview | Everyone sees every bullet and its status: open, needs info, in progress, fixed, finished or declined. |
| 💬 Discussions | Threaded comments with files, editing, ✋ "me too", and a "reporter" badge. |
| ⚡ Admin flagging | Set a status with a message and files. The reporter is e-mailed for needs info, fixed, finished and declined. |
| 🤖 MCP | Bots can read bullets, see what changed, file new ones (flagged via MCP), comment, and flag fixes. |
| ⌥ Code changes | Testers and their bots send the code that fixes a bullet, no access to the repository needed and nothing to fill in but the code: paste it right on the bullet, drop files in, or send a git diff if they have the repo. Admins take the whole queue at once (the diffs as one mbox for git am, everything else as one code sheet for them or their coding agent), with warnings on anything worth a second look, and accept, bounce or decline the batch in one go, flagging the fixed bullets along the way. |
| 🔔 Notifications | Inbox for everything. E-mail and phone alerts are opt-in per event (resolved, needs info, comments, replies, board…), all off by default. |
| SMTP settings with a test button. Used for opted-in alerts and invites. | |
| ✉️ Invites | Single-use links, valid 7 days, that work even when sign-up is closed. Admins can resend or revoke. Open sign-up is off by default. |
| 🔒 2FA | TOTP with recovery codes. Admins can require it for nobody, admins only, or everyone, and users can set it up in the app too. |
| 📱 QR login | The web shows a QR and the phone is logged in, or the app scans the login page and the computer is logged in. |
| 📊 Board | Posts, polls, replies, pins, plus a 🎸 off-topic image board with image posts, a lightbox and link previews. |
| 📣 Announcements | Admins publish official updates on the main board from the web, Android app or MCP. Add a release version and linked bullets; everyone gets an inbox item, while e-mail and phone alerts remain opt-in. The latest announcement also appears above the web bullet list. |
| 🧑🎤 Profiles | Profile pictures, a bio, a website, and a public profile page with stats. Avatars everywhere. |
| 🎓 Tutorial | An interactive spotlight tour on the first visit, replayable from the profile (web) or the Me tab (app). |
| 📦 APK + updates | /#/download always serves the newest .apk in the repo, and the app updates itself from it. |
Quick start
git clone https://git.autisme.monster/juli/PIKKIE.git && cd PIKKIE/server
npm install
npm start # → http://localhost:1312
The first visit creates the admin account. Everything else is set up in Admin.
Want a populated playground? Start a fresh instance on another port and seed it:
PIKKIE_DATA=/tmp/pikkie-demo PORT=1313 node src/index.js &
npm run demo -- http://localhost:1313 # prints a random demo password
npm test runs the integration suite, which covers auth, 2FA, QR login, reports, projects, calibers, discussions, invites, notifications and opt-in prefs, profiles and avatars, the image board with link previews (including SSRF blocking), MCP, SMTP, APK serving and reverse-proxy behaviour.
Deploying behind an HTTPS reverse proxy
PIKKIE is built to sit behind Caddy, nginx or Traefik.
- Trusted proxies: proxies on loopback and private networks are trusted out of the box, so
X-Forwarded-Proto,-Hostand-Forare honoured. Override withPIKKIE_TRUST_PROXY. - HTTPS: sessions get
Securecookies andStrict-Transport-Securityis sent. - Bind locally: run PIKKIE with
HOST=127.0.0.1so it is only reachable through the proxy. If it must listen on a LAN, setPIKKIE_TRUST_PROXYto your proxy's address, because clients on trusted networks could otherwise send their ownX-Forwarded-*headers. - Links: set Admin → Sign-up & 2FA → Public site URL (e.g.
https://pikkie.example.com). E-mail links and QR codes always use it. - Uploads: one request can carry up to 10 files of 25 MB each, so allow request bodies of about 250 MB, or lower it to cap uploads.
Caddy
pikkie.example.com {
request_body {
max_size 250MB
}
reverse_proxy 127.0.0.1:1312
}
nginx
server {
listen 443 ssl http2;
server_name pikkie.example.com;
client_max_body_size 250m;
location / {
proxy_pass http://127.0.0.1:1312;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
| env var | default | |
|---|---|---|
PORT / HOST |
1312 / 0.0.0.0 |
|
PIKKIE_DATA |
./data |
SQLite database and uploads. Back this folder up. |
PIKKIE_TRUST_PROXY |
loopback, linklocal, uniquelocal |
0 = trust nothing, or a hop count, or a list of IPs/CIDRs |
PIKKIE_SECURE_COOKIES |
auto | 1 forces Secure cookies even if the proxy doesn't send X-Forwarded-Proto |
PIKKIE_APK_DIRS |
releases/:android/app/build/outputs/apk |
folders searched for the newest .apk |
PIKKIE_SECRET_KEY |
– | key for encrypting 2FA secrets and the SMTP password (32+ characters). If unset, a key file is used. |
PIKKIE_KEY_FILE |
pikkie.key next to the data folder |
where that key file lives; created on first start |
PIKKIE_SETUP_TOKEN |
– | if set, creating the first admin requires this token. Use it when the instance is reachable before you set it up. |
PIKKIE_UPLOAD_MB_PER_HOUR |
1000 |
per-user upload budget, so one account can't fill the disk |
Encryption key
The two secrets PIKKIE must be able to read back, users' 2FA secrets and the SMTP password, are encrypted in the database. Everything else that is secret (passwords, sessions, API keys, recovery codes, invite and QR codes) is stored as a one-way hash.
- Where the key comes from:
PIKKIE_SECRET_KEYif set (for exampleopenssl rand -base64 48), otherwise a key file. The file is created on first start aspikkie.keynext to the data folder, not inside it, so a copy of the data folder alone can't read the secrets. - Back the key up separately. In a container, either set
PIKKIE_SECRET_KEYor pointPIKKIE_KEY_FILEat persistent storage; a key file that disappears with the container is a lost key. - Wrong or missing key: PIKKIE refuses to start and says why. It never creates a new key over existing encrypted data.
- Changing the key: start once with the new key in
PIKKIE_SECRET_KEYand the previous one inPIKKIE_OLD_SECRET_KEY. Everything is re-encrypted; then remove the old variable. (To move from the key file to a variable, the "old key" is the file's contents.) - Lost key: start once with
PIKKIE_RESET_SECRETS=wipe-2fa-and-smtp-password. 2FA is switched off for every user (they set it up again) and the SMTP password is cleared. - What it protects against: a leaked database file or data-folder backup. It can't protect against someone who controls the whole server, since they can read the key too.
MCP: let bots work the backlog
Every user can create API keys in their profile, on the web or in the app. Keys default to reporter access: they can file bullets and manage tickets owned by their account. An admin can explicitly create an admin-access key to use admin MCP tools and manage all tickets. Existing keys receive reporter access when upgrading; recreate any trusted admin automation key with admin access.
claude mcp add --transport http pikkie https://pikkie.example.com/mcp \
--header "Authorization: Bearer pk_…"
| tool | who | |
|---|---|---|
list_issues |
everyone | filter by status, project, caliber or text, with since=<ms> for what changed, sorted heaviest first; unknown statuses and invalid pagination return an error |
get_issue |
everyone | full detail: text, attachments, the whole discussion including admin fix notes |
list_projects, stats, whoami, list_board_posts |
everyone | |
submit_bullets |
everyone | file bullets with a project and caliber; each string in bullets is one complete ticket, preserving line breaks and Markdown, up to 100,000 characters; they show up with a 🤖 via MCP · key-name badge |
add_comment |
everyone | threaded via parent_id, with files |
set_weight |
reporter / admin | re-weigh a bullet |
move_issue |
reporter / admin | move your own open bullet, or any bullet as admin, to an active project |
get_attachment |
everyone | small images come back as image content; larger files can be read in base64 chunks with offset and length (up to 1 MB per call) |
set_status |
admin | flag with a message and files; e-mails the reporter |
delete_issue |
reporter / admin | permanently delete your own ticket, or any ticket as admin; shared report evidence is kept until its last bullet is deleted |
submit_change |
everyone | send code; only code is required. Add fixes (the bullets), path (the file, if known), replaces (the existing code it replaces) and note when you can; several files go in snippets. Have the repo? Send a patch instead: a git diff, or git format-patch --stdout for a series that keeps its own commit messages and authors. The title is optional, and a retried submission returns the existing change |
list_changes, get_change |
everyone | the review queue per project and status; get_change includes the patch and the review discussion |
list_announcements |
everyone | latest official announcements, release versions and linked bullets |
publish_announcement |
admin | publish to the main board and inbox; optional version and bullets (ids or PK-refs) |
update_change, withdraw_change |
author | a new revision (back into the queue; new code replaces all code of the old one) while pending or "needs work", or pull it out |
comment_change |
everyone | review discussion |
get_change_bundle |
admin | every pending change (or exactly the ids you pick, in that order): a summary with review warnings and files touched by more than one change, the steps to land it, and download links (15 minutes, no key needed) for one mbox with all diffs and one Markdown code sheet with everything sent as snippets. Small files also come inline |
review_changes |
admin | accept, decline, bounce (needs_work) or re-queue a whole batch with one message; version records where it landed and fix_issues also flags the linked bullets as fixed |
Two prompts come with the server (MCP clients show them as slash commands): fix_bullet walks a tester's agent from a bullet to a submitted fix, and land_code_changes (admin keys) walks an agent in your repository through taking a batch out, landing it and reporting back.
The endpoint is MCP streamable HTTP (stateless JSON-RPC) at POST /mcp.
Code changes, in batches
Contributors don't need access to your repository, and the only thing they must supply is the code. A tester pastes it on the bullet (⌥ Got a fix? Paste the code here), drops files into the Code page, or has their bot call submit_change. If they know the file it belongs in, or can see the code it replaces, they add that; if they have the repo, a git diff works too. It waits in the queue, and an admin (or the admin's bot) lands a whole batch at once:
-
Get the batch: on the web, open Code, tick changes (or Select all pending), then download Diffs (.mbox) and/or Code sheet (.md). In the app, use .mbox / code .md. Or ask your agent:
get_change_bundlereturnscurlcommands for both files, so nothing has to be copied out of the conversation. -
Land it in your repo, oldest first:
git am --patch-format=mboxrd -3 pikkie-sync-engine-2026-11-11-1-2.mboxThen work through the code sheet: every snippet with its file hint, "replace this → with this", note, author and the bullets it fixes. It is plain Markdown, so a coding agent in your repo can take it as is.
-
Report back:
review_changes(or Apply to batch on the Code page) marks the batch accepted, records the version it landed in, and closes the bullets it fixed.
Each commit from the mbox carries a PIKKIE-Change: CH-12 … trailer, plus PIKKIE-Fixes: when it fixes bullets. A plain diff becomes one commit, credited to the submitter's display name with a no-reply address unless they give an author.
It is other people's code: review it. PIKKIE helps:
- Changes get a ⚠ review with care warning when they contain invisible or text-direction characters (shown spelled out, like
⟦U+202E⟧), touch build, CI, dependency or script files, carry binary content, add symlinks or make files executable. - The mbox uses mboxrd quoting, so text inside one change can't pose as another message, and description lines that
git amwould read as diff headers are indented. OnlyFrom,DateandSubjectsurvive from a contributor's format-patch headers, and encoded or multipart messages are refused, sogit amcan't apply something other than the text you reviewed. - In the code sheet, contributor prose is quoted and each snippet gets a fence longer than any run of backticks inside it. The sheet and the MCP results say plainly that the content is untrusted: material to review, not instructions for whoever (or whatever agent) lands it.
- Code is capped at 2 MB per change and counts against the upload budget; a tester can have 30 changes waiting.
Android app
Kotlin with Jetpack Compose and OkHttp. QR scanning uses CameraX and ZXing, so it runs fine without Google Play services (GrapheneOS, LineageOS, /e/).
./scripts/build-apk.sh # → releases/pikkie-<version>[-debug].apk, served at /#/download
./scripts/build-apk.sh --install # …and install it on the USB-connected phone
- Requirements: JDK 17 and the Android SDK (
brew install openjdk@17 && brew install --cask android-commandlinetools, thensdkmanager "platforms;android-35" "build-tools;35.0.0"). - Publishing a release:
./scripts/publish-release.shtagsv<version>, creates a release on the Git server and attaches the APK (an F-Droid repo that watches the releases picks it up from there). It needs an access token inGITEA_TOKENor~/.pikkie/gitea-token. - Release signing: the script signs release builds with the key described in
~/.pikkie/release.env(outside the repo):Without a key you get a debug build. Every release must use the same key, or installed apps can't update.# one-time: create the key, keep ~/.pikkie/ private and BACKED UP mkdir -p ~/.pikkie && keytool -genkeypair -keystore ~/.pikkie/pikkie-release.p12 -storetype PKCS12 \ -alias pikkie -keyalg RSA -keysize 4096 -validity 10000 -dname "CN=PIKKIE" # ~/.pikkie/release.env exports PIKKIE_KEYSTORE, PIKKIE_KEYSTORE_PASSWORD, PIKKIE_KEY_ALIAS, PIKKIE_KEY_PASSWORD - In-app updates: the app compares its version with the server's newest APK, shows an update banner, then downloads the APK and hands it to Android's installer. The first time, Android asks to allow installs from PIKKIE. Bump
versionCode/versionNameinandroid/app/build.gradle.ktsfor every release. - Phone notifications: opt-in per event on the Me tab. The app polls about every 15 minutes with WorkManager (no Google push service needed), and right away when it opens.
- Testing without touching a real install: debug builds install as
nl.pikkie.app.dev, next to the real app with their own login../gradlew assembleRelease -PdevReleasegives the same, but minified like a real release. - Sharing in: "Share → Report in PIKKIE" works from any app, for screenshots, logs and text.
- Code changes: the ⌥ button on the Bullets screen opens the review queue, and every bullet has "Got a fix?". Testers paste code or load files (only the code is required) and revise it; admins see review warnings, tick a batch, share the
.mboxand code sheet to their computer, and accept it in one go. - Developing against a local server: run
adb reverse tcp:1312 tcp:1312and usehttp://localhost:1312. Plain HTTP is only allowed for localhost,.local,.lanand.test.
Security notes
- Credentials: passwords use scrypt (N=2¹⁵; older hashes upgrade at login). Session tokens, API keys, invite tokens and QR codes are stored only as SHA-256 hashes.
- Brute force: login, sign-up, setup and QR endpoints are rate-limited. Failed logins are counted per account and client address, so a stranger can't lock a tester out by typing wrong passwords. Wrong 2FA codes and wrong current-password entries are counted per user (8 per 15 minutes), across sessions and login attempts. TOTP codes can't be replayed.
- Sessions: cookies are
HttpOnly,SameSite=StrictandSecureover HTTPS. Changing a password or switching on 2FA ends all other sessions; an admin password reset also revokes that account's API keys. API answers are sent withCache-Control: no-store. - Identity: display names are unique (case-insensitive) and stripped of invisible and text-direction characters, so nobody can pose as an admin or another tester.
- Data at rest: the data folder (database, uploads) is readable by the server's user only. 2FA secrets and the SMTP password are encrypted (AES-256-GCM) with a key kept outside the data folder; see Encryption key below.
- Admins: the last active admin can't be demoted or disabled.
- Connect QRs: single-use and valid for 10 minutes. The app asks before acting on a connect link, shows which server it is for, and never sends an existing session to the server named in a link.
- Computer-login QRs: valid 2 minutes, only work when scanned inside the app (not as links), need approval from an already-authenticated app, and are bound to a browser-held secret that never appears in the QR.
- Invite tokens: sent in request bodies, never in URL paths, so they stay out of proxy logs.
- MCP: the API key is checked before the request body is read. Batches are capped, every call counts against the rate limit, and writes share the web's limits.
- Code changes: contributed code is only ever stored and shown as text; see Code changes, in batches for how batches are kept honest. A commit author's e-mail is visible to admins and the submitter only. Batch download links from
get_change_bundlecarry a random single-purpose token, work for 15 minutes and are read-only. - Uploads: served with
nosniff, a sandboxing CSP andContent-Disposition. Only PNG, JPEG, GIF and WebP render inline; SVG and HTML always download. Per-user hourly upload budget. Evidence is deleted with the last bullet of its report. - Strict CSP:
script-src 'self', noinnerHTMLfor user content,form-action 'self', no framing. - Mail: SMTP logins require TLS (STARTTLS can't be stripped). With no site URL set, the fallback origin for links comes only from admin requests with a well-formed
Host. - Link previews: fetched server-side with SSRF protection. Private, loopback, link-local, CGNAT and tunnelling ranges are refused, every DNS answer and redirect is checked, and there is a hard total deadline plus size limits. Preview images are re-hosted, so viewers' browsers never contact third parties.
- Android: the session token is encrypted with an Android Keystore key. Links, shares and notification taps are handled exactly once by a separate receiver, so Android can't replay an old one when the app restarts. Screens showing a secret (2FA setup, recovery codes, a new API key) are excluded from screenshots and the app switcher. No backup or device transfer of app data. Shared-in files are only accepted as
content://URIs from other apps. Tester-uploaded app packages can't be opened from PIKKIE. Updates are checked for the right package name and signing certificate before Android's installer sees them.
Found something? Open an issue, and be as picky as you like.
Built with
Node.js with its built-in SQLite, Express, Multer, Nodemailer and node-qrcode on the server; Kotlin, Jetpack Compose, OkHttp, CameraX, WorkManager and ZXing in the app. No trackers, no analytics, no third-party requests from the browser.
Security reports: see SECURITY.md.
License
MIT. Do what you want, keep the notice.










