https://github.com/mobinx/agentify
#1 Fastest Simplest Typescript Agent Framework optimized for serverless workload
https://github.com/mobinx/agentify
Last synced: 11 months ago
JSON representation
#1 Fastest Simplest Typescript Agent Framework optimized for serverless workload
- Host: GitHub
- URL: https://github.com/mobinx/agentify
- Owner: MobinX
- License: mit
- Created: 2025-07-15T08:12:49.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-15T08:55:18.000Z (12 months ago)
- Last Synced: 2025-07-15T19:34:06.064Z (12 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# agentify
#1 Fastest Simplest Typescript Agent Framework optimized for serverless workload
## Installation
```bash
npm install @agentify/core
```
## Quick Start
```typescript
import { createAgent, Agent, AgentConfig, AgentContext, AgentResponse } from '@agentify/core';
// Create a simple agent using the factory function
const simpleAgent = createAgent(
{ name: 'HelloAgent', version: '1.0.0' },
async (context: AgentContext): Promise => {
return {
success: true,
data: `Hello, ${context.name || 'World'}!`
};
}
);
// Or extend the Agent class
class CustomAgent extends Agent {
async execute(context: AgentContext): Promise {
try {
// Your agent logic here
const result = await someAsyncOperation(context);
return { success: true, data: result };
} catch (error) {
return { success: false, error: error.message };
}
}
}
// Usage
const agent = new CustomAgent({ name: 'MyAgent' });
const response = await agent.execute({ input: 'some data' });
```
## Features
- ⚡ **Fast**: Optimized for serverless workloads
- 🔧 **Simple**: Minimal API surface
- 📝 **TypeScript**: Full type safety
- 🚀 **Serverless**: Perfect for AWS Lambda, Vercel, etc.
## API
### Interfaces
- `AgentConfig`: Configuration for agents
- `AgentContext`: Input context for agent execution
- `AgentResponse`: Standardized response format
### Classes
- `Agent`: Abstract base class for creating agents
- `createAgent()`: Factory function for simple agents