Skip to content
MrScriptyPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chrema

Compose agent workflows without losing the history behind their results.

Chrema provides two reusable JavaScript packages: agent-platform records workflows, assignments, tool activity and review; content-ledger tracks content versions, relationships, usage and delivery decisions. Use either independently, or combine them in your application.

You supply the workflow steps, executors, model adapters and policies. Chrema supplies the lifecycle, validation and records around them.

Try it in a minute

Requires Node.js 22.12 or later:

git clone https://github.com/MrScripty/Chrema.git
cd Chrema
node examples/memory-workflow.mjs

The example runs two deterministic text-processing steps and prints their completed run, original input and trace. It needs no package installation, database, API key or model. Its in-memory state disappears when the process exits.

Use the packages in an application

There is no npm registry release yet. Build and pack local archives from the checkout:

package_workspace=$(mktemp -d)
node scripts/build.mjs --out "$package_workspace/packages"
node scripts/audit.mjs --packages "$package_workspace/packages"
npm pack --offline --ignore-scripts --pack-destination "$package_workspace" "$package_workspace/packages/agent-platform"
npm pack --offline --ignore-scripts --pack-destination "$package_workspace" "$package_workspace/packages/content-ledger"

Install the archive you need from your application's directory:

npm install /path/to/agent-platform-0.0.0.tgz
# Or: npm install /path/to/content-ledger-0.0.0.tgz

For example:

import { createAgentWorkflowJournalFactory } from 'agent-platform/journal';
import { normalizeContentVersion } from 'content-ledger/capture';

Both packages have no external npm runtime dependencies and do not import each other. See the API guide for entry points and host contracts.

Add durable storage when you need it

The workflow journal supports memory and PostgreSQL. Durable checkpoints and the content ledger's persistence implementation use PostgreSQL; applications supply the database, driver and access policy. Installing Chrema does not start a database or apply SQL. Read storage requirements before enabling persistence.

Develop

node scripts/audit.mjs
node --test tests/*.test.mjs

Development guide covers packaging, explicit source inventories and disposable PostgreSQL acceptance.

Apache-2.0 License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages