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

@sigx/lynx-updates-ui

v0.9.2

Published

Prebuilt OTA update UI for sigx-lynx — blocking update gate, prompt modal, download progress and restart banner over @sigx/lynx-updates

Downloads

814

Readme

@sigx/lynx-updates-ui

Prebuilt OTA update UI for SignalX on Lynx — the drop-in companion to the headless @sigx/lynx-updates package. Four components cover the whole update lifecycle: a blocking gate for mandatory updates, a prompt modal for optional ones, an inline download progress row, and a "restart to update" banner. All of them read the reactive useUpdates() state, so there is nothing to wire up beyond Updates.configure().

Built from @sigx/lynx-daisyui building blocks (Modal, Progress, Button, Alert), so everything follows your daisy theme.

📚 Documentation

Full guides, API reference and live examples → https://sigx.dev/lynx/modules/updates/overview/

Installation

pnpm add @sigx/lynx-updates-ui

Requires @sigx/lynx-updates (configured via Updates.configure()) and @sigx/lynx-daisyui (with its styles in your CSS pipeline). "Later" dismissals persist across launches via @sigx/lynx-storage — it's installed with this package and sigx prebuild links the native Storage module automatically, so there is nothing to set up. Only on web preview and in tests (where no native modules exist) do dismissals degrade to session-only suppression.

Quick start

import { component } from '@sigx/lynx';
import { Updates } from '@sigx/lynx-updates';
import { UpdateGate, UpdatePrompt, UpdateReadyBanner } from '@sigx/lynx-updates-ui';

Updates.configure({
  provider: { url: 'https://updates.example.com/manifest.json' },
  mode: 'manual',
});

const App = component(() => () => (
  <UpdateGate description="A required update is being installed.">
    {/* your app */}
    <Screens />

    {/* optional updates: ask, then restart or wait for next launch */}
    <UpdatePrompt applyOn="next-launch" />
    <UpdateReadyBanner />
  </UpdateGate>
));

UpdateGate blocks only for mandatory updates; UpdatePrompt and UpdateReadyBanner only ever show for non-mandatory ones — the three coexist without overlap.

API

<UpdateGate>

Wraps app content (default slot). Children always render; when state.mandatory is true a full-screen overlay covers them: centered title + description, a Progress bar bound to the download, "Installing…" while applying, and a Retry button (re-runs Updates.download()) on error.

| Prop | Type | Default | Description | | --- | --- | --- | --- | | title | string | 'Update required' | Overlay headline. | | description | string | — | Copy under the headline. | | class | string | — | Extra class for the overlay. |

Slots: default (app content), blocked (replaces the built-in overlay entirely — slots={{ blocked: () => <MyBlockedScreen /> }}).

<UpdatePrompt>

Modal shown when status === 'available' and the update is not mandatory. Shows manifest.version and manifest.metadata?.releaseNotes. "Update" downloads (and, with applyOn="restart", applies immediately); "Later" dismisses and suppresses re-prompts for that update id (persisted, key __sigx_updates_dismissed:<id>).

| Prop | Type | Default | Description | | --- | --- | --- | --- | | applyOn | 'restart' \| 'next-launch' | 'next-launch' | When the downloaded update takes effect. | | title | string | 'Update available' | Modal headline. | | class | string | — | Extra class for the modal box. | | onDismiss | () => void | — | Fired on "Later" (or backdrop tap). |

<UpdateProgress>

Inline Progress bar + percent label, rendered only while status === 'downloading' (zero-size placeholder otherwise). Falls back to a byte count when the server sent no Content-Length.

| Prop | Type | Default | Description | | --- | --- | --- | --- | | color | ProgressColor | theme default | Bar color (daisy semantic color). | | class | string | — | Extra class for the row. |

<UpdateReadyBanner>

Bottom banner when status === 'ready' and the update is not mandatory: "Update ready — v1.2.3" plus a Restart button (Updates.apply(), in-place reload) and "Later" (hides for this session; the staged update still applies on the next cold launch).

| Prop | Type | Default | Description | | --- | --- | --- | --- | | label | string | 'Update ready' | Banner text (version is appended). | | restartLabel | string | 'Restart' | Restart button text. | | class | string | — | Extra class for the banner container. | | onDismiss | () => void | — | Fired on "Later". |

Dismissal helpers

import { isDismissed, dismiss, DISMISSED_KEY_PREFIX } from '@sigx/lynx-updates-ui';

await isDismissed(manifest.id); // has the user said "Later" to this update?
await dismiss(manifest.id);     // suppress future prompts for it

Storage-backed (@sigx/lynx-storage, linked automatically at prebuild); on web preview and in tests it degrades to an in-process Set.