@bilyai/js gives you one small browser SDK for loading Bily and sending events. It supports ESM, CommonJS, and TypeScript with no runtime dependencies.
Install Bily
Use Node.js 16 or newer for build tooling. You can call every public method during server rendering; tracking begins only when the code runs in a browser document.
Choose a method
Use exported types
See event names and payload types for the complete definitions.
Start now, verify when needed
You can call track() before ready() resolves. The SDK keeps early calls in a bounded queue, then delivers them in order after Bily loads.
Use one Bily loader. Let init() create it unless your framework guide reserves one script element for the SDK to reuse. Do not add another unmanaged tag.