frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Amla Sandbox – WASM bash shell sandbox for AI agents

https://github.com/amlalabs/amla-sandbox
93•souvik1997•5h ago•63 comments

Show HN: Kolibri, a DIY music club in Sweden

https://kolibrinkpg.com/
118•EastLondonCoder•1d ago•24 comments

Show HN: Cicada – A scripting language that integrates with C

https://github.com/heltilda/cicada
44•briancr•8h ago•24 comments

Show HN: We added memory to Claude Code. It's powerful now

https://supermemory.ai/blog/we-added-supermemory-to-claude-code-its-insanely-powerful-now/
2•dhravya•3h ago•0 comments

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

https://github.com/pretzelai/stripe-no-webhooks
30•prasoonds•3h ago•4 comments

Show HN: Mystral Native – Run JavaScript games natively with WebGPU (no browser)

https://github.com/mystralengine/mystralnative
40•Flux159•3d ago•14 comments

Show HN: Xmrcheckout – self-hosted, non-custodial Monero checkout

https://xmrcheckout.com
3•pigless72•3h ago•1 comments

Show HN: Apple II(e) emulator in Rust for native and web

https://github.com/chrismoos/emu
3•chrismoos•4h ago•0 comments

Show HN: HN Zeitgeist – what 40M HN comments reveal about 20 years of tech

https://hn.mrzepa.com/
3•cigol•4h ago•0 comments

Show HN: Julie Zero – my screen-aware desktop AI that works out of the box

https://github.com/Luthiraa/julie
4•luthiraabeykoon•4h ago•0 comments

Show HN: Ourguide – OS wide task guidance system that shows you where to click

https://ourguide.ai
51•eshaangulati•4d ago•22 comments

Show HN: Claude Commander: runtime model switching in Cloud Code via hooks/API

https://github.com/sstraus/claude-commander
2•stefanostraus•5h ago•0 comments

Show HN: ShapedQL – A SQL engine for multi-stage ranking and RAG

https://playground.shaped.ai
77•tullie•3d ago•22 comments

Show HN: I'm building an AI-proof writing tool. How would you defeat it?

https://auth-auth.vercel.app/
21•callmeed•2d ago•28 comments

Show HN: The HN Arcade

https://andrewgy8.github.io/hnarcade/
345•yuppiepuppie•2d ago•114 comments

Show HN: SHDL – A minimal hardware description language built from logic gates

https://github.com/rafa-rrayes/SHDL
46•rafa_rrayes•2d ago•21 comments

Show HN: LemonSlice – Upgrade your voice agents to real-time video

127•lcolucci•3d ago•130 comments

Show HN: Autonomous recovery for distributed training jobs

https://docs.tensorpool.dev/features/agent
9•tsvoboda•1d ago•3 comments

Show HN: Build Web Automations via Demonstration

https://www.notte.cc/launch-week-i/demonstrate-mode
32•ogandreakiro•3d ago•20 comments

Show HN: A MitM proxy to see what your LLM tools are sending

https://github.com/jmuncor/sherlock
215•jmuncor•2d ago•119 comments

Show HN: Shelvy Books

https://shelvybooks.com
48•tekkie00•1d ago•17 comments

Show HN: I built a small browser engine from scratch in C++

https://github.com/beginner-jhj/mini_browser
144•crediblejhj•2d ago•45 comments

Show HN: Transcribee: YouTube transcriber that builds a knowledge base

https://github.com/itsfabioroma/transcribee
17•ofabioroma•1d ago•3 comments

Show HN: VCluster Free – Free K8s Multi-Tenancy with Virtual Clusters

https://www.vcluster.com/blog/launching-vcluster-free-get-enterprise-features-at-no-cost
16•gentele•1d ago•3 comments

Show HN: One Human + One Agent = One Browser From Scratch in 20K LOC

https://emsh.cat/one-human-one-agent-one-browser/
314•embedding-shape•3d ago•151 comments

Show HN: We Built the 1. EU-Sovereignty Audit for Websites

https://lightwaves.io/en/eu-audit/
104•cmkr•3d ago•88 comments

Show HN: The Freak Circus Game Online – Yandere Horror Visual Novel

https://the-freakcircus.com/
3•tomstig•14h ago•1 comments

Show HN: Pinecone Explorer – Desktop GUI for the Pinecone vector database

https://www.pinecone-explorer.com
21•arsentjev•2d ago•3 comments

Show HN: Cua-Bench – a benchmark for AI agents in GUI environments

https://github.com/trycua/cua
40•someguy101010•4d ago•8 comments

Show HN: SimpleSVGs – Free Online SVG Optimizer Multiple SVG Files at Once

https://www.simplesvgs.online/
7•firtaet•1d ago•0 comments
Open in hackernews

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

https://github.com/pretzelai/stripe-no-webhooks
30•prasoonds•3h ago
Hey HN,

stripe-no-webhooks is an open-source library that syncs your Stripe payments data to your own Postgres database: <https://github.com/pretzelai/stripe-no-webhooks>

Here's a demo video: <https://youtu.be/cyEgW7wElcs>

It creates a webhook endpoint in your Stripe account to forward webhooks to your backend where a webhook listener stores all the data into a new stripe.* schema. You define your plans in TypeScript, run a sync command, and the library takes care of creating Stripe products and prices, handling webhooks, and keeping your database in sync. We also let you backfill your Stripe data for existing accounts.

It supports pre-paid usage credits, account wallets and usage-based billing. It also lets you generate a pricing table component that you can customize. You can access the user information using the simple API the library provides:

  billing.subscriptions.get({ userId });
  billing.credits.consume({ userId, key: "api_calls", amount: 1 });
  billing.usage.record({ userId, key: "ai_model_tokens_input", amount: 4726 });
Effectively, you don't have to deal with either the Stripe dashboard or the Stripe API/SDK any more if you don't want to. The library gives you a nice abstraction on top of Stripe that should cover ~most subscription payment use-cases.

Let's see how it works with a quick example. Say you have a billing plan like Cursor (the IDE) used to have: $20/mo, you get 500 API completions + 2000 tab completions, you can buy additional API credits, and any additional usage is billed as overage.

You define your plan in TypeScript:

  {
    name: "Pro",
    description: "Cursor Pro plan",
    price: [{ amount: 2000, currency: "usd", interval: "month" }],
    features: {
      api_completion: {
        pricePerCredit: 1,              // 1 cent per unit
        trackUsage: true,               // Enable usage billing
        credits: { allocation: 500 },
        displayName: "API Completions",
      },
      tab_completion: {
        credits: { allocation: 2000 },
        displayName: "Tab Completions",
      },
    },
  }
Then on the CLI, you run the `init` command which creates the DB tables + some API handlers. Run `sync` to sync the plans to your Stripe account and create a webhook endpoint. When a subscription is created, the library automatically grants the 500 API completion credits and 2000 tab completion credits to the user. Renewals and up/downgrades are handled sanely.

Consume code would look like this:

  await billing.credits.consume({
    userId: user.id,
    key: "api_completion",
    amount: 1,
  });
And if they want to allow manual top-ups by the user:

  await billing.credits.topUp({
    userId: user.id,
    key: "api_completion",
    amount: 500,     // buy 500 credits, charges $5.00
  });
Similarly, we have APIs for wallets and usage.

This would be a lot of work to implement by yourself on top of Stripe. You need to keep track of all of these entitlements in your own DB and deal with renewals, expiry, ad-hoc grants, etc. It's definitely doable, especially with AI coding, but you'll probably end up building something fragile and hard to maintain.

This is just a high-level overview of what the library is capable of. It also supports seat-level credits, monetary wallets (with micro-cent precision), auto top-ups, robust failure recovery, tax collection, invoices, and an out-of-the-box pricing table.

I vibe-coded a little toy app for testing: <https://snw-test.vercel.app>

There's no validation so feel free to sign up with a dummy email, then subscribe to a plan with a test card: 4242 4242 4242 4242, any future expiry, any 3-digit CVV.

Screenshot: <https://imgur.com/a/demo-screenshot-Rh6Ucqx>

Feel free to try it out! If you end up using this library, please report any bugs on the repo. If you're having trouble / want to chat, I'm happy to help - my contact is in my HN profile.

Comments

tonyx•2h ago
Interesting! Is there an escape hatch to drop down to raw Stripe primitives if someone needs a feature you haven’t modeled yet?

This feels like something many teams eventually build internally — curious how you’re thinking about long-term API surface + compatibility with new Stripe features.

prasoonds•2h ago
Hey Tony,

yes, the library is ~mostly a wrapper around Stripe with a convenience layer of a simple API that works on the your local DB. So, you will always be able to call Stripe as per usual.

The idea here was to fill the gaps left by the official Stripe implementation:

- direct access to your Stripe data in your own DB - this lets you get around Stripe API rate limits and do custom aggregations (user dashboards? I love what Cursor has done on their usage dashboard for eg)

- easy support for multiple credit types, topups and auto-topups

- usage billing that's much simpler to use (meters, usage products and prices are not exposed to the users)

Other than these basic primitives, everything else is just Stripe under the hood. You can and SHOULD use Stripe SDK for any write operations, for eg.

> This feels like something many teams eventually build internally ...

Exactly right - we've talked to so many teams who has mostly vibe-coded something fragile that mostly works for them and the pattern is common enough that we thought this separate library would be widely useful.

felix_eckert•2h ago
Looks really interesting. Can you do custom plans for some users?
prasoonds•2h ago
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.