Quickstart (Standalone)
Go from zero to a live dashboard with browser-verified pageviews, GeoIP, and AI crawler tracking on the server already running your site.
Prerequisites
- A Linux (
x86_64) or macOS (arm64) machine withcurlandsh. - Write access to
/usr/local/bin(or setINSTALL_DIRfor a user-local install). - Optional: Nginx or Caddy if you want first-party
/_q.jsproxying and server log tailing.
1. Install the binary
Download the latest static release and verify its SHA-256 checksum automatically:
Shell
curl -fsSL https://raw.githubusercontent.com/gig3m/quarkd/main/scripts/install.sh | sh quarkd --version
Expected outputOutput
quarkd 0.5.1
2. Generate config and GeoIP databases
Create a starter quarkd.toml with fresh random tokens, then fetch the free offline DB-IP City Lite and ASN Lite databases (which auto-update monthly afterward):
Shell
quarkd init --mode standalone quarkd geoip-update quarkd doctor --json
Expected output (doctor)Output
{
"ok": true,
"mode": "standalone",
"checks": [
{ "name": "config", "ok": true },
{ "name": "database", "ok": true },
{ "name": "geoip", "ok": true }
]
}
3. Start quarkd and send a test hit
Start the server in standalone mode (listens on 127.0.0.1:8090 by default), then run test-hit from a second terminal to confirm end-to-end ingestion and deduplication:
Terminal 1 — run standalone
quarkd standalone
Terminal 2 — verify ingestion
quarkd test-hit --url http://127.0.0.1:8090 --site default --json
Expected output (test-hit)Output
{
"ok": true,
"site": "default",
"js_beacon_status": 204,
"verified_pageviews": 1
}
4. Open the dashboard and add the script
Visit http://127.0.0.1:8090 and sign in with the admin_token generated in quarkd.toml. To track real browsers on your site, drop the 813-byte script into your <head>:
HTML
<script defer src="/_q.js" data-site="default"></script>
Using a coding agent? Skip manual setup entirely. Paste one prompt from Install with a Coding Agent into Claude Code, Codex, or Antigravity to install, wire Nginx/Caddy, and verify live traffic automatically.
Where to go next
How-to Guide
Install with a Coding Agent
Copy-paste prompts for standalone, hub, and agent rollouts.
How-to Guide
Collection Vectors & /_q.js
Wire Nginx or Caddy for first-party beacons, log tailing, and custom events.
Reference
MCP Server (13 Tools)
Add sites, goals, and Discord alerts over JSON-RPC with zero SSH.
Explanation
Architecture & Traffic Model
How humans, AI crawlers, daily salts, and read-only TOML fit together.