Private analytics for OpenZCAD, OpenFEA, and OpenLattice3D.
Try the public demo · Private dashboard · Access required · Setup · Privacy · Validation & rollout · Roadmap
Glimpse brings application activity, performance, storage, and diagnostics into a protected dashboard. It uses one Cloudflare Worker, a dedicated D1 database, and fixed service bindings from each application. Measurements become daily aggregates; voluntarily shared diagnostic reports can be inspected locally.
Open the public demo to explore the dashboard with fictional data. Try the app and date filters; browse Issues, Storage, and Privacy; or load the sample diagnostic report. All demo numbers are generated in your browser, with no connection to live analytics.
The demo runs on a separate glimpse-demo Worker with static assets only: no
D1 database, service bindings, ingestion, or credentials. Its files stay under
/demo/. Only that path has a Cloudflare Access bypass; the live dashboard and
/api/stats remain protected by Access and Worker JWT verification.
- Home: a health card per app (status, requests, server-error and slow-request shares, diagnostics) and a ranked "Needs attention" list with the evidence for each item.
- Performance: daily requests and error rate, API response-time ranges per app, and slow operations.
- Usage: utilization — opted-in cloud accounts, projects, and revisions with growth, an account-activity row (not collected yet), workspaces opened, per-app activity, top CAD operations, feature categories, simulation workflow steps, and model complexity.
- Issues: an inbox of grouped problems from connected sources, starting with Cloudflare Workers Issues, with Active, Resolved and Ignored tabs, error and security filters, stack frames, notes and triage actions. Below it are app diagnostics: server errors, diagnostic codes, failed exports, solves and generations, cloud request failures, and a local JSON report inspector.
- Storage: OpenZCAD cloud storage, growth, project sizes, and snapshot history; saved, upload, and download size observations.
- Privacy: collection definitions, consent scopes, retention, and measurement limits alongside the numbers.
- Sources: webhooks (connect Workers Issues, rotate secrets, see last delivery), each connected data source with its latest data, and the sources planned next.
- Agents (MCP):
/mcplets Claude and Codex read health, metrics and issues and set issue status and notes, signing in through Cloudflare Access. See agent access. - Costs: Esau metered costs, subscriptions, app/resource usage, allocated cost estimates, budgets and collection coverage. See the connection and rollout guide; activation is separate.
Navigation sits in a sidebar (a menu on narrow screens). The dark, responsive interface includes UTC date ranges of up to 90 days, URL-backed filters, accessible data tables, and manual refresh. Basic and opt-in figures load side by side and stay labelled by source. Empty, unsupported, unavailable, and stale results have distinct states. Candidate metrics that are not collected yet are listed in proposed metrics.
| Application | Measurements supported by the service |
|---|---|
| OpenZCAD | API counters; opt-in CAD operations, exports, diagnostics, size/part/transfer observations; cloud account and storage snapshots with separate account permission |
| OpenFEA | API counters; opt-in mesh/solver/export outcomes, workflow steps, diagnostics, and size/part/transfer observations. No cloud account census |
| OpenLattice3D | API counters; opt-in workspace opens, export and generation outcomes, and operation timing. Also accepted, not yet sent (ADR 0001 Option B, accepted 13 November 2026): a targeted v2 subset of diagnostics, export time, saved project size, feature categories and lattice cell-count ranges, plus local reports. No cloud, transfer, solver or CAD-operation metrics. OpenLattice3D sends them only after its adapter and new consent version ship |
The service also accepts four more diagnostic codes (from all three apps) and optional OpenZCAD account-activity counts (saved in the last 7 and 30 days, idle for 90 days or more; counts below 5 are withheld). Their privacy review was approved on 13 November 2026, but no app sends them yet, so the dashboard shows the activity counts as "Not collected"; see proposed metrics.
Support in this repository does not establish that an integration is enabled or verified in production. The validation ledger records prior checks, the roadmap lists remaining rollout work, and the setup guide covers the required migrations and deployment order.
flowchart LR
App[Application Worker] -->|Fixed app service binding| Worker[Glimpse Worker]
Worker --> DB[(D1 aggregates)]
Dashboard -->|Cloudflare Access + verified JWT| Worker
CF[Cloudflare Workers Issues] -->|Webhook + per-source secret| Worker
Worker --> Inbox[(D1 issue inbox)]
Report[User-shared JSON] --> Inspector[Local report inspector]
OpenZCADIngest (beta), OpenZCADStableIngest, OpenFEAIngest, and OpenLattice3DIngest fix the caller's app and channel
identity. record({ level, event, bucket }) validates an allowlisted metric and
increments its UTC receipt-day counter. OpenZCAD also has a snapshot(...)
entrypoint for aggregate cloud statistics; it returns { accepted } so the caller
can see a rejected out-of-order generation. There is no public HTTP ingestion
endpoint. Authenticated dashboard reads use /api/stats.
Daily counters and the latest snapshot per app/day are stored separately. Snapshots represent stocks at a point in time and are never summed across days; generation checks discard duplicate or out-of-order deliveries. Aggregates are retained for 90 UTC calendar days, with expired rows excluded from reads and removed by a daily job.
Basic counters measure server-side API requests, HTTP 5xx failures, and coarse response times. They count operations, not people, visits, or browser-local work.
Optional analytics require an enabled app deployment switch and explicit app-local consent. Expanded collection requires fresh consent for the broader scope (v2 in OpenZCAD/OpenFEA, a new consent version in OpenLattice3D); OpenZCAD account statistics have a separate, expiring permission. Optional totals describe the opted-in population only. Workflow steps are independent counts, not individual timelines.
Glimpse's analytics schema excludes visitor identifiers, IPs, URLs, model content, project names, and raw error text or stacks. It stores no raw event history. Infrastructure and authentication logs have separate settings and retention; see the privacy review for that boundary.
Reports stay in the current browser page and never enter the aggregate database. The inspector accepts only validated v2 JSON, up to 64 KiB and 128 unique aggregate rows. Clear or reload removes the inspected report.
These are best-effort operational measurements. Lost or spoofed events, rate limits, repeated observations, and consent selection can affect totals. They are not billing records or unique-user estimates.
Use Node.js 22.12 or newer and npm.
npm ci
npm run check
npm run devnpm run dev serves the dashboard UI on loopback only. It needs a configured
Worker API for real data; an unavailable API produces an error state. Follow
setup for local D1 migrations, wrangler dev, and Access
configuration. Keep development servers private.
| Command | Purpose |
|---|---|
npm run dev |
Start the Vite UI development server |
npm run build:demo |
Build the isolated public demo into dist-demo/ |
npm run dev:demo |
Serve the demo Worker locally on port 8788 |
npm run build |
Build dashboard assets into dist/ |
npm run typecheck |
Check TypeScript without emitting files |
npm test |
Run Worker/RPC/D1/auth, dashboard-data, and preview-isolation regressions |
npm run check:deploy |
Remove dist/, prove a clean Wrangler dry-run builds assets, and verify bundle references |
npm run check |
Run typechecking, tests, and both deployment dry-runs |
npm run types |
Regenerate Cloudflare binding types after configuration changes |
CI also runs the privacy-policy regressions:
python3 -m unittest discover -s scripts -p 'test_*.py'The stack is TypeScript, React 19, Vite, native CSS/SVG charts, Cloudflare Workers, D1, and Cloudflare Access. No external fonts or chart/UI libraries are loaded.
The configured dashboard hostname is glimpse.esau.app. Dashboard assets and API reads require Cloudflare Access, with JWT verification inside the Worker. Branch previews use a separate D1 database and Access audience.
GitHub Actions validates changes. The existing Cloudflare Workers Builds
integration deploys pushes to main, using npm run build,
npx wrangler deploy, and root directory /. Direct Wrangler deployments also
build the UI through the custom build configuration.
Service deployment, database migrations, app integration rollout, and collection activation are separate steps. Follow the setup guide and expanded analytics rollout; a passing dry-run does not migrate or deploy anything.
| Location | Contents |
|---|---|
src/ |
Worker, Access verification, metric/census contracts, report validation; src/cloudflare/ holds the Cloudflare usage and cost collector and API |
web/ |
Dashboard views, charts, filters, and local report inspector |
migrations/ |
Ordered D1 schema migrations |
test/ |
Service, data-semantics, and preview-configuration regressions |
scripts/ |
Clean-build verification and publication/privacy checks |
public/brand/ |
Reveal logo, wordmarks, and app icon |
| Documentation | Details |
|---|---|
| Setup & rollout | Bindings, migrations, Access, builds, previews, and rollback |
| Privacy & consent | Collection boundaries, consent, and infrastructure limits |
| Expanded analytics | Measurement definitions, account permission, reports, and v2 rollout |
| Validation ledger | Recorded local/hosted checks and unverified production work |
| Roadmap | Current state, open rollout checks, hygiene backlog, feature candidates and non-goals |
| Cloudflare monitor | Esau usage and cost collection, interpretation, budgets and rollout |
| Dashboard design | Interface behavior and measurement presentation |
| Proposed metrics | Candidate opt-in and snapshot metrics awaiting privacy review, and those implemented in Glimpse with app adapters pending |
| Decisions | Architecture decision records, such as OpenLattice3D v2 parity |
| Brand | Logo variants, palette, and icon exports |
| Public-source review | Bounded history review and ongoing commit/secret checks |
Changes to the event vocabulary in src/contract.ts or the
expanded schemas in src/expanded.ts require coordinated app
adapter changes and a privacy review. Keep changes focused, add regression
coverage for behavior changes, and run the checks above before opening a pull
request. Keep secrets, real reports, model files, and production data out of
issues, tests, and commits.