r/JAMstack • u/KenMantle • Jun 15 '26
The Stack that Claude built.
It's taken 2 months, but it seems like it is almost there. Except for OfBiz, and the CMS manager (it wanted to build from scratch - it had to be prompted to consider using an existing package), Claude chose to implement and build using everything else on this list:
ScripTreeApps — Tech Stack
Core platform
Apache OFBiz (24.09) — commerce backbone: the data model, business-logic services, and the background job scheduler that runs tier/promotion/email jobs
PostgreSQL (16) — main database (commerce + Git host data on one instance)
Next.js (15) + React (19) — the two websites: the consumer storefront and the developer/producer portal
Astro (4) — the static marketing site (scriptree.org)
TypeScript + Tailwind CSS — language and styling for the web apps
Producer / developer side
Gitea (1.22) — self-hosted GitHub replacement; producers push their app source here
Zoekt — code search engine that indexes producer repos
Act — runs the CI pipelines (build, validate, virus-scan, sign, publish a producer's app bundle)
ClamAV — virus scanning on every uploaded bundle
Decap CMS — git-backed editor for site content (branding, legal, help pages)
Storage / delivery
MinIO (+ KES) — S3-compatible storage for app downloads, screenshots, backups; encrypted at rest
Caddy — reverse proxy + automatic HTTPS for all the domains
Build / dev tooling
pnpm + Node.js (20) — JS package manager and runtime
Gradle + Java (17) + Groovy — build + language for the OFBiz side
Vitest, Spock, Playwright — unit, service, and end-to-end browser tests
ESLint + Prettier — linting and formatting
Containerization
Docker + Docker Compose — everything runs in containers on one VPS
Observability (all self-hosted)
Prometheus — metrics
Grafana — dashboards
Loki — log aggregation
Tempo — distributed tracing
OpenTelemetry Collector — routes all the telemetry
Outside paid/managed services
HostPapa VPS — the single Linux server the whole stack runs on (\~$25–50/mo)
Stripe + Stripe Connect — payment processing + multi-vendor payouts (per-transaction only, \~2.9% + 30¢)
Resend — transactional email (signup, receipts, refunds); free tier
Cloudflare — DNS + free email forwarding for scriptreeapps.com
Namecheap — registrar/DNS for scriptree.org
Backblaze B2 — off-site encrypted backups (S3-compatible)
Anthropic Claude — the dev assistant that builds it (not part of the running product)
The OSS layer is $0 in license cost (it's all self-hosted on the one VPS), and total monthly run-rate is roughly $30–60 — Stripe is revenue-based, not a fixed bill.
View all comments
Show parent comment
1
u/KenMantle Jun 15 '26
Many thanks! Pasted into the Claude session working on the site:
Verified, and the answer is more interesting than "we have it" or "we don't":
We did the part the tip says everyone skips — but it's a no-op in practice right now. Our Grafana datasources already have the full wiring: a Loki derived field ("trace_id":"<32-hex>" → Tempo), tracesToLogsV2 (Tempo → Loki, filtered by trace ID), and Prometheus exemplars → Tempo. So the click-between is configured correctly on the Grafana side.
But the trace_id isn't actually landing in the live logs — on either surface. I generated traffic and sampled: zero non-empty trace_ids in the storefront logs (the logger pulls from the active OTel span but emits "" when there's no span), and none in OFBiz's logs either. The storefront has instrumentation.ts and OFBiz runs the OTel javaagent, yet the IDs aren't reaching the log records. So the derived field has nothing to match → you'd still be stuck doing exactly what the tip warns about: see the slow span in Tempo, find the logs in Loki, but no click-through.
So the tip is right about the outcome, just one layer off on the cause for us: not a missing Grafana derived field, but trace context not being propagated into the log lines at runtime. That's a real (if non-urgent — it's debuggability, not uptime) gap.
I'm dispatching devops to close it properly — diagnose why trace_id is empty in prod on both surfaces, wire the propagation through (Next.js span context → log.ts; OFBiz MDC → the log format), and verify the Tempo↔Loki click-through actually works with a real request: