npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@airnauts/airside-integration-react

v0.9.1

Published

React mount (<AirsideLayer/>) for embedding the Airside commenting widget in any React host.

Downloads

375

Readme

@airnauts/airside-integration-react

The <AirsideLayer/> React mount for Airside. Drop it anywhere in a React tree to embed the commenting widget; it calls airside.init() on mount and tears down on unmount. The widget bundles its own React, so this wrapper only needs the host's react as a peer.

Installation

pnpm add @airnauts/airside-integration-react react
# npm install @airnauts/airside-integration-react react

Quick start

The built module ships a 'use client' banner, so you can render it directly in a React Server Component tree:

import { AirsideLayer } from '@airnauts/airside-integration-react'

export function App() {
  return <AirsideLayer airsideKey={process.env.NEXT_PUBLIC_AIRSIDE_KEY!} endpoint="/api/airside" />
}

init()'s activation gate keeps the widget inert until the page is opened once with ?airside-key=…, so <AirsideLayer/> can render unconditionally. The key prop name is reserved by React, so the secret is passed as airsideKey; every other init() option (endpoint, pageKey, features, …) is accepted as-is.

Next.js: @airnauts/airside-integration-next re-exports AirsideLayer from @airnauts/airside-integration-next/client, so a Next app can install a single package for both the API route and the widget mount.

API reference

AirsideLayer

import { AirsideLayer } from '@airnauts/airside-integration-react'

<AirsideLayer airsideKey="..." endpoint="/api/airside" />

A React component that calls airside.init() on mount and handle.destroy() on unmount. Re-initialises only when airsideKey, endpoint, or keyParam change — not on every render.

Returns null (renders nothing into the DOM).

AirsideLayerProps

All props from InitOptions are accepted, except key (reserved by React) which is replaced by airsideKey:

| Prop | Type | Required | Description | |---|---|---|---| | airsideKey | string | ✓ | The secret key (key in InitOptions); sent as x-airside-key on every API request | | endpoint | string | ✓ | Base URL of the comments API, e.g. "/api/airside" | | pageKey | (url: string) => string | | Override the default origin + pathname page identity | | keyParam | string | | URL param the activation gate reads (default "airside-key") | | threadParam | string | | URL param used for thread deep-links (default "airside-thread") | | features.screenshots | boolean | | Enable screenshot capture (default off) | | features.textAnchors | boolean | | Enable text-selection anchoring (default off) | | provenance | Provenance | | Optional deploy metadata attached to new threads (commitSha, branch, deploymentId) |

Peer dependencies & requirements

| Peer | Required | Notes | |---|---|---| | react | ^19.0.0 | Host app's React; the widget bundles its own copy separately |

  • Node.js ≥ 18 (for server-side rendering stubs; the widget itself only runs in the browser)

Related packages

  • @airnauts/airside-client — the widget engine this component wraps (airside.init())
  • @airnauts/airside-integration-next — Next.js integration that re-exports AirsideLayer from its /client subpath
  • @airnauts/airside-server — the HTTP API the widget connects to

License

MIT © Airnauts