GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - datamaker/lookout

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cli
cli
 
 
scripts
scripts
 
 
sdk
sdk
 
 
server
server
 
 
web
web
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
Dockerfile
Dockerfile
 
 
HANDOFF.md
HANDOFF.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose.dev.yml
docker-compose.dev.yml
 
 
docker-compose.hub.yml
docker-compose.hub.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

lookout

Self-hosted, Sentry-compatible error tracking — small enough to read in an afternoon.

Your services already use @sentry/node? Change one line (the DSN) and errors flow into your own server. No SDK to swap, no vendor account, no per-seat pricing.

  • Sentry SDK compatible — speaks the Sentry envelope protocol (/api/<project>/envelope/) and the legacy store endpoint. Tested with @sentry/node v7.
  • Issue grouping — events are fingerprinted by exception type + stack frames (line-number agnostic, so redeploys don't split issues) and grouped into issues with first/last seen and counts.
  • Web dashboard — issue list with search and status tabs, stack trace viewer with source context, breadcrumbs, tags, event history, 24h frequency chart. Works on a phone: triage from bed without pinch-zooming.
  • Webhook alerts — new issues and regressions post Slack-compatible JSON to a per-project webhook.
  • Boring stack — Node + Fastify + PostgreSQL. One container plus Postgres.

Quick start

git clone https://github.com/datamaker/lookout.git
cd lookout
docker compose up -d --build

Open http://localhost:9000 — the first visit walks you through creating the admin account. Then create a project and copy its DSN into your app:

const Sentry = require('@sentry/node');

Sentry.init({
  dsn: 'http://<public-key>@localhost:9000/1', // from the project settings page
  environment: process.env.NODE_ENV,
});

That's it — Sentry.captureException(err) and unhandled errors now land in lookout.

No Sentry SDK? Use @datasee/lookout

If you'd rather not pull in the full Sentry SDK, @datasee/lookout is a zero-dependency client (~6 kB) that lives in sdk/:

npm install @datasee/lookout
const lookout = require('@datasee/lookout');
lookout.init({ dsn: 'http://<public-key>@localhost:9000/1' });
lookout.captureException(new Error('boom'));

Uncaught exceptions and unhandled rejections are captured automatically; breadcrumbs, tags, user context, source context lines, and an Express error handler are included. See sdk/README.md.

Configuration

Env var Default Description
PORT 9000 HTTP port
DATABASE_URL postgres://lookout:lookout@localhost:5434/lookout PostgreSQL connection string
JWT_SECRET (auto-generated, persisted in DB) Session token signing secret. Set it only if you rotate DBs.
LOOKOUT_PUBLIC_URL (empty) Public base URL, used for DSNs shown in the UI and links in alerts, e.g. https://lookout.example.com
LOOKOUT_RETENTION_DAYS 90 Raw events older than this are deleted hourly. Issues are kept.
INGEST_MAX_BODY_BYTES 2097152 (2 MB) Max HTTP body (as sent, possibly compressed) on the ingest endpoints. Larger → 413.
INGEST_MAX_DECOMPRESSED_BYTES 2097152 (2 MB) Max size of an envelope after decompression (zip-bomb guard). Larger → 413.
INGEST_MAX_EVENT_BYTES 1048576 (1 MB) Max size of one stored event. Oversized events are truncated (breadcrumbs, long strings, stack locals, extra); if still too large → 413.
INGEST_RATE_LIMIT_PER_MIN 6000 Events accepted per project per minute (0 disables). Over → 429 + Retry-After.
INGEST_BYTES_LIMIT_PER_MIN 104857600 (100 MB) Decompressed bytes accepted per project per minute (0 disables). Over → 429 + Retry-After.
INGEST_MAX_EVENTS_PER_ENVELOPE 100 Extra event items in one envelope are dropped.
LOGIN_MAX_FAILURES_PER_EMAIL 5 Password-login attempts per email before a temporary lockout (0 disables).
LOGIN_MAX_FAILURES_PER_IP 20 Password-login attempts per client IP before a temporary lockout (0 disables).
LOGIN_LOCKOUT_MINUTES 15 Counting window and lockout duration for the two limits above.
LOOKOUT_TRUST_PROXY (empty: don't trust) Set to 1 (hop count) or a proxy IP/CIDR list when running behind a reverse proxy, so the per-IP login limit sees the real client IP instead of the proxy's.
LOOKOUT_WEBHOOK_ALLOWED_HOSTS (empty) Alert webhooks must be https://hooks.slack.com/.... Add other hosts here (comma-separated, https only), or * to allow any host. Redirects are never followed.
GATEHOUSE_STATUS_URL / GATEHOUSE_STATUS_SECRET (empty: off) When both are set, tokens issued through SSO are re-checked against the IdP's account status (60 s cache) and rejected once the account is deactivated or its sessions are revoked.

What it accepts

Endpoint Behavior
POST /api/<project>/envelope/ Sentry envelope (gzip/deflate/br/zstd ok). event items are stored; transactions, sessions, and client reports are accepted and dropped.
POST /api/<project>/store/ Legacy single-event JSON.

Authentication uses the DSN public key (X-Sentry-Auth header or sentry_key query param), so any Sentry SDK that can target a custom DSN should work — @sentry/node, @sentry/browser, sentry-python, etc. Only v7-style error events are officially tested.

Development

npm install
docker compose -f docker-compose.dev.yml up -d   # postgres on :5434
npm run dev        # API server on :9000 (runs migrations on boot)
npm run dev:web    # Vite dev server on :5180, proxies /api

npm run build builds the dashboard into web/dist and the server into server/dist; the server serves the dashboard statically when web/dist exists.

Design notes

  • Grouping: default fingerprint is sha256(exception type + (module:function) of up to 8 innermost in-app frames). Custom fingerprint arrays on the event are respected, including {{ default }}.
  • Regressions: an event arriving for a resolved issue reopens it and fires the webhook again.
  • Auth model: email/password accounts with two roles — admin (manage projects, webhooks, members) and member (view and triage issues). The first visit creates the admin account; admins add members from the dashboard. Sessions are 7-day JWTs (bcrypt-hashed passwords). Ingestion is authenticated per-project by DSN key, independent of user accounts.

Non-goals (for now)

Performance tracing, session replay, source map processing, multi-user/teams, SSO. If you need those, use Sentry — this project exists for the "I just want error tracking on my own box" case.

License

MIT © JungBin Kwon

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.