Coder Social home page Coder Social logo

zenbrain's Introduction

Zenbrain

Zenbrain is an integrated Node.js toolkit for building "intelligent" programs, capable of responding to and learning from real-world data. At its heart is an efficient data processing pipeline, and a modular event handling workflow. Zenbrain includes:

  • a clean, pluggable framework
  • a map/reduce pipeline for live-computing against APIs
  • a method for defining custom bot logic with simple JS functions

zenbrain.js

Exports a basic API for building a new program with Zenbrain embedded in it.

USAGE

In your program folder, npm install --save zenbrain, and then create an executable file:

#!/usr/bin/env node
var version = require('./package.json').version
USER_AGENT = 'your_program/' + version
var zenbrain = require('zenbrain')
var brain = zenbrain(__dirname, 'your_program')
brain.cli()

Zenbrain will now spawn a new CLI app for you containing some default commands. See this guide for how to build your own program.

config.js

The default configuration is here. overridden by placing a config.js in your program's folder.

_codemap.js

Exposes zenbrain as a codemap. Advanced users only :)

core

Required components of Zenbrain.

actions

CLI command handlers - the logic that runs when a command is invoked.

commands

JSON files that define each command and its associated options.

forget

"Forget" a command's run state.

launch

Launch multiple commands.

map

"Map" incoming data, as in live data feeds.

reduce

"Reduce" mapped data, transforming it into ticks.

run

"Run" Zenbrain logic, inputting ticks and outputting actions.

sim

"Simulate" Zenbrain logic, inputting a time period and outputting a fitness score.

status

Show Zenbrain's internal status.

db

Define MongoDB collections used by Zenbrain.

actions

@todo

cache

@todo

indexes

Define MongoDB indexes used by Zenbrain.

locks

Locks on database entries.

logs

Tailable ANSI-ified log messages.

run_states

State information scoped to each command.

thoughts

launcher

learner

logger

mapper

reducer

runner

examples

zen_crawler

zen_ebooks

extras

@todo

utils

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.