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

@sometic/preact

v0.1.8

Published

Preact external-store foundation adapters for Sometic (store bind; component kit expands later).

Readme

@sometic/preact

Preact external-store foundation adapters for Sometic (store bind; component kit expands later).

@sometic/preact is a Wave B foundation package. It provides createPreactStoreBind, shaped for Preact’s external-store pattern (getSnapshot + subscribe) over @sometic/store. It does not re-export a Preact component kit: there is no @sometic/preact/button or @sometic/preact/structure. Phase 20 structure components (Tabs, Accordion, Breadcrumb, Command palette, Tree) ship on @sometic/react/structure and @sometic/vue/structure, or via @sometic/dom / Elements. Keep this package for store bridging.

Sometic’s adapters stay thin. Preact should not fork store or auth engines. This bind keeps the same store semantics as other frameworks, asserts no import-time window access through @sometic/adapter-contract, and exposes dispose() for cleanup when the host unmounts.

Standout exports: createPreactStoreBind (getSnapshot, subscribe, set, store, dispose) and preactAdapterCapabilities (["storeBind"]). Pair getSnapshot / subscribe with Preact’s useSyncExternalStore (or equivalent) in your own components.

Ecosystem: Wave B with Angular, Svelte, and Solid. Contracts: @sometic/adapter-contract. Foundation: @sometic/core. Product overview: Introduction. Capability notes: Preact.

Install

Peer (optional meta): preact ^10.

pnpm add @sometic/preact preact
npm install @sometic/preact preact
yarn add @sometic/preact preact

Usage

External-store shaped bind:

import { createPreactStoreBind } from "@sometic/preact";

const counter = createPreactStoreBind({ count: 0 });

const unsubscribe = counter.subscribe(() => {
    console.log(counter.getSnapshot().count);
});

counter.set({ count: 1 });
unsubscribe();
counter.dispose();

Capability flag:

import { preactAdapterCapabilities } from "@sometic/preact";

console.log(preactAdapterCapabilities); // ["storeBind"]

Peers / when not to use

  • Optional peer preact. Install it in Preact apps; the bind does not require Preact at import time.
  • No Preact Button/Form/Dialog kit here yet. Prefer @sometic/react when you need the full Wave A React surface (Preact compat may work for some apps, but this package is store-bind only).
  • Use @sometic/store directly if you do not need the Preact snapshot/subscribe wrapper.

Docs

License

MIT