Skip to content
My own product · Technical interview practice · 2026 in development

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
Visit the live site (opens in a new tab)
DevFlash challenge screen with requirements, code editor and component preview
DevFlash home page on a phone
Technical interview guide on a phone
01. Context

Reading Answers Does Not Train You to Write Code

Catalog with 6 challenges and 24 guides, browser editor with preview and tests, requirement feedback and a local draft.
From challenge to test feedback, all in your browser.

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 challenge

Run 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.

02. Decisions

The Decisions That Shaped the Product

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

03. On mobile

On the Phone

Guides and catalog were designed for reading on a phone. For solving a challenge, a larger screen is still the recommendation.

  1. 01 Home. The home page on a phone.

  2. 02 Guide. A guide on a phone, with the summary right after the cover.

  3. 03 Catalog. The catalog filters on a phone.

04. On desktop

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.

Editor. A challenge open: requirements on the left, editor in the middle and live preview, with tests running in the browser.
Home. The home page shows the product right away: a failing test and the requirement it points to.
Challenge. Each challenge has a public page explaining why it comes up in interviews.
Guides. The 24 guides grouped by hiring stage.
Guide. A guide with an illustrated cover, one-minute summary and side index.

* Screenshots from November 4, 2026, of the live site, public pages only. The student dashboard requires login and was left out.

05. Engineering

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
Five controls: validated content, sessions, server-only solutions, optimistic revisions and 174 tests with Vitest and Playwright.
Validation, isolation and tests support the practice.

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
06. Inside the code

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/features

    Challenges, guides, editor, billing and progress are kept apart, each with its own domain and tests.

  • Isolated runtime

    src/features/workspace

    Everything 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 entries

    Each 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 migrations

    The schema evolves through reviewed files, with a dump before applying in production.

  • Optimistic revision

    UPDATE ... WHERE revision = base

    A draft only saves if nobody got there first. Two tabs never silently overwrite each other.

  • Per-subscription lock

    advisory lock

    Simultaneous events for the same subscription are queued, including the first two of a new subscription.

Content

  • Schema as the rule

    challengeSchema · guideSchema

    Complete English and Portuguese, exact dependency versions, at least two hints and two wrong variants. Without that, CI does not pass.

  • No raw HTML

    guideBlockSchema

    Guides are closed blocks that become React elements, never HTML coming from a string.

07. Today

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

Next step

Have a Similar Project in Mind?

I like problems with real people on the other side. Tell me what you need.