• Stars
    star
    149
  • Rank 240,859 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 13 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Node is your mansion, Alfred is your butler. Node.js key-value store

No longer supported!!!

Alfred is a fast in-process key-value store for node.js.

Alfred supports:

  • multiple key-value maps in one database
  • atomic operations on one record
  • finder streams
  • activity streams
  • append-only files
  • compactation
  • buffered and unbuffered writes
  • in-memory indexes
  • sorting
  • replication
  • integrity check

More...

Install via npm:

$ npm install alfred

Example:

var Alfred = require('alfred');
// Open database
Alfred.open('path/to/db', function(err, db) {
  if (err) { throw err; }

  // define User model and its properties
  var User = db.define('User', {
    indexes: [{name: 'age',
              fn: function(user) { return user.age; }]
  });
  User.property('name', 'string', {
    maxLength: 100
  });
  User.property('active', 'boolean');

  // get user by id
  User.get(id, function(user) {
    console.log(user.inspect());
  };

  // find users
  User.find({age: {$gt: 18}}).all(function(users) {
    console.log('Found ' + users.length + ' users with more than 18 years') ;
  });
});

Read more about it

More Repositories

1

fugue

Unicorn for node.js
JavaScript
397
star
2

skiff-algorithm

Raft implementation in Node.js
JavaScript
135
star
3

carrier

Evented stream line reader for node.js
JavaScript
127
star
4

konphyg

Cascading configuration files made easy in Node.js.
JavaScript
105
star
5

level-jobs

Job Queue in LevelDB
JavaScript
84
star
6

node-openni

OpenNI bindings for Node.js
C++
79
star
7

simple-redis-safe-work-queue

Node.js Redis-based simple and safe work queue
JavaScript
77
star
8

handson_nodejs_source_code

Source code for the Hands-on Node.js book
JavaScript
74
star
9

banzai

Document processing framework for Node
JavaScript
69
star
10

node-patterns-code

Code for the Node Patterns Book Series
JavaScript
66
star
11

moving-average

Moving Average
JavaScript
60
star
12

node-openni-browser

Kinect on the browser
JavaScript
34
star
13

pipeline

Build stream pipe chains
JavaScript
21
star
14

procmon

Process Monitor UI
JavaScript
20
star
15

styled_objects

Simplify and organize stylesheet development on your Rails project
Ruby
17
star
16

dribbledb

MVCC database written in javascript
JavaScript
17
star
17

nodetuts_26

Node Tuts episode 26
JavaScript
17
star
18

pouch-stream-server

PouchDB Remote Server Stream
JavaScript
16
star
19

sweepy

Distributed and scalable file cache expiration in Rails
Ruby
14
star
20

level-vectorclock

Vector Clocks in LevelDB
JavaScript
14
star
21

duplex-emitter

Turns a duplex streams into an event emitter.
JavaScript
14
star
22

flowbench

HTTP traffic generator. Supports user flows with alternative paths. Stores stats on latency.
JavaScript
14
star
23

acts_as_pingable

Rails plugin for remote HTTP pinging
Ruby
13
star
24

node_tuts_episode_13

Node Tuts episode 13
JavaScript
11
star
25

verbose

Remote peer-to-peer event synchronization
JavaScript
9
star
26

cyclops

Controlling remote browser session with a pure javascript solution
JavaScript
8
star
27

pipe-channels

Channels as streams inside a stream, negotiated.
JavaScript
8
star
28

woosh

Streaming composable templates - IN CONSTRUCTION
JavaScript
8
star
29

nodetuts_code

Some code for the nodetuts screencasts
JavaScript
8
star
30

ipfs-iiif-db-demo

IPFS IIIF DB Demo
JavaScript
7
star
31

async-function-queue

async functionqueue for Node.js and Browser
JavaScript
6
star
32

banzai-redis

Redis queueing plugin module for Banzai
JavaScript
6
star
33

level-writestream

LevelUP writable stream compatible with streams2
JavaScript
6
star
34

nodetuts_website

Nodetuts website
Ruby
6
star
35

js-sparse-array

Sparse array implementation in JS with no dependencies
JavaScript
5
star
36

node-workshop

Node Workshop
JavaScript
5
star
37

fake-queue

Simple in-memory queue for Node.js
JavaScript
5
star
38

bubble

Domains for the poor man
JavaScript
5
star
39

requirelx-201506-reusable-node-streams

Presentation
JavaScript
5
star
40

sombrero

Dynamo-like Data Storage System for Node.js Using LevelDB
JavaScript
5
star
41

flutter-dp3t

Exposes the DP3T SDK API in Flutter
Kotlin
4
star
42

skiff-level

LevelDB persistence provider for Skiff
JavaScript
3
star
43

banzai-couchdb-store

CouchDB Doc Store for Banzai
JavaScript
3
star
44

presentation-2018-04-17-CRDTs

Madeira JS Meetup presentation about CRDTs
JavaScript
3
star
45

frequency-meter

Measures event frequency
3
star
46

nubstep

JavaScript
3
star
47

abstract-skiff-transport

Abstract Transport Layer for Skiff
JavaScript
2
star
48

banzai-statestore-mem

Banzai state store in memory
JavaScript
2
star
49

node-procmon-agent

Procmon Agent for Node.js
JavaScript
2
star
50

websockets-modular-approach-article-code

JavaScript
2
star
51

node-trumpet

parse and transform streaming html using css selectors
JavaScript
2
star
52

rpc-stream-article-code

2
star
53

boxed-emitter

Scoped events
JavaScript
2
star
54

nodetuts

Nodetuts.com
JavaScript
2
star
55

mozfest-decentralized-editor

Editor for Mozfest decentralised workshop
JavaScript
2
star
56

y-ipfs-store

Yjs store over IPFS
JavaScript
2
star
57

nodetuts_ep12

Node Tuts episode 12
JavaScript
2
star
58

opti.pt

OPTi.pt app
JavaScript
1
star
59

skroll

Framework for class trainings.
JavaScript
1
star
60

node-binary-querystring

node-binary-querystring
JavaScript
1
star
61

document-driven-transactions-presentation

Document-driven Transactions presentation
1
star
62

node_js_deep_dive_presentation

Slides for my "node.js - a deep dive" presentation
1
star
63

nodeinteractive-europe-2016-presentation

1
star
64

switch-emitter

Events with recipient address.
JavaScript
1
star
65

level-net-client

Node.js client for level-net-server
1
star
66

domain-observer

Observe events happening inside a domain
JavaScript
1
star
67

batch-write-stream

Batch Object Write Stream
JavaScript
1
star
68

The-process-module

1
star
69

y-ipfs-poc

Y.js over IPFS PoC
JavaScript
1
star
70

node-buzzard

Buzzard Protocol
JavaScript
1
star
71

middle

Combining two streams
JavaScript
1
star
72

pouchdb-ws

PouchDB over websockets
JavaScript
1
star
73

pull-batch

transform input into equally-sized chunks as output
JavaScript
1
star
74

flatware-session

Session Middleware for Flatiron.js
JavaScript
1
star
75

wring

I'm not gonna tell you just yet
JavaScript
1
star
76

gdf2013

Google Dev Fest 2013 Workshop
JavaScript
1
star
77

level-net-server

LevelDB TCP Server
JavaScript
1
star
78

madeiranature_wp_import

1
star
79

flatware-cookie-parser

Cookie Parser middleware for Flatiron.js
1
star
80

lxjs-kinect

LXJS Kinect Photo booth hack
Processing
1
star
81

skiff-tcp-nlsjson

New-line separated JSON over TCP transport layer for Skiff
JavaScript
1
star
82

humanize-deep-diff

Human (English) description of a deep-diff output
JavaScript
1
star
83

roar

Node Sound for Mac
C++
1
star
84

json-duplex-stream

JSON duplex stream
JavaScript
1
star
85

pgte.github.com

1
star
86

video_example

JavaScript
1
star
87

applied-websockets-article-code

JavaScript
1
star
88

essential

Streaming all the way - Under construction
JavaScript
1
star