我建了一个零npm依赖的短码市场(Node.js 22,无框架)

2026年8月5日1 次浏览来源:Dev.to阅读原文

正文保留英文原文(机翻易破坏代码与排版),标题/摘要已提供中文

I've been going back and forth on whether to share this — it's a pretty niche idea, and I wasn't sure if it's clever or just weird.

But here's the technical side of it, which I figure this crowd might actually appreciate regardless.

What I built: claimo.me — you claim a short code (2-4 letters, or a custom name) for a one-time fee, no subscription, permanently yours.

Each code is configurable as a redirect link, a QR code, or a small profile card.

There's also a "Claimo Map" — every possible code is a clickable pixel you can browse, inspired by the old Million Dollar Homepage.

The part I actually want to talk about here: it's zero-dependency.

No Express, no ORM, no build step — just Node.js 22+'s built-in http module and the new built-in node:sqlite.

I wanted to see how far "just the standard library" actually gets you for something real — payments (Stripe), admin moderation, rate limiting, a live interactive map UI, the works.

Some things that surprised me building it this way: node:sqlite's DatabaseSync is genuinely pleasant to use, but it's missing conveniences like better-sqlite3's .transaction() helper — I ended up writing a small manual BEGIN/COMMIT/ROLLBACK wrapper.

Routing without a framework is maybe 40 lines of code and I stopped missing Express within a day.

The real cost isn't runtime performance, it's losing the ecosystem — anything I'd normally npm install for free (input validation, rate limiting, even basic templating) I had to hand-roll.

Some of that was genuinely good for me, some of it I'd reconsider on a bigger project.

Business side, since half of you will ask: it's a real registered business, payments go through Stripe only (I never touch card data), no crypto, nothing weird.

The paid tiers fund keeping a free short-link tier alive too.

Honestly — is the zero-dependency thing a genuinely good call for a real production app, or am I just going to regret it in a year?

And separately: does "own a short code" as a product idea make any sense to you, or does it feel like a solution looking for a problem?

Happy to go deep on any part of the stack. claimo.me — and if you want to actually poke at it, PROMO50 at checkout gives free Countryside-tier codes (normally €2), just for honest feedback.

分享