TotalFusionFOR TOTAL.JS AND NODE.JS

Documentation

TotalFusion extends Total.js with other runtimes. These pages explain how to use it. The README of the project is the short version.

Start here#

Getting startedInstall it, call your first function, and make it an action of Total.js.
TutorialsStep by step, with an application that is tested on every change.
Use casesWhat it is good for, with the numbers that were measured.
How it worksThe pool, the workers and the protocol.

The runtimes#

PythonMachine learning and any Python library. Available.
RustSpeed, threads and a small footprint. Available.
GoNetwork and infrastructure code, many calls at once, easy to build for any system. Available.
WebAssemblyFunctions in a sandbox, in one file that runs on any system. Available.

Features that every runtime shares#

Total.js 5Actions, validation, permissions, API routes, MCP tools and Server-Sent Events.
FlowSeven components for Total.js Flow: call a function, stream chunks, watch the workers and read the stats.
Binary dataBuffers and typed arrays without base64.
StreamingGenerators as async iterables, with backpressure and cancellation.
Working with the workersConcurrency, recycling, the health check, events and retrying.
Errors and cancellationThe error codes and how a call is cancelled.
Development and diagnosisReload when the code changes, and the doctor.
AI assistantsThe files for models and agents, the schemas, and your functions as tools.
SecurityWhat it protects and what it does not.
ReferenceEvery option, method and command.

About the project#

Changelog · Contributing · The Rust crate · The Go module

Edit this page on GitHub