Documentation
Learn how to build AI-powered applications with the SMRT framework.
Quick Start
npm install @happyvertical/smrt-core
import { SmrtObject, smrt } from '@happyvertical/smrt-core';
@smrt()
class Task extends SmrtObject {
title: string = '';
completed: boolean = false;
}
const tasks = await TaskCollection.create({ db: 'tasks.db' });
const task = await tasks.create({ title: 'Learn SMRT' });
console.log(task.id); // auto-generated UUID Core Concepts
- Objects — Persistent entities with AI-powered methods
- Collections — Query, filter, and manage sets of objects
- Agents — Autonomous actors with persistent state
- Dispatch — Inter-agent async messaging