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

@pyreon/solid-compat

v0.25.1

Published

SolidJS-compatible API shim for Pyreon — write Solid-style code that runs on Pyreon's reactive engine

Readme

@pyreon/solid-compat

SolidJS-compatible API shim — write Solid-style code that runs on Pyreon's reactive engine.

@pyreon/solid-compat provides the SolidJS surface (createSignal, createEffect, createMemo, createComputed, createRenderEffect, createResource, createSelector, createRoot, createStore, createContext/useContext, mergeProps, splitProps, untrack, batch, lifecycle hooks onMount / onCleanup, control-flow components <For> / <Show> / <Switch> / <Match> / <Index> / <Dynamic> / <Portal> / <ErrorBoundary> / <Suspense>, transitions, observables, reconcile / unwrap / produce) all on Pyreon's reactive engine. Because Solid and Pyreon share the same mental model (fine-grained reactivity, run-once components, getter/setter signals), this is the thinnest compat layer — most APIs map nearly 1:1.

Install

bun add @pyreon/solid-compat

Quick start

import { createSignal, createEffect } from '@pyreon/solid-compat'
import { render } from '@pyreon/solid-compat'

function Counter() {
  const [count, setCount] = createSignal(0)

  createEffect(() => {
    document.title = `Count: ${count()}`
  })

  return (
    <div>
      <p>Count: {count()}</p>
      <button onClick={() => setCount((c) => c + 1)}>+1</button>
    </div>
  )
}

render(() => <Counter />, document.getElementById('app')!)

Subpath exports

| Subpath | Surface | | -------------------------------------- | --------------------------------------------------------------------------------------------- | | @pyreon/solid-compat | Full Solid surface — see API table below | | @pyreon/solid-compat/jsx-runtime | JSX automatic runtime (jsx, jsxs, Fragment) | | @pyreon/solid-compat/jsx-dev-runtime | Dev variant — same runtime |

API surface

| Category | Exports | | ---------------- | --------------------------------------------------------------------------------------------- | | Signals | createSignal, createMemo, createEffect, createComputed (alias), createRenderEffect, createRoot, on, batch, untrack | | Lifecycle | onMount, onCleanup | | Props | mergeProps, splitProps, children | | Context | createContext, useContext | | Owner | getOwner, runWithOwner | | Resources | createResource (with pending / loading / latest / state / error) | | Stores | createStore, reconcile, unwrap, produce | | Transitions | startTransition, useTransition | | Selectors | createSelector | | Iteration | <For>, <Index>, mapArray, indexArray | | Control flow | <Show>, <Switch>, <Match>, <Dynamic>, <Portal>, <ErrorBoundary>, <Suspense> | | Observables | observable, from | | Misc | lazy, createDeferred, createReaction, catchError, createUniqueId, DEV | | Render | render(code, element), hydrate(code, element) |

Drop-in compat mode

@pyreon/vite-plugin can alias every solid-js import to this package — no code changes:

// vite.config.ts
import pyreon from '@pyreon/vite-plugin'
export default { plugins: [pyreon({ compat: 'solid' })] }

tsconfig.json:

{
  "compilerOptions": {
    "jsx": "preserve",
    "jsxImportSource": "@pyreon/solid-compat"
  }
}

Gotchas

  • Solid's babel-plugin-jsx-dom-expressions is NOT used. This package relies on Pyreon's own JSX compiler — semantics are the same (run-once + fine-grained), the codegen differs.
  • createStore mutation tracking covers the common shapes (top-level set, nested path set, function updaters). Deep proxy semantics in unusual edge cases may diverge from Solid's implementation.
  • createResource's mutate / refetch work but are implemented as imperative writes to the underlying Pyreon signal — not a fully transparent observer of an external fetcher.
  • render's cleanup return value maps to Pyreon's mount() cleanup function — semantically equivalent.

Documentation

Full docs: docs.pyreon.dev/docs/solid-compat (or docs/docs/solid-compat.md in this repo).

License

MIT