ton-better-auth-runtime
Installation
SKILL.md
TON Better Auth Runtime Compatibility
Configure ton-better-auth for different JavaScript runtimes. The package depends on TON libraries (@ton/core, @ton/crypto, @ton/ton) that require Node.js primitives, primarily the global Buffer.
Runtime Requirements Matrix
| Runtime | Buffer Available | Setup Required | Notes |
|---|---|---|---|
| Node.js 18+ | Yes | None | Works out of the box |
| Bun | Yes | None | Buffer provided out of the box |
| Cloudflare Workers | With flag | Enable nodejs_compat |
Requires compatibility flag |
| Vercel Edge Runtime | No | Use Node.js runtime or polyfill | Edge runtime doesn't polyfill Buffer |
| Deno | With import | Import node:buffer |
Most bundlers handle automatically |
| Browser | No | Bundler polyfill required | Use vite-plugin-node-polyfills or webpack fallback |