# REVU Developers - Full Documentation
> Official documentation for the REVU SDKs. One-line autocapture, first-party identity, and durable batched transport. Built so any developer, LLM, or AI agent can integrate REVU effortlessly.
---
# Web SDK: Overview
Source: https://developers.revu.ai/web/
# Documentation
The reference manual for `@revu-ai/core`. The [package README](/web/)
covers the pitch, install, and your first event in 60 seconds; this tree
covers everything else.
## A short tour
If you have five minutes, read in this order:
1. **[Concepts](/web/concepts/)** for the mental model: two ids
(`anonymous_id` for the device, `user_id` for the person), one
rolling session, and one canonical event shape that the rest of the
SDK is just plumbing for.
2. **[Public API](/web/api/)** for the public surface you will actually
call: the methods `init`, `capture`, `identify`, `alias`, `reset`,
`flush`, and `use`, plus the `version` property. Most hosts only ever
touch `init`, `identify`, `capture`, and `reset`.
3. **[Configuration](/web/configuration/)** for every option, with
defaults and "use when" notes. Includes the
[sessionTimeoutMs callout](/web/configuration/#sessiontimeoutms-sessions-are-engagement-not-page-visits)
on why a session continues across reloads, SPA route changes, and
second tabs by default (and how to change that).
The other four pages are reference material you reach for when you need
them, not front-to-back reading.
## All pages
### Using the SDK
- **[Install](/web/install/)** - the CDN `
```
What this does:
1. The first tag starts fetching the SDK bundle in parallel with HTML
parsing (`async`). It does not block the browser.
2. The inline `
```
The hash for each release is in the release notes. The CDN also returns
it on every response as an `X-Content-Integrity` header, so you can
verify or fetch it programmatically.
## Path 2: npm install (bundler-based apps)
For React, Vue, Svelte, Next.js, Nuxt, and similar bundler-based
projects, install from npm and import the SDK like any other module.
```bash
bun add @revu-ai/core
# or: npm install @revu-ai/core
```
```js
import revu from "@revu-ai/core";
revu.init({ apiKey: "revu_pk_..." });
```
The npm distribution is ESM-only. Modern bundlers (Vite, Rollup,
esbuild, webpack 5+) tree-shake against `"sideEffects": false` so a
customer who imports only `revu.init` and `revu.capture` does not pay
for the modules they do not reach.
The CDN bundle and the npm bundle ship the same source, the same public
API, and the same wire shape. Pick whichever fits your build.
## What the bundle does not do
By design, the install path does not:
- Set any cookies on the CDN domain. The bundle is served cookieless.
- Block first paint. The bundle loads asynchronously.
- Require a build step or polyfills. The bundle targets ES2020 (Chrome
85+, Safari 13.1+, Firefox 79+, Edge 85+), which covers ~97% of
browsers globally without transpilation overhead.
- Force a specific module loader. Modern bundler, legacy `