Skip to main content
Home

Built and signed on GitHub Actions

Analytics you can trust.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year ago (0.3.1)

Capture

Capture is a tiny (3kb gzipped!) but capable analytics platform that allows you to capture and fetch analytical data. It provides a simple and intuitive way to manage analytical logging and user recognition.

Features

  • Capture Logs: Create data captures for different events. Captures can be used to store analytical data.
  • Re-capturing: Get all of your captures with one call.
  • Release: Delete captured events
  • User Fingerprinting: Identify users across multiple sessions

Getting Started

To get started with Capture, follow these steps:

  1. Go to our website and create a new project
  2. Copy your keys and project id
  3. Follow the installation instructions for your runtime on the JSR page
  4. Create a new Capture client
import CaptureClient from "@capture/analytics";

const analytics = new CaptureClient({
  projectId: "",
  key: "", // Can be either public or private, private should not be exposed to the frontend
});

Contributing

Contributions are welcome! If you'd like to contribute to Capture, please fork the repository and submit a pull request.

License

Capture is licensed under the MIT License.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@capture/analytics

Import symbol

import * as analytics from "@capture/analytics";
or

Import directly with a jsr specifier

import * as analytics from "jsr:@capture/analytics";

Add Package

pnpm i jsr:@capture/analytics
or (using pnpm 10.8 or older)
pnpm dlx jsr add @capture/analytics

Import symbol

import * as analytics from "@capture/analytics";

Add Package

yarn add jsr:@capture/analytics
or (using Yarn 4.8 or older)
yarn dlx jsr add @capture/analytics

Import symbol

import * as analytics from "@capture/analytics";

Add Package

vlt install jsr:@capture/analytics

Import symbol

import * as analytics from "@capture/analytics";

Add Package

npx jsr add @capture/analytics

Import symbol

import * as analytics from "@capture/analytics";

Add Package

bunx jsr add @capture/analytics

Import symbol

import * as analytics from "@capture/analytics";