frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

No as a Service

https://github.com/hotheadhacker/no-as-a-service
64•radeeyate•1y ago

Comments

Haeuserschlucht•1y ago
:)
artogahr•1y ago
:)
blahaj•1y ago
> Rate Limit: 10 requests per minute per IP

I understand that one wants some rate limiting so that others don't just use this as a backend for their own service causing every single request for their service to also create an API request. But this is as simple and resource unintensive as it gets for an HTTP server. 10 requests per minute is just silly.

Also could it be that the limit isn't enforced against the origin IP address but against the whole Cloudflare reverse proxy?

jaywcarman•1y ago
10 requests per minute per IP is plenty enough to play around with and have a little fun. For anything more than that you could (should!) host it yourself.
blahaj•1y ago
So it is just purposefully made to be less useful? Is that part of the joke?

The rate limit still pretty surely isn't applied per IP.

arp242•1y ago
Mate, it's a joke, not a serous service. The only silly thing here is going off on a tangent about the rate limit.
mindtricks•1y ago
If it helps you, think of the rate limiter as the "no" final boss.
choult•1y ago
Well this is something... someone creating a service off the back of a meme that's been flying around my networks for the past two days...
ziddoap•1y ago
Fun idea. I wonder why the rejection messages are repeated so often in the "reasons" file.

"I truly value our connection, and I hope my no doesn't change that." shows up 45 times.

Seems like most of the rejections appear between 30 and 50 times.

khanan•1y ago
Was wondering the same thing.. Probably cruft so it looks impressive at a glance.
Retr0id•1y ago
If you ask LLMs for a long enough list of things, they often repeat entries.
MalbertKerman•1y ago
There are 25 unique responses in that 1000-line file.
justin_oaks•1y ago
Once you remove the duplicates that are different only because of the typos in them, yes, that's correct.
mikepurvis•1y ago
A single large file is also sadness for incorporating suggestions from collaborators as you're always dealing with merge conflicts. Better might be a folder of plain text files, where each can have multiple lines in it, and they're grouped by theme or contributor or something.
spiffyk•1y ago
A folder of plain text files will be sadness for performance. It's a file with basically line-wise entries, merge conflicts in that will be dead easy to resolve with Git locally. It won't be single-click in GitHub, but not too much of a hassle.
Retr0id•1y ago
It's ~fine for performance if you load them once at service startup. But I agree, merging is also no big deal.
mikepurvis•1y ago
In fairness, I doubt most of these kinds of meme projects have a maintainer active enough to be willing to conduct local merges, even if it's "dead easy" to do so.

Maybe then this is really a request for Github to get better/smarter merge tools in the Web UI, particularly syntax-aware ones for structured files like JSON and YAML, where it would be much easier to guess, or even just preset AB and BA as the two concrete options available when both changes inserted new content at the same point. It could even read your .gitattributes file for supported mergers that would be able to telegraph "I don't care about the order" or "Order new list entries alphabetically" or whatever.

cf. https://github.com/jonatanpedersen/git-json-merge

KTibow•1y ago
It might be a weighted random.
ziddoap•1y ago
Might be!

Not the way I'd approach it, but as a joke service, if it works it works.

varun_ch•1y ago
> {"error":"Too many requests, please try again later."}

I guess it still works.

lgl•1y ago
Bug report: when the server is overloaded, the No's are no longer random :)
kenrick95•1y ago
Classic Hacker News hug of death
xnorswap•1y ago
It looks like it's limited to 10 requests per minute, it's less of a hug and more of a gentle brush past.

It's documented as "Per IP", but I'm willing to bet either that documentation is wrong, or it's picking up the IP address of the reverse proxy or whatever else is in-front of the application server, rather than the originator IP.

Why do I think that? Well these headers:

    x-powered-by Express

    x-ratelimit-limit 10

    x-ratelimit-remaining 0

Which means it's not being rate-limited by cloudflare, it's express doing the rate limiting.

And I haven't yet made 10 requests, so unless it's very bad at picking up my IP, it's picking up the cloudflare IP instead.

egberts1•1y ago
Probably all those cookies tipped and triggered the connection rate limiter.
xnorswap•1y ago
I'm not following you at all?
NotMichaelBay•1y ago
It's so elegant. Even in failure, it's still operational.
riquito•1y ago
Love it, it's brilliant, but I think the rate limiting logic is not doing what the author really wants, it actually costs more cpu to detect and produce the error than returning the regular response (then my mind goes on how to actually over optimize this thing, but that's another story :-D )
hotheadhacker•1y ago
Rate limiting has been removed
Retr0id•1y ago
It could be genuinely useful for testing HTTP clients if it had a wider array of failure modes.

Some ideas:

- All the different HTTP status codes

- expired/invalid TLS cert

- no TLS cipher overlap

- invalid syntax at the TLS and/or HTTP level

- hang/timeout

- endless slowloris-style response

- compression-bomb

- DNS failure (and/or round-robin DNS where some IPs are bad)

- infinite redirect loop

- ipv6-only

- ipv4-only

- Invalid JSON or XML syntax

zikani_03•1y ago
Not exactly what you are asking for, but reminded me that Toxiproxy[0] exists if you want to test your applications or even HTTP clients against various kinds of failures:

[0]: https://github.com/Shopify/toxiproxy

deanputney•1y ago
Not sure why, but reasons.json is mostly duplicates (as many as 50!) of the same 25 responses: https://gist.github.com/deanputney/4143ca30f7823ce53d894d3ed...

It'd be easier to add new ones if they were in there a single time each. Maybe the duplication is meant to handle distribution?

finnh•1y ago
ah, yes, the "memory is no object" way of obtaining a weighted distribution. If you need that sweet sweet O(1) selection time, maybe check out the Alias Method :)
justin_oaks•1y ago
Knowing that there are only 25 responses, it makes it all the more funny that rate limiting is mentioned.

And you can host the service yourself! Hard pass. I'll read the 25 responses from your gist. Thanks!

thih9•1y ago
Example responses:

https://raw.githubusercontent.com/hotheadhacker/no-as-a-serv...

anonymousiam•1y ago
Looks impressive, but out of the 1000 possible responses, only 26 are unique.
qrush•1y ago
Oh great, it's Balatro's Wheel of Fortune card as a Service (WoFaaS)
hombre_fatal•1y ago
I made a lot of things like this as a noob and threw them up on github.

As you gain experience, these projects become a testament to how far you've come.

"An http endpoint that returns a random array element" becomes so incredibly trivial that you can't believe you even made a repo for it, and one day you sheepishly delete it.

blahaj•1y ago
I don't think things have to be impressive to be shown. A funny little idea is all you need, no matter how simple the code. Actually I find exactly that quite neat.
TehCorwiz•1y ago
I think you'll enjoy this better: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...
seabass•1y ago
{"error":"Too many requests, please try again later."}

a missed opportunity for some humor

richrichardsson•1y ago
{"error":"Computer says no."}
readthenotes1•1y ago
Beats "I have a headache"
n8m8•1y ago
inb4 someone genuinely doesn't understand why you wouldn't do this with an LLM
macleginn•1y ago
A worthy spiritual disciple of the Journal of Universal Rejection (https://www.universalrejection.org/)
svilen_dobrev•1y ago
nice. Reminds me of BOFH (Bastard operator from Hell) . And those box-like calendars with page-per-day with some excuse^w^w tip on each :)

https://bofh.bjash.com/bofh/bofh1.html

hotheadhacker•1y ago
The API rate limiting has been removed.

Could development economics be more useful?

https://www.noahpinion.blog/p/could-development-economics-be-more
1•paulpauper•57s ago•0 comments

A simple point about diversification

https://marginalrevolution.com/marginalrevolution/2026/05/a-simple-point-about-diversification.html
1•paulpauper•1m ago•0 comments

Dirty Frag: Universal Linux LPE

https://github.com/V4bel/dirtyfrag
1•unbeli•2m ago•0 comments

Digg Is Back (Again)

2•basket278•3m ago•0 comments

NocTUI – Lightweight C Library for Building Terminal User Interfaces (TUIs)

https://github.com/UsboKirishima/noctui
1•333revenge•4m ago•0 comments

Real-Time Vibrotactile Stimulation and Inter-Brain Connectivity in Partner Dance

https://dl.acm.org/doi/10.1145/3731459.3773332
1•bookofjoe•5m ago•0 comments

Arena Physica

https://www.arenaphysica.com
1•skogstokig•6m ago•0 comments

Notes on Tanya M. Luhrmann's Book 'How God Becomes Real'

https://michaelnotebook.com/luhrmann/index.html
1•benbreen•6m ago•0 comments

Divorce Rates by Occupation

https://flowingdata.com/2026/05/07/divorce-and-occupation-2026/
3•tevon•12m ago•0 comments

Internet Archive Switzerland: Expanding a Global Mission to Preserve Knowledge

https://blog.archive.org/2026/05/06/internet-archive-switzerland-expanding-a-global-mission-to-pr...
3•rbanffy•14m ago•0 comments

Everything Vault – a local-first Markdown knowledge system for LLMs

https://github.com/AntlerForge/everything-vault
3•AntlerForge•16m ago•0 comments

From MemSQL to HorizonDB, an Engineer's Journey with Adam Prout

https://talkingpostgres.com/episodes/from-memsql-to-horizondb-an-engineers-journey-with-adam-prout
1•clairegiordano•19m ago•0 comments

When is your birthday? – The Math Behind Hash Collisions

https://0xkrt26.github.io/math_behind_security/2026/05/08/birthday-problem.html
1•denismenace•20m ago•0 comments

Beyond Human Syntax – The Logic of Future Coding Agents

https://www.thebigdatablog.com/nela-beyond-human-syntax-the-logic-of-future-coding-agents/
3•heikowag•21m ago•0 comments

AI, the Poor, and the Ignorant

https://user8.bearblog.dev/ai-the-poor-and-the-ignorant/
1•James72689•22m ago•0 comments

Using Claude Code: The Unreasonable Effectiveness of HTML

https://twitter.com/trq212/status/2052809885763747935
3•tchalla•24m ago•0 comments

Real-time collaboration will not ship in WordPress 7.0

https://make.wordpress.org/core/2026/05/08/rtc-removed-from-7-0/
1•pentagrama•26m ago•0 comments

A 3D explorer of the Bitcoin blockchain

https://blockparty-omega.vercel.app/
1•dca_mindset•26m ago•0 comments

1k-year-old archaeological site bulldozed during construction of border wall

https://www.theartnewspaper.com/2026/05/05/border-wall-construction-bulldozes-archaeological-site
1•YeGoblynQueenne•27m ago•0 comments

Félix Guattari – The Image Machine (1990)

https://www.e-flux.com/notes/6783490/the-image-machine
2•bondarchuk•27m ago•0 comments

Frontier models refuse to help organizers, so we built our own activist AI

https://www.outcryai.com/research/how-to-create-activist-ai
2•micahwhite•27m ago•0 comments

Rolo: Relationship Intelligence Tool

https://rolo.agentschool.io/
2•amahjoor•28m ago•0 comments

If You Read One Screenwriting Book, Read This

https://jamesgarside.substack.com/p/if-you-read-one-screenwriting-book
1•monkeymagick•29m ago•0 comments

Classification of Amino Acids

https://www.khanacademy.org/test-prep/mcat/chemical-processes/amino-acids-peptides-proteins-5d/v/...
1•kamaraju•31m ago•0 comments

A New Era of Security: Frontier AI Defense

https://www.paloaltonetworks.com/blog/2026/05/frontier-ai-defense/
1•yusufozkan•32m ago•0 comments

She had four kids with Elon Musk. Now she's central to his courtroom fight

https://www.washingtonpost.com/technology/2026/05/08/shivon-zilis-elon-musk-trial/
3•1vuio0pswjnm7•33m ago•1 comments

Notes from Code with Claude 2026

https://chrisebert.net/notes-from-code-with-claude-2026/
2•rmason•33m ago•0 comments

The nightmare of changing your internet bundle

https://laze.net/2026/05/07/the-nightmare-of-changing-your.html
1•speckx•35m ago•0 comments

Bring your own init: PID 1 handoff

https://microsandbox.dev/blog/bring-your-own-init
1•toksdotdev•37m ago•0 comments

The Drones Coming to Schools to Stop Mass Shootings

https://www.wsj.com/business/a-startup-is-supplying-drones-to-high-schools-to-stop-mass-shootings...
2•rmason•38m ago•1 comments