Skip to content

albertnahas/persona-kit

Repository files navigation

PersonaKit

Build AI chat applications without the complexity. PersonaKit provides a tiny, opinionated SDK for creating persona-driven AI agents with RAG and memory.

Features

  • Agent Creation - Configure AI agents with personality and instructions
  • Knowledge Base - RAG with pluggable vector stores and embedders
  • Memory - Conversation persistence with KV and SQLite adapters
  • Streaming - Built on Vercel AI SDK for real-time responses
  • React Hook - useChatAgent() for instant UI integration

Quick Start

npm install personakit
import { createAgent } from "personakit";

const agent = createAgent({
  name: "DocBot",
  personality: "helpful, concise",
  instructions: "Answer using the docs.",
  knowledgeBase: "./docs",
});

// In your Next.js API route
export const POST = agent.handle;

Packages

Package Description
personakit Core SDK
next-starter Next.js template
basic-node Node.js example

Template

Clone the starter template for the fastest path to deployment:

npx degit personakit/personakit/templates/next-starter my-agent
cd my-agent
pnpm install
pnpm dev

Edit personakit/agent.ts, drop docs in personakit/knowledge/, deploy to Vercel.

Examples in Production

See PersonaKit in action:

Building with PersonaKit? Add your project!

Documentation

License

MIT

About

A developer toolkit for building AI chat applications with personality, RAG, and memory

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors

Languages