{"_id":"@0bit/gate","name":"@0bit/gate","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.4":{"name":"@0bit/gate","version":"0.1.4","description":"Official 0Gate SDK — Node server, browser embed, and React components. Stripe-style ergonomics for ramps.","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/types/index.d.ts","unpkg":"./dist/browser/0gate.iife.js","jsdelivr":"./dist/browser/0gate.iife.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./browser":{"types":"./dist/types/browser/index.d.ts","import":"./dist/browser/0gate.js","require":"./dist/browser/0gate.umd.cjs"},"./react":{"types":"./dist/types/react/index.d.ts","import":"./dist/react/0gate-react.js","require":"./dist/react/0gate-react.umd.cjs"}},"scripts":{"build":"npm run build:node && npm run build:browser && npm run build:react","build:node":"npm run build:node:esm && npm run build:node:cjs && npm run build:node:types","build:node:esm":"tsc -p tsconfig.node.esm.json","build:node:cjs":"tsc -p tsconfig.node.cjs.json","build:node:types":"tsc -p tsconfig.node.types.json","build:browser":"vite build -c vite.browser.config.ts && tsc -p tsconfig.browser.types.json","build:react":"vite build -c vite.react.config.ts && tsc -p tsconfig.react.types.json","test":"npm run test:node && npm run test:browser && npm run test:react","test:node":"jest -c jest.config.cjs","test:browser":"vitest run -c vite.browser.config.ts","test:react":"vitest run -c vite.react.config.ts","test:watch":"vitest -c vite.browser.config.ts","typecheck":"tsc -p tsconfig.node.json --noEmit && tsc -p tsconfig.browser.json --noEmit && tsc -p tsconfig.react.json --noEmit","clean":"rimraf dist"},"keywords":["0gate","0bit","ramp","crypto","on-ramp","off-ramp","stripe-like"],"engines":{"node":">=18"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"repository":{"type":"git","url":"git+https://github.com/0Bit-org/0bit_core.git","directory":"0Bit_apps/0Gate/0Gate_Sdk"},"publishConfig":{"access":"public"},"sideEffects":false,"devDependencies":{"@testing-library/react":"^16.0.1","@types/jest":"^29.5.13","@types/node":"^22.7.4","@types/react":"^18.3.5","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.1","jest":"^29.7.0","jsdom":"^25.0.0","react":"^18.3.1","react-dom":"^18.3.1","rimraf":"^5.0.10","ts-jest":"^29.2.5","typescript":"^5.6.2","vite":"^5.4.8","vitest":"^2.1.2"},"_id":"@0bit/gate@0.1.4","bugs":{"url":"https://github.com/0Bit-org/0bit_core/issues"},"homepage":"https://github.com/0Bit-org/0bit_core#readme","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-MbrjEfRy00bhDkoAuA6j8Cnwwq4XdfHCWIuv/c40XatqbPuGZ5c2l5f0DRY8S8+25kFf5BcUIoTALs2h0DE9Ew==","shasum":"986954fc3489f866ca5eeed5fb198a255008d37d","tarball":"https://registry.npmjs.org/@0bit/gate/-/gate-0.1.4.tgz","fileCount":63,"unpackedSize":386373,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD61f56KnReLliQi19NdTWo05f6DqfekQuFRb2jHyPaHQIgKTIhiYJPtt/a60gEA63CEfsDC29x+b4G2Yhi2tjaNxk="}]},"_npmUser":{"name":"azanita1","email":"azan@0bit.io"},"directories":{},"maintainers":[{"name":"0bit_","email":"operations@0bit.io"},{"name":"azanita1","email":"azan@0bit.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gate_0.1.4_1780589615100_0.5110478845739637"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-04T16:13:34.913Z","0.1.4":"2026-06-04T16:13:35.256Z","modified":"2026-06-04T16:13:35.544Z"},"maintainers":[{"name":"0bit_","email":"operations@0bit.io"},{"name":"azanita1","email":"azan@0bit.io"}],"description":"Official 0Gate SDK — Node server, browser embed, and React components. Stripe-style ergonomics for ramps.","homepage":"https://github.com/0Bit-org/0bit_core#readme","keywords":["0gate","0bit","ramp","crypto","on-ramp","off-ramp","stripe-like"],"repository":{"type":"git","url":"git+https://github.com/0Bit-org/0bit_core.git","directory":"0Bit_apps/0Gate/0Gate_Sdk"},"bugs":{"url":"https://github.com/0Bit-org/0bit_core/issues"},"readme":"# @0bit/gate\n\nUnified official SDK for the 0Gate ramp API — Node server, browser embed, React components, and Python.\n\n> Renamed from `@0bit/0gate` (npm) / `0bit-0gate` (PyPI). Install the new names below.\n\n## Install\n\n| Surface | Command |\n|---------|---------|\n| **Node (server)** | `npm install @0bit/gate` |\n| **Browser (bundler)** | `npm install @0bit/gate` → `import { GateRamp } from '@0bit/gate/browser'` |\n| **React** | `npm install @0bit/gate` → `import { RampCheckout } from '@0bit/gate/react'` |\n| **Python** | `pip install 0bit-gate` → `from zerobit.gate import GateClient` |\n\n### Python framework extras\n\n```bash\npip install \"0bit-gate[django]\"\npip install \"0bit-gate[fastapi]\"\npip install \"0bit-gate[flask]\"\n```\n\n## Quick start — Node\n\n```ts\nimport { GateClient } from '@0bit/gate';\n\nconst client = new GateClient({ apiKey: process.env.GATE_KEY! });\n\nconst session = await client.sessions.create({\n   amount: '100.00',\n   currency: 'EUR',\n   return_url: 'https://myapp.example/done',\n});\n\nconsole.log(session.client_secret);\n```\n\n## Quick start — Browser\n\n```ts\nimport { GateRamp } from '@0bit/gate/browser';\n\nconst ramp = new GateRamp({\n   publishableKey: 'pk_test_...',\n   clientSecret: session.client_secret,\n});\nawait ramp.mount('#gate-container');\n```\n\nCDN (IIFE):\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/@0bit/gate/dist/browser/0gate.iife.js\"></script>\n<script>\n  const ramp = new GateJS.GateRamp({ publishableKey: 'pk_test_...', clientSecret: 'gsec_...' });\n  ramp.mount('#container');\n</script>\n```\n\n## Quick start — React\n\n```tsx\nimport { RampCheckout } from '@0bit/gate/react';\n\n<RampCheckout\n   publishableKey={import.meta.env.VITE_GATE_KEY}\n   clientSecret={session.client_secret}\n   onSuccess={({ txId }) => router.push('/done')}\n/>\n```\n\n## Quick start — Python\n\n```python\nfrom zerobit.gate import GateClient\n\nclient = GateClient(api_key=\"sk_test_...\")\nsession = client.sessions.create({\n    \"amount\": \"100.00\",\n    \"currency\": \"EUR\",\n    \"return_url\": \"https://myapp.example/done\",\n})\nprint(session[\"client_secret\"])\n```\n\n## SDK naming policy\n\n| Surface | 0Gate | Future products |\n|---------|-------|-----------------|\n| npm | `@0bit/gate` | `@0bit/0pools`, `@0bit/0base` |\n| PyPI | `0bit-gate` | `0bit-0pools`, `0bit-0base` |\n| Python import | `zerobit.gate` | `zerobit.pools`, `zerobit.base` |\n\n## Development\n\n```bash\ncd 0Bit_apps/0Gate/0Gate_Sdk\nnpm ci && npm run build && npm test\npip install -e \".[dev,django,fastapi,flask]\"\npytest\n```\n\n## License\n\nMIT. Part of the [0Bit / 0Gate](https://0bit.io) ramp platform.\n","readmeFilename":"README.md","_rev":"1-d091612787d8ce7371bb2826a54939a8"}