MCPcopy Index your code
hub / github.com/dshaw/mixture

github.com/dshaw/mixture @v0.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.2 ↗ · + Follow
52 symbols 94 edges 9 files 2 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Mixture

Heterogeneous cluster task manager designed to manage and coordinate tasks amongst multiple, diverse child processes.

Status

Travis Build Status

Install

npm install mixture

Usage - Cluster More!

var mix = require('mixture').mix('epic')

var ioPort = 8880
  , nodeId = 0

// announce data server
mix.task('announce').fork('data.js');

// socket.io instances
var socketio = mix.task('socket.io', { filename: 'app.js' })

for (var i = 0; i < count; i++) {
  ioPort++;
  nodeId++;

  var worker = socketio.fork({ args: [ioPort, nodeId] })
}

Sample App

License

(The MIT License)

Copyright (c) 2012 Daniel D. Shaw, http://dshaw.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Core symbols most depended-on inside this repo

Mix
called by 1
lib/mixture.js
dataStream
called by 1
examples/stock-quotes/data.js
Task
called by 0
lib/task.js
noop
called by 0
lib/mixture.js

Shape

Function 52

Languages

TypeScript100%

Modules by API surface

examples/stock-quotes/js/jquery-1.6.4.min.js48 symbols
lib/mixture.js2 symbols
lib/task.js1 symbols
examples/stock-quotes/data.js1 symbols

For agents

$ claude mcp add mixture \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact