Browsers
Lyrelog for websites
One ESM package for the browser: uncaught errors and rejected promises on their own, sessions that survive a reload, and consent that keeps everything in memory until it's given.
import { Lyrelog } from "@lyrelog/js"; export const log = Lyrelog.init({ // ingest-only: it can append events, never read them apiKey: "lyr_ing_...", release: "2.0.1", });
Version 1.0.0. ESM only. A page with a content security policy allows connect-src https://ingest.lyrelog.com.
What it does on the web
Start it and these come with it. Where the platform can't tell by itself, it's a call or a few lines, all in the guide.
- On its ownCrashes and uncaught errorswindow errors and unhandled rejections
- A call or a few linesScreenslog.screen when the page changes
- On its ownSessionsIn sessionStorage, a new one after 30 minutes idle
- On its ownEnvironment, told apartDevelopment on localhost, else production
- A call or a few linesEvents wait when offlineIn memory, up to 10,000 events: lost when the tab closes
- Not thereVerified eventsA page's events arrive unverified; relay them through your server
Browsers, in practice
What the guide says to keep in mind on this platform.
- A hiding page sends at most about 60 KB; the rest waits for it to come back.
- Errors your framework catches: call captureError, for example from an error boundary.
- The ingest key is public on the web: don't treat incoming events as trusted input.
- The Browsers guide
Same project, every platform
Your app, your website and your servers send to one project, and a person's events line up across all of them.
- SwiftiOS, iPadOS, macOS, tvOS, watchOS, visionOS
- AndroidKotlin and Java apps
- React NativeiOS and Android, New Architecture
- FlutteriOS and Android
- NodeServers, workers and functions
- PythonDjango, FastAPI, workers and scripts
- GoServices and command-line tools
- JVMJava and Kotlin servers, Spring and Ktor
- All platforms
See it with your own app's events
Sign up with GitHub, Google or Apple. Your organization starts on Free; move it to Pro whenever you want.