Current collected state Current
Observed since 20 Oct, 22:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0bit/0gate
Official 0Gate SDK — Node server, browser embed, and React components. Stripe-style ergonomics for ramps.
Unified official SDK for the 0Gate ramp API — Node server, browser embed, React components, and Python.
| Surface | Command |
|---|---|
| Node (server) | npm install @0bit/0gate |
| Browser (bundler) | npm install @0bit/0gate → import { GateRamp } from '@0bit/0gate/browser' |
| React | npm install @0bit/0gate → import { RampCheckout } from '@0bit/0gate/react' |
| Python | pip install 0bit-0gate → from zerobit.gate import GateClient |
pip install "0bit-0gate[django]"
pip install "0bit-0gate[fastapi]"
pip install "0bit-0gate[flask]"
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);
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>
import { RampCheckout } from '@0bit/0gate/react';
<RampCheckout
publishableKey={import.meta.env.VITE_GATE_KEY}
clientSecret={session.client_secret}
onSuccess={({ txId }) => router.push('/done')}
/>
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"])
| Surface | 0Gate | Future products |
|---|---|---|
| npm | @0bit/0gate | @0bit/0pools, @0bit/0base |
| PyPI | 0bit-0gate | 0bit-0pools, 0bit-0base |
| Python import | zerobit.gate | zerobit.pools, zerobit.base |
cd 0Bit_apps/0Gate/0Gate_Sdk
npm ci && npm run build && npm test
pip install -e ".[dev,django,fastapi,flask]"
pytest
MIT. Part of the 0Bit / 0Gate ramp platform.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
jestEnvironment{
"local_name": "jest",
"alias": false,
"peer_metadata": null
} | ^29.7.0 | development |
viteEnvironment{
"local_name": "vite",
"alias": false,
"peer_metadata": null
} | ^5.4.8 | development |
jsdomEnvironment{
"local_name": "jsdom",
"alias": false,
"peer_metadata": null
} | ^25.0.0 | development |
reactEnvironment{
"local_name": "react",
"alias": false,
"peer_metadata": null
} | ^18.3.1 | development |
rimrafEnvironment{
"local_name": "rimraf",
"alias": false,
"peer_metadata": null
} | ^5.0.10 | development |
vitestEnvironment{
"local_name": "vitest",
"alias": false,
"peer_metadata": null
} | ^2.1.2 | development |
ts-jestEnvironment{
"local_name": "ts-jest",
"alias": false,
"peer_metadata": null
} | ^29.2.5 | development |
react-domEnvironment{
"local_name": "react-dom",
"alias": false,
"peer_metadata": null
} | ^18.3.1 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5.6.2 | development |
@types/jestEnvironment{
"local_name": "@types/jest",
"alias": false,
"peer_metadata": null
} | ^29.5.13 | development |
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^22.7.4 | development |
@types/reactEnvironment{
"local_name": "@types/react",
"alias": false,
"peer_metadata": null
} | ^18.3.5 | development |
@types/react-domEnvironment{
"local_name": "@types/react-dom",
"alias": false,
"peer_metadata": null
} | ^18.3.0 | development |
@vitejs/plugin-reactEnvironment{
"local_name": "@vitejs/plugin-react",
"alias": false,
"peer_metadata": null
} | ^4.3.1 | development |
@testing-library/reactEnvironment{
"local_name": "@testing-library/react",
"alias": false,
"peer_metadata": null
} | ^16.0.1 | development |
reactEnvironment{
"local_name": "react",
"alias": false,
"peer_metadata": {
"optional": true
}
} | >=18 | peer |
react-domEnvironment{
"local_name": "react-dom",
"alias": false,
"peer_metadata": {
"optional": true
}
} | >=18 | peer |
Source distribution
{
"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
}Observed since 20 Oct, 22:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:faeb9bf07cc499ddf8cc889383a7ea72661695ccd19ce54395e7f902ddbb3af6