HackerTrans
TopNewTrendsCommentsPastAskShowJobs

prasoonds

no profile record

Submissions

[untitled]

5 points·by prasoonds·5개월 전·0 comments

Show HN: Stripe-no-webhooks – Sync your Stripe data to your Postgres DB

github.com
66 points·by prasoonds·5개월 전·30 comments

[untitled]

43 points·by prasoonds·5개월 전·0 comments

comments

prasoonds
·5개월 전·discuss
I've used LLMs enough that I have a good sense of their _edges_ of intelligence. I had assumed that reasoning models should easily be able to answer this correctly.

And indeed, Sonnet and Opus 4.5 (medium reasoning) say the following:

Sonnet: Drive - you need to bring your car to the car wash to get it washed!

Opus: You'll need to drive — you have to bring the car to the car wash to get it washed!

Gemini 3 Pro (medium): You should drive.

--

But OpenAI 5.2 reasoning, even at high, told me to walk. My first instinct was, I had underspecified the location of the car. The model seems to assume the car is already at the car wash from the wording. GPT 5.x series models behave a bit more on the spectrum so you need to tell them the specifics. So I asked:

"I want to wash my car. My car is currently at home. The car wash is 50 meters away. Should I walk or drive?"

GPT 5.2 Reasoning (medium):

"Drive—your goal is to get the car to the car wash, and it’s only 50 meters, so a slow, careful drive is simplest.

One small optimization: if you’re worried about starting the car for such a short trip or you want to avoid idling in a line, you can walk over first to check if there’s a queue / if it’s open, then come back and drive the car over when it’s your turn."

Which seems to turn out as I expected.
prasoonds
·5개월 전·discuss
Hey, I’m on mobile right now and can’t remember this off the top of my head. Will check and update in a few hours.
prasoonds
·5개월 전·discuss
Hey, no. We are not dealing with raw card numbers. It’s just a layer on top of the existing stripe SDK that makes using stripe easier. PCI compliance does not kick in here.
prasoonds
·5개월 전·discuss
haha yes, it’s definitely a bit of a silly name. The idea is you the user does not have to deal with the webhooks!
prasoonds
·5개월 전·discuss
That’s a fair point. But of course, this library also helps with other matters - wallets, credits and a code as config based system which can be quite useful too.

And also, if you record all the webhooks events (and a backfill), that basically gives you your whole Stripe data available locally - I’ve actually put it to good use in diagnosing payment failure issues before.
prasoonds
·5개월 전·discuss
Well it’s a silly name, yes. _You_ don’t have to deal with webhooks - it happens in the background and is taken care of by the library!
prasoonds
·5개월 전·discuss
Great question. Basically, you would change your billing.config.ts and update the price.

Then, you run the `sync` command - it matches prices by a composite key: `productId:amount:currency:interval`. Since the amount has changed, it won't find a match for the old price. So, it will create a new price in Stripe and update the Price ID. Your new customers automatically get the new price in the Pricing Table component.

Your old subscriptions stay on the old price - which is still active in Stripe. We haven't added support for migrating these customers to the new price yet but it's in the roadmap!

I would like to add that we've tried making the porcelain / user API for the library to best fit today's commonly uses SaaS pricing models so most actions usually do what you would expect (like this price update) but, it's hard to strike a balance between customizability and the _just works_ factor.
prasoonds
·5개월 전·discuss
Yes, this is one of the bigger use-cases for this library. Lots of folks want custom analytics on their Stripe data and this provides a nice way to do just that.

Let me know how you find it! Happy to implement any fixes and PRs welcome!
prasoonds
·5개월 전·discuss
[flagged]
prasoonds
·5개월 전·discuss
Hi HN, library creator here.

I've linked a demo app linked in the post to try this out:

<https://snw-test.vercel.app>

It uses Clerk for auth and Clerk seems to be having problems:

<https://downdetector.com/status/clerk-inc/>

So if you're having any issues loading the app, you may have to wait a bit!
prasoonds
·5개월 전·discuss
Hey Felix, yes you can.

This library is simply a wrapper around Stripe with easier implementation and some additional primitives (credits / wallets / real-time usage).

So, just as in Stripe, where you would make a new custom plan for, say, an enterprise use, simiarly here, you'd do the same.

Though, I will admit your `billing.config.ts` file will get pretty crowded...

I will think on it and try to come up with a more user-friendly UX for this use case.
prasoonds
·5개월 전·discuss
[dead]
prasoonds
·6개월 전·discuss
Are you seriously asking why Airport infrastructure should support English or is it rhetorical?

If you are not a backwater that doesn't get any travelers, you should cater to tourists who, as a rule, do not speak your language. Even those tourists who do speak a few phrases will absolutely be unable to understand something as complex as a the train spilling up into two before going to the Airport.

> Why should anywhere cater to my failure to learn their language and systems? It’s nice if they do but I don’t expect it.

I certainly don't see this attitude from Germans in Spain.
prasoonds
·8개월 전·discuss
This is really cool! I suck at organizing my filesystem and I've lost track of how many times I had to find _that ONE_ PDF which I KNOW I have but cannot find! This would have solved that many times over.

However, at least for my use-case, this is a very infrequent problem. So, a monthly subscription and the security risk wouldn't be worth it. Though I'm certain there are people who work with files all day and for them, this might be god-send!
prasoonds
·8개월 전·discuss
Right? This one is also very clear ChatGPTese

> That’s not a marginal improvement; it’s a different way of building classifiers.

They've replaced an em-dash with a semi-colon.
prasoonds
·9개월 전·discuss
Somewhat tangential but I’m curious how people are dealing with these new LLM addons (mcp, extensions for vscode, now CC plugins) at big orgs.

I’ve been using it for personal projects but surely large companies have _some_ way they’re trying to prevent security issues? For instance, I remember one company I worked at blocked us from installing VSCode extensions.
prasoonds
·10개월 전·discuss
Offering a perspective from Berlin - a decent-to-good senior engineer goes for $120k-$130k so I'm guessing for Warsaw, you could get someone similar for $90k-100k