diff --git a/AGENTS.md b/AGENTS.md index b05d83c..4632668 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,4 +1,4 @@ # Reminders * examples use npm not pnpm -* before merging, check the CI pipeline, lint, build, etc... then npm login and npm publish mindcache if relevant. +* when the user wants to merge a branch, check the CI pipeline, lint, build, etc... then npm login and npm publish mindcache if relevant. diff --git a/docs/index.html b/docs/index.html index 95251f2..ced8ebe 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@
A hosted, collaborative key-value store for AI agents
+All key-value data stored securely in the cloud with automatic sync between clients.
+WebSocket-based live updates. Subscribe to specific keys or entire instances.
+Share projects and instances with teams. Granular permissions for read/write/admin access.
+Chat API, image generation, web search, and transform APIs — all reading from MindCache.
+Free tier available • No credit card required
useMindCache hook handles async init, loading state, and cleanup automatically
+Drop-in <MindCacheChat> component and hooks for building AI apps in minutes
Real-world use cases for AI agents
// Full AI Chat App in ~15 Lines
+import { MindCacheProvider, MindCacheChat } from 'mindcache';
+
+function App() {
+ return (
+ <MindCacheProvider
+ ai={{
+ provider: 'openai', // or 'anthropic'
+ model: 'gpt-4o',
+ keyStorage: 'localStorage' // API key stored locally
+ }}
+ mindcache={{
+ indexedDB: { dbName: 'my-app' } // Local persistence
+ }}
+ >
+ <MindCacheChat
+ welcomeMessage="Hello! I'm your AI assistant."
+ placeholder="Type a message..."
+ />
+ </MindCacheProvider>
+ );
+}
+
+// That's it! No server, no API routes, no backend.
+ Drop-in AI chat with streaming responses, tool integration, and MindCache memory. + API keys stay in the browser. Works offline with IndexedDB persistence.
+useMindCacheContext() - Access MindCache instance & AI configuseClientChat() - Build custom chat UIsuseLocalFirstSync() - Sync to GitHub// Auto Tool Generation for AI Agents
import { mindcache } from 'mindcache';
@@ -334,7 +354,7 @@ Context Management & System Prompts
// MindCache 2.0 Cloud Sync
+ // MindCache Cloud Sync
import { MindCache } from 'mindcache';
// Connect to MindCache Cloud with built-in sync
@@ -368,7 +388,7 @@ Context Management & System Prompts
MindCache 2.0 adds seamless cloud persistence. Same simple API — data automatically syncs +
Seamless cloud persistence with the same simple API — data automatically syncs across all clients in real-time. Share instances with your team, connect AI agents, and build collaborative workflows.
Full LLM friendly DocumentationComprehensive llms-full.md for LLMs, AI agents, and vibe coding — copy the entire file into your context
+ + +MindCacheProvider, MindCacheChat, and hooks for local-first AI apps
+