Case study · CyberJustiça Brasil
Stories of online fraud, on a site with no trackers.
Website of the CyberJustiça Brasil podcast, about cybercrime in Brazil. In October 2026 we rebuilt it in Astro and moved it off Vercel onto the N3XUS private cloud.

- Type
- Founder’s personal project · media and education
- First commit
- Live at
- cyberjus.org
- Code
- github.com/Samurai33/CyberJust
- Stack
- Astro 7
- TypeScript
- nginx
- Docker
- Coolify
- Cloudflare Tunnel
- Cloudflare Workers + D1
- Sveltia CMS
- Playwright
- Vitest
The problem
CyberJustiça Brasil tells real cases of online fraud in Brazil: what the investigation found and what to do so you are not the next victim. The site started in May 2025 as a Next.js prototype deployed on Vercel.
By October 2026 the prototype had three problems: the audio player broke in Chrome, there was a hidden dashboard protected only by a password stored in the browser, and part of the content had no source (experts, contacts and statistics with no verifiable origin).
The goal: a site that plays the episode without stalling, publishes only what has an official source and hands no listener data to anyone.
What we built
A static site with a real player.
Every page is HTML generated at build time. The little JavaScript there is only improves what already works without it.
A player that keeps going as you browse
A single native audio element, streaming over HTTP Range, that keeps playing across pages and shows up on the lock screen through the Media Session API.
Episode dashboard
Sveltia CMS behind Cloudflare Access. Login uses a GitHub token scoped to a single repository, and every "Save" becomes a commit that deploys on its own.
Feed and previews built at build time
Feed for Apple Podcasts, Spotify and Podcasting 2.0, a preview image per episode, chapters and transcript. Audio duration and size are read from the file.
Sourced content
The build rejects any episode whose sources are not official https addresses. The "I was a victim" page follows Law 14.155/2021 and the Central Bank’s MED refund mechanism.
Anonymous counter
A Worker with D1 counts visits without cookies and ignores bots and anyone who asks not to be tracked (GPC and DNT). The number only shows from 100 on.
Tests on 5 profiles
Playwright against the same Docker image as production, on Chrome, WebKit, iPhone, iPad and Android: pages, CSP, player, headers, redirects and Range.

Architecture and security
No open port, no third parties.
The container has no port exposed to the internet: traffic enters at the Cloudflare edge and arrives through a tunnel opened from the inside out.
Edge
Cloudflare handles DNS, TLS and the tunnel to the server. The counter Worker only answers on its own API path.
Application
Static HTML served by rootless nginx in Docker, with a healthcheck, on the N3XUS private cloud.
Publishing
Content is Markdown in Git. A commit on main triggers the webhook and the deploy; if the build fails, the previous site stays online.
Security
CSP with self only, 2-year HSTS, COOP and CORP, frame-ancestors none, fonts served from the site’s own domain and dependencies at least 14 days old.
$ curl -sI https://www.cyberjus.org/ HTTP/2 200 strict-transport-security: max-age=63072000; includeSubDomains content-security-policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; media-src 'self'; object-src 'none'; frame-ancestors 'none' cross-origin-opener-policy: same-origin permissions-policy: camera=(), microphone=(), geolocation=(), payment=(), usb=() x-content-type-options: nosniff
Results
Numbers you can check.
- Episodes publishedin the /podcast.xml feed
- 6
- First-party JavaScripton the home page, uncompressed
- 28 KB
- Third-party resourcesCSP with self only in every directive
- 0
- Profiles in the e2e testChrome, WebKit, iPhone, iPad and Android
- 5
Measured on October 18, 2026 on the production site and the public repository.
What went wrong
What went wrong and how we fixed it.
An honest record of the problems we hit along the way. It is what teaches the most.
The player broke in Chrome.
The audio files were fragmented MP4, and the player downloaded the whole file until it blew the browser’s memory quota. We remuxed them to MP4 with the index at the start and switched to native audio with Range. The build now rejects files without that index.
Some content had no source.
We removed experts whose contacts we could not confirm, timelines and statistics with no origin. The content schema now requires an official source.
The preview was cropped on Facebook mobile.
The app crops the image to a square in the center. The artwork was redone with all the text in the central band, and new previews already come out that way.
Tell us the problem. You talk directly to the people who build.
Email reply within 2 business days. The first conversation is free, and the proposal arrives in writing before any charge.

Thiago RangelFounder and lead engineer
Prefer the phone? (11) 2532‑8468 · other channels