slevisp

A tiny SolidJS state helper that unifies createSignal and createStore behind one createState API with typed selectors.

13
1
89% credibility
Found May 28, 2026 at 14 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A tiny helper library for SolidJS that automatically picks the best way to store your data based on what type you give it, while keeping the reading interface consistent.

How It Works

1
🔍 Discover a simpler way to manage data

You find this tiny helper while building a SolidJS app and looking for easier ways to handle state.

2
📦 Add it to your project

You install the package with one simple command and it works alongside your existing Solid setup.

3
Create state with one function

Instead of choosing between different approaches, you just call createState with your data and it figures out the best way to store it.

4
📖 Read data the same way every time

Whether you have a simple number or a complex object with nested lists, you always read values the same way: state().

5
🔄 Update values easily

You change your data with a simple setState call, and everything updates automatically across your app.

🎉 Your app is ready

Your code is clean and simple, with state management that feels natural no matter what kind of data you're working with.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 14 to 13 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is solidjs-state?

solidjs-state is a TypeScript library that simplifies SolidJS state management by providing a single `createState` function that automatically chooses between signals and stores based on your data. It removes the mental overhead of deciding which primitive to use - primitives like strings and numbers get signals, while arrays and plain objects get stores. The API surfaces a consistent `state()` interface regardless of which underlying primitive is used, and supports powerful selector patterns for derived state.

Why is it gaining traction?

The project solves a real friction point: SolidJS requires choosing between `createSignal` and `createStore`, which means learning two APIs and switching between them based on type. solidjs-state eliminates that decision by auto-detecting the right primitive. The selector syntax is elegant and familiar - passing a function to `state()` returns an accessor for derived data, making it trivial to compute filtered views or computed properties. Developers coming from React contexts often find this mental model easier to adopt than raw Solid primitives.

Who should use this?

SolidJS developers building interactive UIs with complex state - think dashboards, form-heavy apps, or real-time data views. Teams migrating from Zustand or Redux who want fine-grained reactivity without rewriting their entire mental model will find this a gentle bridge. Small projects with minimal state needs should probably skip it - the overhead of adding a dependency isn't worth it when a few signals solve the problem.

Verdict

At 13 stars, this is early-stage software still proving itself. The TypeScript-first design and clean API suggest a thoughtful implementation, but the credibility score of 0.8999999761581421% reflects a lack of community validation. Good for experimentation and new projects, but don't stake your production app on it yet.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.