pgzx
stripe-node
pgzx | stripe-node | |
---|---|---|
8 | 42 | |
345 | 3,719 | |
8.7% | 1.5% | |
8.6 | 9.1 | |
4 days ago | 1 day ago | |
Zig | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pgzx
-
Build your own image gallery CMS
Demo Image Gallery https://image-gallery-cms-with-astro-xata-cloudflare.pages.dev/rishi GitHub Repo https://github.com/rishi-raj-jain/image-gallery-cms-with-astro-xata-cloudflare Astro with Xata https://xata.io/docs/getting-started/astro Astro View Transition Forms https://docs.astro.build/en/guides/view-transitions/#transitions-with-forms Xata File Attachments https://xata.io/docs/sdk/file-attachments#upload-a-file-using-file-apis Xata Transformations https://xata.io/docs/sdk/image-transformations Xata Get Records https://xata.io/docs/sdk/get#the-typescript-sdk-functions-for-querying Cloudflare Workers Limits https://developers.cloudflare.com/workers/platform/limits/#request-limits
-
Create your own content management system with Remix and Xata
Resource Link GitHub Repo https://github.com/rishi-raj-jain/remix-wysiwyg-litellm-xata-vercel Remix with Xata https://xata.io/docs/getting-started/remix Xata File Attachments https://xata.io/docs/sdk/file-attachments#upload-a-file-using-file-apis Remix Route Actions https://remix.run/docs/en/main/discussion/data-flow#route-action Remix Route Loaders https://remix.run/docs/en/main/discussion/data-flow#route-loader
-
Heroku Postgres is now based on AWS Aurora
We're building on top of Aurora at https://xata.io.
Currently our Aurora instances are in private beta. If you're interested in trying it out, drop me an email: [email protected]
-
Building a Retrieval-Augmented Generation Chatbot with SvelteKit and Xata Vector Search
Resource Link GitHub Repo https://github.com/rishi-raj-jain/xata-rag-chatbot SvelteKit with Xata https://xata.io/docs/getting-started/sveltekit Xata Vector Search https://xata.io/docs/sdk/vector-search How to Prompt Llama 2 https://huggingface.co/blog/llama2#how-to-prompt-llama-2 SvelteKit AI SDK https://sdk.vercel.ai/docs/guides/frameworks/sveltekit
-
Build authenticated and paywall pages with Stripe and Xata
A Xata account
-
11 Planetscale alternatives with free tiers
Like Supabase, Xata is a serverless database platform that was founded in 2020 and supports Postgres. It combines the powers of PostgreSQL and ElasticSearch for database operations.
-
Building a Managed Postgres Service in Rust
Consider also the companies and work behind pgrx [0] and pgzx [1]:
[0] https://github.com/pgcentralfoundation/pgrx
[1] https://github.com/xataio/pgzx
- Create PostgreSQL extensions using Zig
stripe-node
-
How to setup Stripe subscriptions with Django and React
Create an account over at https://stripe.com/
-
Playing around with Hotwire ⚡️
In the last update, I got subscriptions working, and integrated with Stripe. I'm using the Pay gem to manage the subscriptions, as it provides a lot of built-in functionality, and the Stripe Ruby Client for other API calls not supported with the Pay gem.
-
How to Integrate Stripe Payment Gateway with nxtbn
An account with Stripe (create one at Stripe's website).
-
Build authenticated and paywall pages with Stripe and Xata
// File: src/pages/api/stripe/webhook.ts import Stripe from 'stripe'; import { getXataClient } from '@/xata'; import type { APIContext } from 'astro'; // Process rawBody from the request Object async function getRawBody(request: Request) { let chunks = []; let done = false; const reader = request.body.getReader(); while (!done) { const { value, done: isDone } = await reader.read(); if (value) { chunks.push(value); } done = isDone; } const bodyData = new Uint8Array(chunks.reduce((acc, chunk) => acc + chunk.length, 0)); let offset = 0; for (const chunk of chunks) { bodyData.set(chunk, offset); offset += chunk.length; } return Buffer.from(bodyData); } // Stripe API Reference // https://stripe.com/docs/webhooks#webhook-endpoint-def export async function POST({ request }: APIContext) { try { const STRIPE_SECRET_KEY = import.meta.env.STRIPE_SECRET_KEY; const STRIPE_WEBHOOK_SIG = import.meta.env.STRIPE_WEBHOOK_SIG; if (!STRIPE_SECRET_KEY || !STRIPE_WEBHOOK_SIG) return new Response(null, { status: 500 }); const stripe = new Stripe(STRIPE_SECRET_KEY, { apiVersion: '2023-10-16' }); const rawBody = await getRawBody(request); let event = JSON.parse(rawBody.toString()); const sig = request.headers.get('stripe-signature'); try { event = stripe.webhooks.constructEvent(rawBody, sig, STRIPE_WEBHOOK_SIG); } catch (err) { console.log(err.message); return new Response(`Webhook Error: ${err.message}`, { status: 400 }); } if (event.type === 'checkout.session.completed' || event.type === 'payment_intent.succeeded') { const email = event.data.object?.customer_details?.email; if (email) { const xata = getXataClient(); const existingRecord = await xata.db.user.filter({ email }).getFirst(); if (existingRecord) { await xata.db.user.update(existingRecord.id, { paid: true }); } else { await xata.db.user.create({ email, paid: true }); } return new Response('marked the user as paid', { status: 200 }); } return new Response('no email of the user is found', { status: 200 }); } return new Response(JSON.stringify(event), { status: 404 }); } catch (e) { return new Response(e.message || e.toString(), { status: 500 }); } }
-
Setting Up Stripe Payments in React
Before you can start accepting payments with Stripe Checkout, you need to create a Stripe account. Visit the Stripe website and sign up for an account. Once you have created an account, you will receive an API key that you will use to authenticate your requests to the Stripe API.
-
Build and deploy a Next.js ecommerce website in 5 steps
Next, we will enable checkout and payment processing through Stripe. First, install the Stripe clients with the following command:
- Where the hell do I create these nice animations
-
Start Charging Customers with Django and DjStripe
Head to Stripe and register if you haven't already. We can use the Stripe API in Test Mode to build the e-commerce app. You can add a bank account and get verified later when you're ready to start collecting real payments.
-
Highlights from Stripe's annual 2023 letter
Stripe published its 2023 annual letter last week. Much like the previous edition it was filled with a lot of interesting nuggets. Stripe has a strong history of being fairly transparent with its practices. These range from engineering challenges through its blogs as well as thought leadership in the financial and entrepreneurship space. I personally like the writing style of this letter as it doesn’t seem corporate or stuffy. Instead it is filled with humorous anecdotes, quirky observations and intelligent historical narratives which make it a compelling read. You can read the letter here → Stripe Annual Letter: 2023
-
From Messy to Memorable: Shorten Your Links, Boost Your Brand
Stripe – payments
What are some alternatives?
sanity-next-stripe-starter - Barebones blog set-up with NextJS and Sanity. Comes with Sanity's inbuilt image handler.
stripe-node-cloudflare-worker-template - Use stripe-node in a Cloudflare Worker.
firebase-mobile-payments - Firebase Cloud Functions to create payments in native Android and iOS applications.
react-stripe-js - React components for Stripe.js and Stripe Elements
Stripe - PHP library for the Stripe API.
stripe-react-native - React Native library for Stripe.
stripe-js - Loading wrapper for Stripe.js
stripe - Go library for the Stripe API.
Stripe - Java library for the Stripe API.
sorbet - A fast, powerful type checker designed for Ruby
stripe-python - Python library for the Stripe API.
stripe-ruby - Ruby library for the Stripe API.