Adding AI to web apps typically requires 50+ lines of boilerplate. State for messages, loading states, error handling, API calls, stream management, history tracking — the list goes on.
Speck.js eliminates all of that.
One Line. Full AI Chat.
<Agent.Chat purpose="You are a helpful assistant" />
That's a complete chat interface with streaming responses, conversation history, and error handling. No state management. No useEffect. No boilerplate.
Persistent Memory — A Framework First
Speck.js v0.4.1 introduces something no other framework offers: built-in persistent memory.
<Agent.Chat
id="support-bot"
purpose="You are a helpful assistant"
memory={true}
/>
With memory={true}, agents remember conversations across browser sessions. Page refreshes, browser restarts, even system reboots — the memory persists. No external database configuration required.
How Memory Works
- Session IDs stored in localStorage
- Conversations saved to local SQLite via libSQL
- Last 100 interactions automatically loaded into context
- Each agent maintains isolated memory via the
idprop
Zero Imports
Speck.js components auto-discover each other:
<App>
<Header />
<ChatBot />
<Footer />
</App>
No import statements. The compiler resolves dependencies automatically.
Getting Started
npm create speck-app@latest my-app
cd my-app
npm run dev
Add an Anthropic API key to .env and start building AI-native applications immediately.
Developer Tools
Speck.js includes full tooling support:
- 🧩 VS Code Extension — Syntax highlighting and IntelliSense for
.speckfiles - ⚡ Hot Reload — Instant compilation on save
- 🛠️ Built-in Dev Server — API proxy included for seamless Claude integration
Links
- 🌐 Website: speckjs.dev
- 📦 npm: create-speck-app
- 📖 Documentation: speckjs.dev/docs.html
On the Roadmap
- Semantic memory recall via vector search
- Multi-agent coordination
- Additional agent types beyond chat
Top comments (0)