The Backend That Doesn't Exist Yet

There's a specific moment in a lot of projects — a hackathon, a client pitch, a proof of concept, an early product demo — where someone insists on building "just a basic backend" before the actual thing anyone will look at can be shown to anyone. Hours later, there's an auth system, a database schema, and three CRUD endpoints, and the actual UI everyone was supposed to be evaluating still doesn't exist. The backend became the project, when the point was never the backend.
When the backend genuinely isn't the point
A lot of situations that feel like they need a real backend actually just need something that behaves like one, for exactly as long as the demo or evaluation lasts:
- A sales demo or investor pitch. Nobody watching cares whether the data is really persisted in a database — they care whether the product concept and the UI answer their actual questions. A fake API that returns realistic, on-brand data is functionally identical to a real one for this purpose, and takes a fraction of the time.
- A hackathon. With 24-48 hours on the clock, time spent on database schema design and auth middleware is time not spent on the feature that's actually supposed to be judged. A mock that returns the right shapes lets the team spend nearly all of that time on the part a judge will actually look at.
- A design or UX prototype meant for user testing. The point is to learn whether people understand the interface and find the right things, not to prove the backend scales. Real persistence is often actively unhelpful here — you frequently want every test participant to see the same clean starting state, which a stateless (or freshly-reset stateful) mock gives you for free, and a shared real database doesn't.
- An early proof of concept for a feature that might not ship. Building the real backend for something that has a real chance of being scrapped after a week of feedback is a bet you don't always want to make. A mock lets the UI and the concept get evaluated before anyone commits backend engineering time to something that might not survive contact with a user.
What "behaves like one" actually requires
The bar for a demo-ready fake backend is lower than a production one, but it's not zero. A single hardcoded JSON response, reused for every request regardless of input, breaks the illusion the moment anyone clicks something that should change the data — and in a demo, "someone clicks the wrong thing and it obviously doesn't work" is a worse outcome than not having built the feature at all, because now it looks broken instead of unbuilt.
A few things worth getting right even in a throwaway prototype:
- Different inputs should produce different, sensible outputs. A search for a "no results expected" query shouldn't return the same three items as every other search. Conditional matching gets you this without hand-coding branching logic into the mock itself.
- Actions that should persist within the session should actually persist within the session. If a demo involves "add an item, then see it in the list," faking that specific flow with stateful routes takes minutes and prevents the single most common way a fake backend gets caught being fake mid-demo.
- It should be reachable by whoever's actually presenting, not just running on the presenter's own laptop under
localhost, in case the demo happens on a shared screen from a different machine, or a teammate needs to run through it independently to prep. - Realistic-looking data beats
"test123"in every field. A demo with"name": "asdf"and"email": "a@a.com"visibly reads as a demo. Filling fields with plausible data by name — a real-looking email, a believable date, an actual price — closes that gap in seconds rather than requiring anyone to type out fake-but-convincing values by hand. (Smart Mock does exactly this.)
The point isn't to avoid building the real thing
None of this is an argument against ever building a real backend — obviously, at some point, most of these projects need one. It's specifically about not letting "we need a backend first" become the default first step for situations where a backend was never actually going to be evaluated: pitches, prototypes, hackathons, and early concepts, where the thing worth spending time on is the part a person is actually going to look at and react to, not the infrastructure quietly supporting it behind the scenes for an audience of one demo.
Xerat02
Building MockBase.
More from the blog

The Content-Type Header Your Download Button Ignores (Until It Doesn't)
A browser will render, download, or silently mangle a response differently depending on one header most endpoints get right by accident — and "it worked when I tested it" usually means you tested the one case where the accident didn't matter.

GraphQL Doesn't Kill the Need to Mock — It Just Moves It
A GraphQL mock that returns one fixed body for every request to /graphql tells you almost nothing — the client's query, not the URL, determines what a real server would actually send back.