No more writing shitty regexes to police usernames
Details
- External ID
- 46376944
- Source
- HN
- Company
- —
- Product
- No more writing shitty regexes to police usernames
- Website domain
- username.dev
- Launched
- Dec. 24, 2025
- Cohort
- —
- Upvotes
- 19
- Upvotes percentile
- 0.6412213740458015
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
Every product that allows usernames eventually ships the same broken solution. Someone adds a blacklist. Then a regex. Then another regex copied from StackOverflow. It works just long enough to ship, and then `admin`, `support`, city names, brand impersonation, and obvious slurs start leaking through anyway. Everyone knows it’s fragile, but it gets ignored because "it’s just usernames".I’ve had to rebuild this logic across multiple products, and I got tired of pretending it’s a solved problem. So I built *username.dev*, an API that answers a more useful question than "is this taken?" — it tells you what a username actually represents.Instead of returning a boolean, the API classifies usernames into real categories like brands, public figures, places, system-reserved terms, dictionary words, premium handles, and offensive content, and returns structured metadata you can actually make decisions with. That means blocking impersonation without breaking legitimate users, stopping abuse without maintaining massive regex lists, and even monetizing high-demand usernames if that’s part of your product.Under the hood it’s intentionally boring infrastructure: Cloudflare Workers at the edge, KV for fast reads, D1 for usage and analytics, and a simple HTTP endpoint (`GET /check?input=foo`). P95 latency sits around 300ms globally. There’s no ML magic, no black box, and no attempt to be clever — just fast, deterministic classification.Pricing is usage-based and prepaid because subscriptions for infrastructure like this are annoying. There’s a free tier with 1,000 requests and no credit card. Use it, throw it away, or rip the idea off.If you think regex blacklists are "good enough", usernames don’t matter, or this is a trivial problem, you’re probably already shipping bugs — they’re just not loud enough yet.Tell me why this is a bad idea, what edge cases I’m missing, or what you’ve duct-taped together instead.— Sourabh
Enrichment
- Theme
- developer infrastructure and monitoring utilities
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- AI feature
- Project type
- Commercial product
- Normalized one-liner
- username validation without regexes
- Manually corrected
- False
Could you build this?
Yes A username validation tool or library that evaluates strings against reserved words, homoglyphs/Unicode confusable tables, and regex checks is straightforward CRUD/algorithmic logic that an LLM can easily generate.
Discussion
20 comments analyzed.
Competitors mentioned: namevine.com (cross-platform username checking), IP lookup APIs like ipinfo.io (similar service model)
Concerns raised: Static lists cannot keep pace with human creativity in bypassing filters (obfuscation patterns like f0u0c0k), Market size too small if only targeting next-generation Twitter builders, Dictionary approach doesn't capture all profanity variations and obfuscations, Maintaining accuracy across languages and cultural contexts is difficult, Social media platforms are protective of APIs, limiting cross-platform verification capability
Feature requests: Bulk checking for existing usernames across accounts, Cross-platform username lookup (check if handle reserved on FB, IG, Reddit, X, etc.), Context on why a username is flagged (offensive terminology by language, public figure data), Offensive/profanity dictionaries by language with reasoning for moderators, Handle variations detection beyond simple regex/pattern matching
Competitors
Other products that read as similar to this one — 37 launches clear the similarity bar, closest 8 shown.
Attention rank: #10 of 38 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 54 days after the earliest competitor.
- NameValidator · ph · 2026-09-25 · 1 upvotes · similarity 0.38
- A local-first, reversible PII scrubber for AI workflows · hn · 2025-12-24 · 38 upvotes · similarity 0.37
- awesome-instagram-username-checker · github · 2026-09-21 · 17 upvotes · similarity 0.36
- instagram-username-checker-examples · github · 2026-09-21 · 9 upvotes · similarity 0.35
- Leadcop · ph · 2026-09-10 · 1 upvotes · similarity 0.34
- GDPRedirect · hn · 2026-06-24 · 5 upvotes · similarity 0.34
- I instructed AI to create tool to clean AI-generated text: undsh.com · hn · 2026-05-08 · 5 upvotes · similarity 0.34
- Spellsurf · hn · 2026-07-15 · 10 upvotes · similarity 0.34
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.