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

@enviera/sidecar

v0.1.0

Published

Client loader for the Enviera sidecar (staging feedback widget). Framework-agnostic core plus a React adapter; Svelte and Vue adapters are planned on the same core.

Readme

@enviera/sidecar

Typed client loader for the Enviera sidecar. The sidecar mounts on every page of an embedding app — eagerly, before any login — and capabilities activate on top of it:

  • Feedback (built, lazy): reviewers on a staging site click the feedback button, click any element, and type a note — it lands as a labeled GitHub issue in the project's issue repo, with page URL, element, and reporter identity. Dormant until the app hands over the signed-in user.
  • Monitoring / analytics (planned, eager): identity-free capabilities driven by per-project remote configuration.

The widget itself is a hosted script (served by the sidecar worker); this package configures and lazily injects it, so every embedding app runs the same, always-current version.

Identity: optional to mount, required for feedback

Mount the sidecar everywhere, immediately — no identity needed. The feedback capability arms only once setIdentity provides the signed-in user, and both email and name are mandatory there: embedding apps have their own login, and a feedback issue without a reporter is not actionable for triage. There is no anonymous feedback mode.

The identity is display-level: the created issue marks it "(unverified)" unless a trusted gateway identity vouches for the request server-side.

React

import { Sidecar } from "@enviera/sidecar/react";

function AppSidecar() {
  const { user } = useYourAuth(); // null while the session resolves

  if (process.env.NEXT_PUBLIC_FEEDBACK_WIDGET !== "on") return null;

  return (
    <Sidecar
      project="your-project-id"
      identity={user ? { email: user.email, name: user.name } : undefined}
    />
  );
}

The component renders nothing. Mount it on every page (inside your auth provider); pass identity={undefined} while the session resolves — the feedback capability arms itself once both fields are present. Only render on environments where the sidecar belongs (staging — never production, until an eager monitoring capability changes that calculus).

Vanilla JavaScript

The root export is the framework-agnostic core the adapters build on:

import { initSidecar } from "@enviera/sidecar";

const sidecar = initSidecar({ project: "your-project-id" });

// later, once your session resolves:
sidecar.setIdentity({ email: session.email, name: session.name });

initSidecar is idempotent per page (one sidecar; repeat calls return the same handle), throws a TypeError on a missing project, and safely no-ops during server-side rendering. setIdentity throws when either field is missing, and is a one-way switch — arming is per-page-load.

Architecture / planned adapters

core (this package's root export — init, identity handoff, capability arming)
├── capabilities:
│   feedback     — built (lazy: arms on setIdentity)
│   monitoring   — planned (eager, identity-free, remote-configured)
└── adapters, one subpath export each:
    ./react   — built
    ./svelte  — planned (same shape: mount eagerly, hand identity later)
    ./vue     — planned

Adapters stay thin: mount the core in their framework's lifecycle and pass identity through when the app knows it. New adapters should not add behavior beyond that.

Prerequisites for a new project

  1. The project must have a row in the studio project registry (issue repo + allowed staging origins).
  2. The feedback GitHub App must have access to the project's issue repo.
  3. Your staging origin must be in that registry row's allowed origins — requests from other origins are refused server-side.