Seneca data store plugin that uses plain JSON files

npm install seneca-jsonfile-store
9 downloads in the last week
25 downloads in the last month


Node.js seneca data storage module that uses JSON files.

This module is a plugin for the Seneca framework. It provides a storage engine that uses JSON files to persist data. It is not appropriate for production usage, it is intended for very low workloads, and as a example of a storage plugin code base.


If you're using this module, feel free to contact me on twitter if you have any questions! :) @rjrodger

Current Version: 0.1.4

Tested on: node 0.10.24, seneca 0.5.17

Build Status

Quick example

var seneca = require('seneca')()

  var apple = seneca.make$('fruit')  = 'Pink Lady'
  apple.price = 0.99$(function(err,apple){
    console.log( " = "  )


npm install seneca
npm install seneca-jsonfile-store


You don't use this module directly. It provides an underlying data storage engine for the Seneca entity API:

var entity = seneca.make$('typename')
entity.someproperty = "something"
entity.anotherproperty = 100$( function(err,entity){ ... } )
entity.load$( {id: ...}, function(err,entity){ ... } )
entity.list$( {property: ...}, function(err,entity){ ... } )
entity.remove$( {id: ...}, function(err,entity){ ... } )


cd test
mocha jsonfile.test.js --seneca.log.print
npm loves you