design, develop, organize code

design, develop and organize your code

Seneca is a microservices toolkit for Node.js.
It helps you write clean, organized code that you can scale and deploy at any time.

 $ npm install seneca --save 

What is Seneca?

Seneca is a microservices toolkit for Node.js. It provides plugins that look after the foundations of your app. This leaves you free to focus on the real, business code. No need to worry about which database to use, how to structure your components, or how to manage dependencies. Just start coding.

You write everything as a command. Your commands get called whenever they match a set of properties. Your calling code doesn't know, or care, which command gets the work done. One JavaScript object goes in, and another comes out, asynchronously.


Try Seneca now


Example: a bare bones microservice

var seneca = require('seneca')()

seneca.add({ role:'user', cmd:'login' }, function (args, callback) {
  callback(null, { loggedIn:true })


Example: a bare bones client

var seneca = require('seneca')()
var client = seneca.client()

client.act({ role:'user', cmd:'login' }, function (err, result) {

Who's using Seneca

Do you use Seneca too? Let us know.