DevFlash
Practice for the part of the interview where you write code: short challenges with an editor, preview and tests running in the browser. It is still in development, on a subdomain, and you can already open it and try it.
- Role
- Product, design and development
- When
- Since April 2026, repositioned in November
- Team
- Solo, with AI agents in the code
- Status
- In development, open to visit on a subdomain
- 6 challenges in the catalog today, 5 of them free; the launch goal is 15
- 24 guides on technical interviews, in English and Portuguese
- 174 tests: 125 unit and integration, 49 end to end
- 25 decisions on record, each with the reason and how to revert it
Reading Answers Does Not Train You to Write Code
In a front-end technical interview, what trips people up most is what you cannot train by reading: opening an editor, understanding a requirement and making it work with someone watching. Most of the material out there is questions and answers to memorize.
The first version of DevFlash went down that road: a question catalog, flashcards and spaced repetition. Looking at the market, it became clear that competing on volume made no sense, since catalogs with thousands of questions already exist. The database was still empty, so no user or data was lost, and the product was rebuilt around one idea: practicing with tests that point to the requirement you missed.
The challengeRun each student's code, with tests, without paying for a server per execution and without giving up a real editor. All of that in a 0.5 vCPU container.
The Decisions That Shaped the Product
- 01
The Student's Code Runs in Their Own Browser
Sandpack compiles and runs the tests in the browser itself, with versions pinned per challenge. The CPU cost stays with whoever is practicing, and the server only delivers the page and stores the draft. Before adopting it, I ran a technical proof, recorded in the repository.
- 02
A Test Only Counts If It Catches the Wrong Solution
Each challenge ships with at least two plausible wrong variants, and the tests must fail both. Without that, a passing test proves nothing. The content validator rejects any challenge that breaks this rule.
- 03
Content Only Publishes with Human Review
Challenges and guides are versioned files validated with Zod. AI agents help write them, but the schema refuses to mark anything as published without a reviewer. That is why the site still shows an "under editorial review" notice: it is the real state, and the guides stay out of the Google index until I review them.
- 04
Local Draft First, Conflicts in the Open
The editor saves to the browser on every edit and syncs with the server right after. Each sync says which revision it is based on. If another tab or device got there first, the student chooses which version stays, and the discarded one remains available to restore.
- 05
Billing Ready Before Choosing the Processor
The subscription sits behind an interface, and every event becomes the subscription's full state with the provider's timestamp. A repeated or out-of-order webhook undoes nothing, and a reconciliation job recovers lost events. I tested everything with a fake processor; the real one comes in when I settle on it.
On the Phone
Guides and catalog were designed for reading on a phone. For solving a challenge, a larger screen is still the recommendation.
-
01 Home. The home page on a phone.
-
02 Guide. A guide on a phone, with the summary right after the cover.
-
03 Catalog. The catalog filters on a phone.
The Live Product
The site is public: you can open a challenge and solve it without an account. The account is there to save your code across devices.
* Screenshots from November 4, 2026, of the live site, public pages only. The student dashboard requires login and was left out.
Built to Handle Real People
It has not launched yet, but the expensive risks have already been handled and tested.
Stack
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS 4
- Sandpack
- PostgreSQL
- Drizzle ORM
- Auth.js
- next-intl
- Zod
- Docker
- Azure DevOps
- Coolify
Safeguards
- Every read and write is filtered by session; a write is refused if the account changed along the way
- Solutions, wrong variants and Pro content stay on the server, out of the public bundle, and a test checks that
- Login by email link, single use and valid for 30 minutes
- Webhooks with an invalid signature are rejected; duplicate or out-of-order events are tolerated
- When a subscription expires, the challenge locks, but the student's code stays stored and exportable
Tests and Quality
- Vitest
- Testing Library
- Playwright
- Unit and integration tests with Vitest, on a disposable Postgres
- End-to-end tests with Playwright, covering sync, conflicts and billing through the UI
- Load test in production: up to 20 concurrent sessions and 30 minutes at 10, with no 5xx errors and no lost writes
- Lighthouse mobile performance between 83 and 89 in local runs, still below my goal of 90
Inside the Code
The repository is private. Here is what can be verified in it, with the proof of each practice.
Architecture
-
Feature folders
11 folders in src/featuresChallenges, guides, editor, billing and progress are kept apart, each with its own domain and tests.
-
Isolated runtime
src/features/workspaceEverything that knows about Sandpack lives in one place. Swapping the runner does not touch the rest of the product.
-
Written decisions
docs/decisoes.md · 25 entriesEach decision records its date, reason and how to revert it. That is what lets me return to the project months later without guessing why something is the way it is.
Database
-
Versioned migrations
Drizzle · 6 migrationsThe schema evolves through reviewed files, with a dump before applying in production.
-
Optimistic revision
UPDATE ... WHERE revision = baseA draft only saves if nobody got there first. Two tabs never silently overwrite each other.
-
Per-subscription lock
advisory lockSimultaneous events for the same subscription are queued, including the first two of a new subscription.
Content
-
Schema as the rule
challengeSchema · guideSchemaComplete English and Portuguese, exact dependency versions, at least two hints and two wrong variants. Without that, CI does not pass.
-
No raw HTML
guideBlockSchemaGuides are closed blocks that become React elements, never HTML coming from a string.
What Is Left
Review the 5 free challenges and the 24 guides, which unlocks Google indexing
Write the remaining challenges to reach the 15 planned for launch
Choose the payment processor and plug in the real adapter
Bring mobile performance to 90 and fix the editor on phones
Move from the subdomain to its own domain
Have a Similar Project in Mind?
I like problems with real people on the other side. Tell me what you need.