backoai
v0.1.0
Published
Backo AI - Intelligent agent platform
Downloads
31
Maintainers
Readme
backoai
Backo AI - Intelligent agent platform
Installation
npm install backoaiQuick Start
const { create } = require('backoai');
const instance = create({ name: 'my-instance' });
// Register an item
instance.register('example', {
handler: async (input) => ({ result: input }),
description: 'Example item'
});
// Retrieve and use
const item = instance.get('example');
console.log(item);
// List all registered items
console.log(instance.list());Features
- Lightweight and zero-dependency
- Plugin and middleware support
- TypeScript support included
- Hook system for lifecycle events
- Searchable registry with metadata
API
create(options?)
Create a new instance.
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| name | string | "default" | Instance name |
| version | string | "0.1.0" | Version identifier |
Instance Methods
.register(key, value, metadata?)— Register an item.get(key)— Retrieve an item by key.has(key)— Check if an item exists.list()— List all registered items.remove(key)— Remove an item.use(hookFn)— Add a processing hook.process(input)— Run input through all hooks.config(key, value?)— Get or set configuration
License
MIT © Backo AI
