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

node_foundationdblayers

v0.0.3

Published

Layers for FoundationDb written in node.js

Downloads

2

Readme

FoundationDB Layers for Node.js (alpha)

This library offers a set of layers to use with the FoundationDB database. FoundationDB is an interesting, new noSQL variant that combines true ACID transactions across server instances and multiple key/value pairs. In order to take full advantage of the FoundationDB paradigm, the developer must create layers that wrap key/value pair transactions. The FoundationDB Layers for Node.js library provides basic structures such as counter and array, as well as more advanced layers:

  • Queue Layer (FIFO queues and LIFO stacks) - implements First-In/First-Out or Last-In/First-Out.
  • Table Layer - store related data in row/column format used in traditional RDBMS systems.
  • Bloom Filter Layer - a space-efficient data structure that tests whether an element is a set member. False positives are possible. False negatives are not possible.
  • Scored Set Layer - simple data structure that tracks scores for specific ids. Adding an element to the set increments its score, removing the element decrements the score.
  • Relationship Graph Layer - track parent -> child and bidirectional relationships. Good for tracking relationships such as friends (ie: Facebook relationship type) and follows/follower (ie: Twitter relationship type). Can also be used to model RDBMS data relationships such as one-to-one, one-to-many and many-to-many.

Upcomming layers include:

  • Capped List Layer
  • TTL Expiration Layer
  • Column Index Layer
  • Table Filter Layer

Please note this library is considered alpha. Although there are functional and unit tests around the layers, no performance tuning has been done and the code is still considered very rough. Use the layers in real projects at your own risk.

Installation

The library can be installed from NPM:

npm install node-foundationdblayers

Note that the use of the library requires installation of the FoundationDB client infrastructure. See the FDB Node API docs.

Documentation

Visit http://agad.github.com/node-foundationdblayers/ for API documentation.