35 comments

  • gs17 an hour ago

    I'm not understanding your categories. Every dictionary word is flagged? It seems any first or last name is a "public_figure" ("apple" is a "public_figure" and also a "brand", I guess that means there's someone named Apple? Tim Apple?)?

    It "blocks profanity", but "shithead", "assfucker", etc. are allowed (not to mention obfuscating a restricted term even slightly, e.g. "sh1t")? Yes, the Scunthorpe problem exists, but you can do better, and should if you're expecting people to pay to wait 500ms.

    Something that detects these sorts of things very well could actually be worth paying for, although it still would probably be better off as a library.

      choraria 41 minutes ago

      Thanks and this gives me more perspective too. Here's what I'm hearing:

      - need to improve categorisation (some are miscategorised, some categories don't make sense) - better list; more subsets to block (fair and very true) — this is an evolving list and so I'll work on constantly adding more to it (currently has ~1.7million records; will go to 2.5 in the next few days) - latency is a killer

      Again, I said it in another comment too, I'm pretty happy with this (tears on the inside) because the problem at least is validated in some way.

      I just need to do better in terms of solutioning; which, IMO, is doable.

  • nlh an hour ago

    I love that you’re tackling this problem, and congrats on launching and getting this on HN!

    This does feel like a real problem. The thing that concerns me (and likely other devs here) is that it adds an additional remote API dependency for a very core part of a system when a lot of people are trying to keep those dependencies to an absolute minimum. When your service goes down (not if), everyone who’s dependent on you will not be able to register new users, etc.

    Is there any way you can offer this as a library instead? You deserve to get paid of course - maybe provide the library and initial data and charge for updates / premium checks, something like that.

      choraria an hour ago

      Super valid and fair. Thanks for taking the time and writing this too. In tears (on the inside) because of some validation around problem statement. I am exploring providing this as a pay-once service too, where you get a point-in-time CSV/JSON export and then folks pay to update data. Felt like too much work for the first release so didn't get to it.

      As for the original concern though, here's some thoughts: You may just use it to flag (not act) in an async way. This way, you can just alert/monitor and decide later whether or not to take any actions while keeping the flow non-blocking. Another approach would be to run it against existing handles to see what opportunities exist (ex: premium usernames, impersonators etc.).

      BUT, thanks again for the input. I'll definitely make this happen!

  • tommy_axle an hour ago

    Ok so taylorswift is reserved but taylor_swift and realtaylorswift can be used? It seems like impersonation would still be a problem.

      choraria 34 minutes ago

      I thought about this and decided against complicating ways in which this can be restricted. Honestly, this is a super simple challenge to solve. Perhaps I should introduce this as an API parameter to detect variations. That way, not just taylor_swift but t_aylorswift, ta_ylorswift etc. could also be detected and flagged.

      As for realtaylorswift, I thought about that too. I don't think — and this is my personal opinion, obviously — most platforms wouldn't want to restrict this because then it really becomes unmanageable. I could obviously be wrong though and these could very easily be introduced to the API also (i.e. detect obvious username patterns) and totally open to adding that as an API parameter too.

        chaps 27 minutes ago

        Friend, with respect, these "simple challenge"s really start to add up very quickly, especially after edge cases.

        Highly recommend you read this and similar posts: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...

          gs17 9 minutes ago

          > I can safely assume that this dictionary of bad words contains no people’s names in it.

          This is a big one for this kind of project, and I've never been sure how usernames for people named Kike should be handled.

      chaps an hour ago

      Hah no kidding. I tried just, "bill_gates" --

        {
          "username": "bill_gates",
          "isReserved": false,
          "isDeleted": false,
          "categories": []
        }
      
      what's the point of this thing...?
        gs17 an hour ago

        It's odd that they focused so much on "it's better than regexes" when it doesn't handle these cases where a regex would do well.

          choraria 31 minutes ago

          The comment on regex was really because that's what I did when I built internal reserved usernames list of 2 of my URL shortener projects. I love regex, btw. BUT, I don't think they cover all of what we need with usernames specifically. Shared some more insights on the thread about variations too (like underscores etc.).

        bpt3 38 minutes ago

        Why would I want billgates to be reserved in the first place, unless I'm Microsoft?

        And the definition of a "public figure" is absurdly broad and inconsistent. Some very common names are flagged as reserved for what are extremely minor celebrities at best (like an assistant coach of a college basketball team, or a actor with barely any formal credits as examples, and some other obscure athletes are marked as reserved while others are not).

  • nicpottier an hour ago

    Congrats on the launch!

    Do you expect / want this to be a business? This feels like the kind of thing where anybody big enough to pay for it will build it in house. And your pricing seems so cheap that even if you do win some it won't be enough.

    Genuine curiosity but 300ms seems slow? Am I missing something? How big is the blacklist?

      choraria an hour ago

      Thanks and I do appreciate the comment too.

      I'm a bit unsure about it's future as a business but for now, hoping it becomes my first app with some paying users. I typically think small scale but you're right. I suppose most big companies already have an in-house way to deal with it.

      Idea behind this was super charged because there wasn't a global reserve list already available for folks to access.

      On the latency, I'll work on improving it. Currently, the list (not a blacklist :P) is about 1.7 million records. I suspect it to go to 2.5M in the next few days. I should probably stop using Cloudflare Workers, KV and D1 to instantly improve on that.

  • Dumbledumb an hour ago

    So, I can’t use my legal name as a username because some random town with a few thousand people is named the same?

      choraria an hour ago

      That would depend on the folks implementing the API

      In it's current state, I'd look at the API to check for reserved / premium names (or something that's profane).

      If it makes sense contextually: imagine if you were building the next Twitter. I'm guessing you'd want to have a way to charge for premium names and in-turn need a way to detect what's premium. For the most part, first and last names are pretty premium and people pay (they do!) for such usernames.

  • cracki an hour ago

    Site is AI-generated. The post to HN is AI-generated.

    As other comments point out, lots of holes.

    I think nobody should pay for that.

      choraria 23 minutes ago

      - site is AI generated: yes. I'm NOT a developer. I vibe-coded it using Cursor and other AI tools - post is AI generated: not 100%. I wrote the whole thing myself (promise). The sentiment is real, so is all the context. I just asked AI to polish it. Had made too many typos in my original text. To avoid being labelled as "AI content", I now make video responses for the most part. Please check my twitter (same username) and you'll see. - lots of holes: you bet! what I'm happy about is though that the problem statement is validated to an extent. I see multiple people ack'ing that the problem is real. It's just that my solution is bad. I can improve it and I will. - paying: yes, you're right. IMO, they should try first. complain, complain, complain so I can get to fixing issues (like from many of the comments here) and only if they need to make more API requests, they could then choose to pay

      WDYT?

  • eptcyka an hour ago

    I can easily generate valid yet foul names that I’d prefer to not allow if I was into censoring usernames.

      choraria 28 minutes ago

      Tell me about 'em. Will add to the list. I doubt I'll be able to stop ALL variations but I really am determined to manually keep this list updated as best as possible. Currently at 1.7 million records; will be at around 2.5 million in the coming months and I suspect this will just keep increasing.

  • maxall4 an hour ago

    I can’t tell if this is some complex joke or a real product. This is literally string.contains() as a service.

    Edit: 300ms?!

      choraria 13 minutes ago

      Not a joke (I'm taking this in the spirit intended) but I can see there are TONS of things I need to be improving on:

      1. latency: my original goal was to make it sub-10s but with checking for auth, cold starts, the actual lookup, couldn't get it to do better than 2-300ms. I need to improve this though and I will. 2. increased list size: currently, the lookup happens across 1.7million records (will go up to 2.5m in the next days/weeks) BUT I don't think that would ever cover ALL scenarios. 3. better categorisation

      gs17 an hour ago

      I think there's some value in providing a huge dictionary of things to test against, with tagging for what things are to help filter. This doesn't do a great job at it, and it would make 100x more sense as a library, but it's a little more than just string.contains().

        maxall4 an hour ago

        Sure, but I’m not convinced that producing a blacklist and filtering system is that difficult. More importantly, it’s little things like this that slowly and insidiously degrade the user experience. Sure it starts with one 300ms API call, maybe most people won’t notice. But when you reach for solutions like this to every minor technical problem, the next thing you know it takes 5 seconds to sign-up.

          choraria 10 minutes ago

          My take on latency in general is this: You may just use the API to flag (not act) in an async way. This way, you can just alert/monitor and decide later whether or not to take any actions while keeping the flow non-blocking. Another approach would be to run it against existing handles to see what opportunities exist (ex: premium usernames, impersonators etc.).

            gs17 8 minutes ago

            Sounds like a good opportunity for some kind of batching feature.

  • delduca an hour ago

    Hmm… I do know, certain usernames in one language can have a bad meaning in others

  • bpt3 an hour ago

    Why do I care as a website owner whether someone uses a brand name (e.g. cocacola) as their username on my site?

    Same question, but for place names which seems completely innocuous?

    Instead of us telling you why this is a bad idea, can you tell us why this is a good idea and what bugs we are shipping currently that this prevents?

      choraria 3 minutes ago

      Fair. I suppose most newer platforms may not think too much about it. So here's the pitch though: Imagine you're building the next Twitter (or, you know the platform has the potential to become the next Twitter). Knowing what we know now about social media platforms, where, users are open to paying for premium usernames (ex: @apple, @cocacola, @media etc.), it would be nice to at least flag/know if there are folks trying to reserve with these usernames. You could decide later / async what to do about it but you'll at least have a way to flag. Similarly, you can also avoid profanity or abusive words from seeping in the platform also. You may want to restrict/block 'em outright.

      As for bugs: what I see happening now is folks either have a static list (which is already bad; not a bug) or have pattern-matching to avoid these (which isn't full proof). Regex/pattern matching can only help in cases where we have "real" or "try" or "something" as a pre/postfix. More complex cases but don't really identify a wide range of premium / reserved names. IMO, for this, we will need a dictionary of sorts, which is what I'm hoping to achieve with this API.

      It's a giant manual list. I'm a human maintaining it. Just need to do better in terms of the API / deliverability side of things.

      gs17 21 minutes ago

      I could see social-media-ish websites not wanting those names to prevent impersonation. They'd be deciding if they want to risk friction when a big name joins the platform (@cocacola needs Coca-Cola to verify) or risk threats from that big names' legal department (when @cocacola gets registered by someone who just posts furry porn of their mascot bear). It could just set a flag to require the account to verify or be renamed.

        bpt3 9 minutes ago

        I get the argument in theory, but then I'll just register coca-cola (which is available), cocacola_furry (which is available), C0CAC0LA (which is available), etc.

        You're signing up to play a game you can't win preemptively IMO.

        As an aside, cocacola is also "available", despite being listed as an example of what you don't want to allow on the homepage and presumably would be flagged as a reserved brand name handle by this service.

  • dsfdsfdsffdsfs an hour ago

    Credits need to expire in X months. That way you don't have to keep the service running if it turns out not to get traction.

  • CamJN an hour ago

    I hate to say it but checking if a string is ~= some identifier might actually be something an llm might be useful for, since it doesn't need to be 100% accurate and does need to evaluate the string against a massive number of potential transformations.

      bpt3 an hour ago

      Yes, a classifier based on similarity metrics would be more useful than whatever is going on behind the scenes here, which seems to be completely based on string matching and a not very creative dictionary of offensive terms.

  • sampli an hour ago

    I want all the SaaS in my stack