Small, tree-shakeable TypeScript wrappers around 40+ browser Web APIs.
import {
isClipboardApiAvailable,
copyToClipboard,
} from '@rtorcato/browser-common/clipboard'
if (isClipboardApiAvailable()) {
await copyToClipboard('hello world')
}
npm install @rtorcato/browser-commonUse with AI
A skill ships with the package so coding agents use browser-common correctly — whichever tool you're in.
npx skills add https://github.com/rtorcato/browser-common --skill browser-common/plugin marketplace add rtorcato/browser-common/plugin install browser-common@browser-commonAGENTS.md. It ships in the npm tarball, so it is already in your node_modules.node_modules/@rtorcato/browser-common/AGENTS.mdOne subpath per Web API
Eight focused categories. 44 modules. Import exactly what you need.
Local, session, cookies, and the File System Access API.
Battery, geolocation, motion, orientation, idle and screen state.
Clipboard, drag-and-drop, focus, forms, keyboard, pointer and touch.
Canvas, HTML media, devices, vibration and web-share.
DOM helpers, fullscreen, iframe, history, location and window.
IntersectionObserver, MutationObserver, ResizeObserver and PerformanceObserver.
Background tasks, service workers, web locks and WebSockets.
Alerts, notifications, print, encoding, permissions and shared helpers.
Sibling projects
More from @rtorcato — same conventions, same release pipeline.
Tree-shakeable TypeScript utilities — tiny bundles, full type safety, CLI included.
Framework-agnostic building blocks for Node.js APIs — errors, auth, rate limiting, OpenAPI, Express + Hono.
Shared, tree-shakeable TypeScript database utilities for Node projects.
Typed TypeScript wrappers and helpers for Cloudflare bindings and APIs.
Published React 19 component library — shared UI primitives.
SwiftUI package of reusable views and helpers to build apps faster.
Shared, tree-shakeable TypeScript helpers for Supabase — client, auth, and database utilities.
One wizard to scaffold TypeScript, linting, testing, and releases for any JS project.
Turns ai-ready GitHub issues into reviewed PRs — one worktree per issue, two agent reviewers.
Production-grade database schema deployment with the ergonomics of a JSX component.
Banner, social card and favicon for a repo — SVG sources you can regenerate, rendered to PNG.