Catalog npm
Back to packageRELEASE DETAILS

0.1.3

npm

@0bit/0gate

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

0bit0gatecryptooff-rampon-ramprampstripe-like
Published2 Jun 2026
Direct dependencies15
Transitive dependenciesNot calculated

README

Current package documentation

@0bit/0gate

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

Install

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

Python framework extras

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

Quick start — Node

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

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/0gate/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/0gate/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/0gate/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/0gate@0bit/0pools, @0bit/0base
PyPI0bit-0gate0bit-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.

Declared dependencies 17

Native requirements
15 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^29.7.0development
vite
Environment
{
  "local_name": "vite",
  "alias": false,
  "peer_metadata": null
}
^5.4.8development
jsdom
Environment
{
  "local_name": "jsdom",
  "alias": false,
  "peer_metadata": null
}
^25.0.0development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^18.3.1development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^5.0.10development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^2.1.2development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^29.2.5development
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^18.3.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.6.2development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^29.5.13development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.7.4development
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^18.3.5development
@types/react-dom
Environment
{
  "local_name": "@types/react-dom",
  "alias": false,
  "peer_metadata": null
}
^18.3.0development
@vitejs/plugin-react
Environment
{
  "local_name": "@vitejs/plugin-react",
  "alias": false,
  "peer_metadata": null
}
^4.3.1development
@testing-library/react
Environment
{
  "local_name": "@testing-library/react",
  "alias": false,
  "peer_metadata": null
}
^16.0.1development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": {
    "optional": true
  }
}
>=18peer
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": {
    "optional": true
  }
}
>=18peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "00a571c179a8354b574f0d86696b230f120dd0a3",
  "tarball": "https://registry.npmjs.org/@0bit/0gate/-/0gate-0.1.3.tgz",
  "fileCount": 63,
  "integrity": "sha512-v//o9aIIaxcpM1pCt1+GqhNk/BmKSCcCzAT2CvYmcYKANDJfjwO7KGc87TmrV/XUm9VywTejhbHoh00KDZr+KA==",
  "signatures": [
    {
      "sig": "MEYCIQDzu4iaaIP14XcWRmZoqhHGLHq9SiTQOWILngryT5EOBQIhAIpDQ6JCwcY3bo06oCd3x08ALdJ+S0S5fUYEizGUGoNK",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 386307
}

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_version:faeb9bf07cc499ddf8cc889383a7ea72661695ccd19ce54395e7f902ddbb3af6

Other collected versions

0.1.231 May0.1.131 May0.1.031 MayView all collected versions →