← Back to Blog
AI Gave Business a Superpower. Now Don't Drown in One JS File
April 22, 2026|#ai #vibe-coding #business #architecture #mvp

Friends, today I've got an almost-free mini-course for you. Not “buy my mentorship for $999” — just an observation that, if I were a normal infobusiness guy, I'd have already wrapped it into a funnel a hundred times over.

Something interesting is happening. Everyone is shipping apps now. Not only developers. Lawyers, consultants, doctors, logistics people, compliance specialists, wine experts — yes, wine. People who have never made a Git commit are sitting in Cursor or Claude Code and assembling working prototypes.

The main observation

More and more people around me — from real, non-IT domains — are building their own products with AI agents. And here's what surprises me: the prototypes sometimes look better than what a developer would produce in the same amount of time.

The design is clean. The logic feels alive. Because the person is not building an abstraction — they're building what they do with their own hands every day. They don't have the “understand the domain” problem. They are the domain.

A programmer almost always simplifies the product. Not out of laziness — they just don't know where the real pains live. A domain expert is the opposite: they know so much that the product comes out precise from the start. Sometimes even overly precise.

The wow-effect and what is under the hood

The app works. Shown to clients — approved. Shown to investors — impressed. Partner asked for access — logged in and didn't break it.

Then you open the code:

- one JS file, 2,800 lines
- UI, logic, database, validation — all in one pile
- no data layer at all, everything is called directly from the component
- auth is written “sort of like a login”
- roles? why roles, there is only one user so far
- deploy? “well, I just send a Vercel link”
- AI rewrote the same function 14 times; four copies sit next to each other
- it all holds up until you ask to add “just one more small feature”

This is not funny. This is very typical. I see it in people I genuinely respect as professionals in their own fields.

My position

I don't think this is bad. On the contrary — it's one of the most interesting stories happening right now.

AI has given domain experts a way to materialize their knowledge into software. This is literally a new superpower.

But there is a real difference between:

- a prototype that impresses people
- an MVP that can be evolved
- a product that can survive real users

Between those states lies a non-trivial amount of engineering work. Not the “I'll rewrite everything because I know better” kind, but the kind where someone else's prototype is carefully unpacked into layers, so that what actually works is preserved and the meaning isn't lost.

Practical base: what I usually recommend

If you are not a developer and you want to build a web app, the stack I usually suggest looks like this:

- Next.js (App Router)
- TypeScript
- Tailwind CSS
- shadcn/ui — if you want ready UI components
- SQLite for the simplest local MVP / managed PostgreSQL for something more serious (Neon, Supabase, Railway)
- GitHub — as source of truth, even if you can't use it well yet
- Vercel — so you can deploy in two clicks
- Docker, VPS, CI/CD, SSH — all of this can come later, once the project has actually grown

Do not overcomplicate things at the start. Docker on day one is an attempt to play “enterprise engineer” before you even have your first ten users.

The trick with refs/ and REWORK.md

Here is the move that people on the internet are already selling as a marathon course.

In a new empty project folder, create a subfolder refs/. Put everything you've already built with your previous AI iterations inside it: old code, prompts, screenshots, feature descriptions. Don't be shy — it's a reference, not the final product.

Next to it, put a REWORK.md file where, in your own words, you describe what should stay as is, what needs to be split into modules and components, what should move into business logic, what database you need, whether an admin area is required, and where it will be deployed.

  my-new-app/
  ├── refs/
  │   ├── old-prototype/        # everything from the previous AI build
  │   ├── screenshots/
  │   └── REWORK.md             # your plain-words rework brief
  └── (empty — agent will build here)
REWORK.md template
# REWORK.md

## What works — keep it
- UI flow for <main action>
- Core product logic in <area>

## What must be split
- Split UI into reusable components
- Move business logic into /services
- Extract data access into a data layer

## Data
- Entities: <list your objects>
- Need a real database (SQLite for MVP is fine)

## Access
- Roles: admin / user (and any custom roles from your domain)
- Simple auth is enough for now

## Admin area
- Yes / No, and what I must see there

## Deployment
- Vercel first
- VPS / Docker later, not now

## Non-goals
- No rewrite from scratch
- No enterprise ceremonies
- No new design

Then open this folder in Cursor or VS Code. For VS Code install the Claude (Anthropic) plugin, log in, open the chat. In Cursor it's already built in.

In the chat, write a prompt roughly like this (I keep code prompts in English — agents behave more consistently that way):

I have an early prototype in refs/.
Use it as a reference — do not copy code blindly.
Read REWORK.md in refs/ — it describes what I actually want.

Create a clean Next.js project with:
  - TypeScript
  - Tailwind CSS
  - App Router
  - shadcn/ui if UI components are needed

Split the UI into reusable components.
Move business logic into separate services.
Create a proper data layer.
Suggest a simple database (SQLite or Postgres) and wire it up.
Add a minimal admin area inside the Next.js app if it makes sense.
Don't over-engineer. Don't put everything into one file.

Before writing any code:
  1. Read the prototype in refs/
  2. Read REWORK.md
  3. Explain your plan in plain English
  4. Only after I approve — start coding

It sounds simple, but this one prompt turns a messy prototype into a properly structured project — as long as the agent has something to lean on.

And now the shameless self-promotion

Here I could, of course, say: “join my telegram, buy my course for $499, get three robots and eternal life as a bonus.”

I'm not going to do that. Instead — honestly and directly.

I can help if:

- you already have a working prototype, but you're scared to touch it
- AI fixes one thing and breaks another, and you've lost count of the iterations
- everything lives in one file and you suspect this is bad (it is)
- it's time to move database, roles, auth and admin into a proper shape
- you need to understand what can stay and what really needs rebuilding
- you need someone who speaks both product and architecture

Not to “take your project” and not to rewrite everything from scratch because I supposedly know better. But so that what you've already built becomes a project you can keep moving forward with.

In closing

Right now the world isn't split into “developers” and “business.” It's split into those who can assemble a prototype themselves, and those who can turn a prototype into a system. Two different abilities — and both are needed.

AI gave you the chance to start without a developer. But once a project actually starts to live — it's probably still worth inviting an adult into the room.

That's it. Not selling a course. See you in the next post.

This article was created in hybrid human + AI format. I set the direction and theses, AI helped with the text, I edited and verified. Responsibility for the content is mine.

Stuck with a prototype that outgrew its one JS file?