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

@geoseal/react-views

v0.1.1

Published

Embeddable React component that renders a live Geoseal shift + location view (map, geofence rings, worker track, event timeline, and AI closeout) from a single Geoseal Views embed token.

Readme

@geoseal/react-views

Drop-in React component for a live Geoseal shift + location view — a Mapbox map with the facility's two geofence rings, the worker's location track, a verified-presence event timeline, and the AI closeout summary — rendered from a single Geoseal Views embed token.

It is a live-view component built on Geoseal's signed, single-visit, de-identified embed tokens.

New — v0.1.0. This package is brand new. It renders the payload from the live v1-embed backend and depends on a Geoseal Views embed token (etok_…) that you mint server-side (see Mint a token). Geoseal Views must be enabled for your App (settings.embed_views_enabled = true, off by default).

Install

npm install @geoseal/react-views mapbox-gl
# react and react-dom (>=18) are peer dependencies you already have

mapbox-gl is a peer dependency — the component uses the publishable Mapbox token returned inside the view payload, so you do not configure Mapbox yourself.

Usage

import { GeosealVisit } from "@geoseal/react-views";

export function ShiftPanel({ etok }: { etok: string }) {
  return <GeosealVisit token={etok} live height={520} theme="dark" />;
}

That is the whole integration: pass the etok_… token, get a live view.

Props

| Prop | Type | Default | Notes | | --------------------- | ----------------------- | ------------------- | ------------------------------------------------------------ | | token | string | — | Required. The etok_… Geoseal Views token. | | baseUrl | string | live functions host | Override to target a different Geoseal deployment. | | live | boolean | false | Poll for updates while the visit is open. | | pollIntervalSeconds | number | 15 | Poll cadence when live. Stops automatically once closed. | | height | number \| string | 520 | Overall height of the view. | | theme | 'dark' \| 'light' | 'dark' | Dark-first; both honor prefers-reduced-motion. | | className / style | — | — | Applied to the root element. |

The useEmbedView hook

Render it yourself if you don't want the built-in UI:

import { useEmbedView } from "@geoseal/react-views";

const { data, loading, error, refetch } = useEmbedView(etok, { live: true });
// data is a fully-typed EmbedView (or null); error.kind tells you why (expired,
// not_found, network, server).

The iframe alternative

If you don't want a React dependency at all, embed the hosted page directly. It consumes the exact same payload:

<iframe
  src="https://geoseal.dev/embed/visit/etok_…"
  width="100%"
  height="520"
  style="border:0;border-radius:12px"
  loading="lazy"
  referrerpolicy="no-referrer"
  title="Geoseal — live shift"
></iframe>

Mint a token

A view token authorizes exactly one visit, is time-boxed and revocable, and carries no other account access. Mint it server-side with your secret key (sk_, never in the browser):

curl -X POST https://ibnwfzwekqyfozquwpff.supabase.co/functions/v1/v1-embed/embed/tokens \
  -H "Authorization: Bearer sk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "visit_id": "vis_…", "ttl_seconds": 3600, "live": true }'
# -> { "token": "etok_…", "embed_url": "https://geoseal.dev/embed/visit/etok_…", "expires_at": "…" }

Hand the returned token to <GeosealVisit token={…} />. To kill a live link, revoke the token server-side and the next load fails closed.

Full reference: docs/embed-views.md.

What it renders

The component fetches GET {baseUrl}/v1-embed/embed/visits/{token} (public, no auth) and shows:

  • Map — the facility with its facility_radius_m (inner) and perimeter_radius_m (outer) geofence rings, the worker's track as a line, and a marker at the latest fix (pulsing while live).
  • Timeline — arrival → dwell → departure using the Geoseal presence colors, with any tracking outages folded in.
  • AI closeout — the closeout summary card when present. When the tenant has not opted into names, the narrative is withheld and only the structured confidence is shown (closeout.redacted).

Graceful loading, error, and expired / revoked states are built in.

License

Apache-2.0