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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@d-buckner/ensemble-solidjs

v0.2.0

Published

SolidJS bindings for Ensemble actor model framework

Readme

@d-buckner/ensemble-solidjs

SolidJS bindings for the Ensemble actor model framework.

Features

  • createActor Primitive: Reactive SolidJS integration with actors
  • Full Type Safety: TypeScript support with type inference
  • Fine-Grained Reactivity: Leverages SolidJS signals for optimal performance
  • Automatic Updates: Components update when actor state changes

Installation

npm install @d-buckner/ensemble-core @d-buckner/ensemble-solidjs solid-js

Quick Start

import { Actor, action, createActorToken, ActorSystem } from '@d-buckner/ensemble-core';
import { ActorSystemProvider, createActor } from '@d-buckner/ensemble-solidjs';

// 1. Define your actor
interface CounterState {
  count: number;
}

class CounterActor extends Actor<CounterState> {
  static readonly initialState: CounterState = { count: 0 };

  @action
  increment(): void {
    this.setState(draft => { draft.count++; });
  }
}

const CounterToken = createActorToken<CounterActor>('counter');

// 2. Set up the actor system
const system = new ActorSystem();
system.register({ token: CounterToken, actor: CounterActor });
await system.start();

// 3. Provide the system to your SolidJS app
function App() {
  return (
    <ActorSystemProvider system={system}>
      <Counter />
    </ActorSystemProvider>
  );
}

// 4. Use the actor in components
function Counter() {
  const actor = createActor(CounterToken);

  return (
    <div>
      <p>Count: {actor.state.count}</p>
      <button onClick={() => actor.actions.increment()}>Increment</button>
    </div>
  );
}

API

ActorSystemProvider

Provides the actor system to child components.

<ActorSystemProvider system={system}>
  {/* Your app */}
</ActorSystemProvider>

createActor(token)

Reactive primitive to access actor state and actions.

const actor = createActor(CounterToken);
// Access state: actor.state.count
// Call actions: actor.actions.increment()

Documentation

For comprehensive documentation, visit the Ensemble GitHub repository.

License

Apache-2.0 © Daniel Buckner