In shortI run the product with a partner. Code, architecture and infrastructure are mine. 1,268 commits from January to November 2026, 312 test files, and the most careful part of the code is about money.

Craftworks.app is a site where an AI model makes the photo and the user doesn’t have to know which model to pick or how to write a long prompt. Instead of an empty text box there are ready-made tools: business portrait, marketplace product shot, YouTube cover, avatar. You can repeat an example as is or with your own photo. The interface is in Russian.

The repo is private, so the only link is the live site.

Who does what

I run the product together with a partner. The code, architecture and infrastructure are on me. Between January 18 and November 28, 2026 the repo got 1,268 commits, almost all of them mine. 166 pull requests in that time, 158 merged.

A good share of the code was written by AI agents working on tasks I set. I write the task, read the diff, run the tests, and I’m the one responsible for what lands in main. I haven’t measured the exact share.

Ready-made ideas block on the Craftworks home page: a grid of generated shots with category filters
Ready-made ideas on the home page: click a shot to see the prompt, model and price. Screenshot from October 12, 2026, the UI may have changed since. The people in the shots are generated.

Price before the button

I wanted one thing from billing: you know the price before you press Create. At the time of the screenshot the site had 7 models and photos started at 5.1 RUB. A model can have several quality levels, each with its own price. Nano Banana 2.1 has three: 16, 24 and 53 RUB.

Under the hood the balance is kept in tokens. You top up with a pack or any amount from 100 to 50,000 RUB. Pack and model prices are tied to what generation costs, and that link has a floor. If someone changes a price so the margin over cost drops below it, tests/pricing-markup.test.ts fails. I’m not publishing the actual numbers.

Payments that add up

Payments currently go through SBP, the Russian instant payment system. I switched off the first payment provider. Its old records are still readable but are never reconciled again.

The code doesn’t just wait for a payment status to arrive. A background worker checks open payments against the provider every 2 minutes, and re-checks succeeded and canceled ones once a day for another 30 days. That catches payments stuck in pending and late cancellations.

The money rules are written down as a payment status transition table, and the code follows it. A top-up is credited once per operation key, so a repeated confirmation adds nothing. If the amount from the provider doesn’t match the expected one, nothing is credited and the payment goes to manual review. On a chargeback the balance is debited down to zero at most, never below, and the shortfall is flagged separately.

Tests against a real database

312 test files. No test framework on top, just the built-in node:test. The script scripts/run-tests.mjs brings up a real PostgreSQL, runs prisma migrate reset and runs the tests against it. Slower, but every run applies all migrations from scratch, and there are 23 of them now.

Stack: Next.js 16, React 19, Prisma 7, better-auth. About 92k lines of TS/TSX in src.

Where it is now

Still going: 78 commits in November 2026. Since October I’ve been building fusion, a chat with several models, still at MVP stage.