GitXplorerGitXplorer
m

signaldb

public
353 stars
15 forks
2 issues

Commits

List of commits on branch main.
Verified
21433b1f8b66a26b2adf8c03217ab2219d1dca2a

chore(deps): update vitest monorepo to v3.0.2 (#1322)

rrenovate[bot] committed 2 days ago
Verified
b6bd5734878b62a3449e1f61d5c4e380cb24881a

chore(deps): update dependency eslint-plugin-jsdoc to v50.6.2 (#1320)

rrenovate[bot] committed 2 days ago
Verified
310689b4a0ff2b1455d2842208a654a383d6a9e5

fix(deps): update dependency next to v15.1.5 (#1321)

rrenovate[bot] committed 2 days ago
Verified
4cdb98b253464b678dd84ba4f07d478f1d076e02

fix(deps): update dependency @supabase/supabase-js to v2.47.16 (#1319)

rrenovate[bot] committed 2 days ago
Verified
dacd3aa4ec45d016d54dfbe1a29a7bb81d1ef4ea

chore(deps): update vitest monorepo to v3.0.1 (#1318)

rrenovate[bot] committed 2 days ago
Verified
14bfa7b758a104c1685d13c10691104840fbc295

chore(deps): update vitest monorepo to v3.0.0 (#1316)

rrenovate[bot] committed 3 days ago

README

The README file for this repository.

SignalDB Logo

Current Version Status Checks TypeScript Coverage License Stargazers

Getting Started | Reference

SignalDB

SignalDB is a client-side database optimized for modern web applications. It provides an optimistic UI for creating responsive and dynamic interfaces, a MongoDB-like interface for familiarity, and robust TypeScript support to ensure type safety and accelerate development. SignalDB enables versatile local data persistence with support for various storage providers and facilitates real-time updates by gathering and synchronizing data from multiple sources. Its framework-agnostic design makes it suitable for projects of any scale, offering instant data access with minimal latency, which is ideal for applications requiring fast data handling and real-time interactions. Adapters are available for popular reactive libraries, including Angular, React, Solid, Svelte and Vue.js.

Installation

  $ npm install @signaldb/core

Usage

import { Collection } from '@signaldb/core'

const Posts = new Collection()
const postId = Posts.insert({ title: 'Foo', text: 'Lorem ipsum …' })

Posts.updateOne({ id: postId }, { // updates the post
  $set: {
    title: 'New title',
  }
})

Posts.removeOne({ id: postId }) // removes the post

const cursor = collection.find({})

// returns an array with all documents in the collection
// reruns automatically in a reactive context
console.log(cursor.fetch())

See the documentation for more information.

License

Licensed under MIT license. Copyright (c) 2024 Max Nowack

Contributions

Contributions are welcome. Please open issues and/or file Pull Requests. See Contributing.md to get started.

Troubleshooting

If you encounter any issues, there are several ways to get support.