Catalog npm
PACKAGE EXPLORERView in registry

@0bit/gate

npm

Official 0Gate SDK — Node server, browser embed, and React components. Stripe-style ergonomics for ramps.

0bit0gatecryptooff-rampon-ramprampstripe-like
Versions collected1
Direct dependencies15From release 0.1.4
Last observed20 Oct, 22:05 UTC

README

Current package documentation

@0bit/gate

Unified official SDK for the 0Gate ramp API — Node server, browser embed, React components, and Python.

Renamed from @0bit/0gate (npm) / 0bit-0gate (PyPI). Install the new names below.

Install

SurfaceCommand
Node (server)npm install @0bit/gate
Browser (bundler)npm install @0bit/gate → import { GateRamp } from '@0bit/gate/browser'
Reactnpm install @0bit/gate → import { RampCheckout } from '@0bit/gate/react'
Pythonpip install 0bit-gate → from zerobit.gate import GateClient

Python framework extras

pip install "0bit-gate[django]"
pip install "0bit-gate[fastapi]"
pip install "0bit-gate[flask]"

Quick start — Node

import { GateClient } from '@0bit/gate';

const client = new GateClient({ apiKey: process.env.GATE_KEY! });

const session = await client.sessions.create({
   amount: '100.00',
   currency: 'EUR',
   return_url: 'https://myapp.example/done',
});

console.log(session.client_secret);

Quick start — Browser

import { GateRamp } from '@0bit/gate/browser';

const ramp = new GateRamp({
   publishableKey: 'pk_test_...',
   clientSecret: session.client_secret,
});
await ramp.mount('#gate-container');

CDN (IIFE):

<script src="https://cdn.jsdelivr.net/npm/@0bit/gate/dist/browser/0gate.iife.js"></script>
<script>
  const ramp = new GateJS.GateRamp({ publishableKey: 'pk_test_...', clientSecret: 'gsec_...' });
  ramp.mount('#container');
</script>

Quick start — React

import { RampCheckout } from '@0bit/gate/react';

<RampCheckout
   publishableKey={import.meta.env.VITE_GATE_KEY}
   clientSecret={session.client_secret}
   onSuccess={({ txId }) => router.push('/done')}
/>

Quick start — Python

from zerobit.gate import GateClient

client = GateClient(api_key="sk_test_...")
session = client.sessions.create({
    "amount": "100.00",
    "currency": "EUR",
    "return_url": "https://myapp.example/done",
})
print(session["client_secret"])

SDK naming policy

Surface0GateFuture products
npm@0bit/gate@0bit/0pools, @0bit/0base
PyPI0bit-gate0bit-0pools, 0bit-0base
Python importzerobit.gatezerobit.pools, zerobit.base

Development

cd 0Bit_apps/0Gate/0Gate_Sdk
npm ci && npm run build && npm test
pip install -e ".[dev,django,fastapi,flask]"
pytest

License

MIT. Part of the 0Bit / 0Gate ramp platform.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.4Registry latest4 Jun 202615

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0bit-org/0bit_core

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7541c2fe8546a20b56c4c68165bf0983cb8d2bdfac20d97ca67960ab67aa5434