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 🙏

© 2024 – Pkg Stats / Ryan Hefner

solid-db

v0.0.3

Published

It is like a NoSQL DB at the frontend side, but reactive. It uses Solid.js store inside to keep data.

Downloads

2

Readme

SolidJS reactive database

It is like a NoSQL DB at the frontend side, but reactive, for projects which use SolidJS.

About

With SolidDB you can work with SolidJS store like you work with NoSQL database.
If your application needs to store, populate. update and read some data collections at the frontend side it might be very useful for you.
You can create a simple set of queries directly to your store (CRUD). Then you can get reactive action in your component by reading a chunks of data from you collection, or using 'update' handlers.

This library does not invent anything new. Ryan and his team have done an excellent job. The reactivity in Solid.js is truly impressive. The library uses native SolidJS primitives for reactive synchronization, simply making working with an ordered set of data more convenient and secure.

On this matter, more details will be provided below.

Reactivity

SolidDB uses createStore under the hood. As you use store from instantiated read/write tuple to update component state, you can use SolidDB methods with descriptive names to update component state or invoke side-effects.

.list() - returns the whole table data as list (Array) of values;
.json() - returns the whole table data in JSON format;
.count() - returns a count of rows of table data;
.index() - returns a index map of current table;

Update handlers

SolidDB also provides a set of clear methods that work as createEffect (using createEffect internally). Each method acts as an event handler, calling back the callback function you passed in when your data collection has been changed.

.onChange() - triggers when any changes occur in the table;
.onInsert() - triggers after insertions;
.onUpdate() - triggers after row updates;
.onRemove() - triggers after removing rows;
.onGet() - triggers after a component reads a certain amount of data from the table;