跳过导航
Implemented this credits system with Supabase x 🍋
0:00 / 1:14

Implemented this credits system with Supabase x 🍋

jhey ʕ•ᴥ•ʔ

@jh3yy15万 位关注者

在 X 上查看
361 个赞下载原帖

54,054 次观看

Implemented this credits system with Supabase x 🍋 A credit order fires a webhook that updates the database and also sets everything client side with Next.js cookies + server actions 🍪 Here it is end to end! 🚀 No sign-in, etc. required ⭐️

11 条评论

评论来自 X (Twitter) 上的原帖

  • jhey ▲🐻🎈 的头像

    @jh3yy

    Dam – Need to launch the credit system 😅 Kinda glad I've incrementally done this though. Guarded me against fixing in prod too much 🙏

    6 个赞

  • opensourceCM 的头像

    @opensourceCM

    What’s the cost of mistakes in your contracts? If you work with contracts day-to-day, it’s time to automate. Track every detail, streamline workflows ... ✨ Make managing contracts as easy as a few clicks. Visit our new website & book your demo today!

    328 个赞

  • Muneeb ur Rehmam 的头像

    @MuneebR7

    @supabase @lmsqueezy @nextjs What if we delete the cookies 🥲

    2 个赞

  • Fredrik Tibbling 的头像

    @FredrikTibbling

    @supabase @lmsqueezy @nextjs Looks great!

    1 个赞

  • jhey ▲🐻🎈 的头像

    @jh3yy

    @supabase @lmsqueezy @nextjs Should get it all open-sourced in a matter of weeks. Want to get the credits system tested in the wild first before I release the code and people use it 🙏 Don't wanna give people headaches 😅

    10 个赞

  • Mark Witt 的头像

    @markwitt_me

    @supabase @lmsqueezy @nextjs Is this a real project?

    1 个赞

  • jhey ▲🐻🎈 的头像

    @jh3yy

    @supabase @lmsqueezy @nextjs It is! The current version is here 👇 But, the new features mean it'll be open to everyone, not just those with an Open AI key 🔑

    3 个赞

  • parbez 的头像

    @notparbez

    @supabase @lmsqueezy @nextjs we at also started to use @lmsqueezy and it's so op

    1 个赞

  • Vukile Mkhize 的头像

    @Vukile_Mkhize

    @supabase @lmsqueezy @nextjs Noob question…how is the client-side updated with the credits? It doesn’t look like it calls the database for this? My implementation of payment status requires the user to reload the page, which queries the database after a webhook has updated the database.

    1 个赞

  • Brian Haven Kejlberg 的头像

    @thetrompf

    @supabase @lmsqueezy @nextjs You can see the matrix, can't you?

    1 个赞

  • jhey ▲🐻🎈 的头像

    @jh3yy

    @supabase @lmsqueezy @nextjs I think you'll like the button I was making the other day based on this reply 😅

    1 个赞