Socket
Socket
Sign inDemoInstall

@arsonar/core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arsonar/core

A battery-including kappa database for hypercores.


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@arsonar/core

A battery-including kappa database for hypercores.

Features

  • Create and clone collections
  • Add feeds to collections (using hypercores)
  • Add data types (models) to collections
  • Add data records to feeds
  • Replicate collections between peers
  • Blob store per collection
  • Full-text search
  • Pluggable query backends
  • Remote queries (into the peer to peer swarm)

Example

const { Workspace } = require('@arsonar/workspace')

const workspace = new Workspace('/tmp/database')
const collection = await workspace.get('my-db')

// Create a type.
await collection.putType({
  name: 'doc',
  fields: { title: { type: 'string' } }
})

// Put json records.
await collection.put({ type: 'doc', value: { title: 'Hello, world!' })

// Make a query.
const results = await collection.query('search', 'hello', { sync: true })
console.log(results)

FAQs

Package last updated on 24 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc