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

svelte-tinybase

v0.0.1

Published

A tinybase adapter for Svelte.

Readme

svelte-tinybase

A tinybase adapter for Svelte.

Introduction

svelte-tinybase is a library that allows you to use Tinybase with Svelte 5 in a reactive way.

Tinybase is a lightweight database for the web. It's a simple, yet powerful tool for building web applications. It's really incredible, honestly. Only problem is that they only provide first-class support for React.

So, this library is my attempt to bring the power of Tinybase to Svelte 5.

Installation

First of all, you'll have to install the library:

  • npm: npm i svelte-tinybase
  • pnpm: pnpm i svelte-tinybase
  • yarn: yarn add svelte-tinybase
  • bun: bun i svelte-tinybase

Usage

To use svelte-tinybase, you'll first need to have a Tinybase store initialized. You can check tinybase's documentation for more information.

You'll likely want to also explore other topics, like schemas and persistance.

svelte-tinybase takes full advantage of schemas.

Once you have your store, you can start using the hooks svelte-tinybase provides.

useTable

The useTable hook is used to always have the latest table data in a reactive way.

import { useTable } from "svelte-tinybase";

const tasks = useTable(store, "tasks");

tasks.value; // contains the latest table data. It's reactive.

useRow

The useRow hook is used to always have the latest row data in a reactive way.

import { useRow } from "svelte-tinybase";

const task = useRow(store, "tasks", "taskId");

task.value; // contains the latest row data. It's reactive.

useCell

The useCell hook is used to always have the latest cell data in a reactive way.

import { useCell } from "svelte-tinybase";

const title = useCell(store, "tasks", "taskId", "title");

title.value; // contains the latest cell data. It's reactive.

useValues

The useValues hook is used to always have the latest store values in a reactive way.

import { useValues } from "svelte-tinybase";

const values = useValues(store);

values.value; // contains the latest store values. It's reactive.

Reactiveness

The value will update when the data changes, which will render the new value in the UI. The value is also reactive to changes, and even bindable.

<input bind:value={values.value.title} />

Examples & Demo

Feel free to check out the demo on svelte-tinybase.polv.dev. Source is here

Inspired by

Inspired by s1adem4n (this comment)