{"slug": "chatstore-persistent-chat-history-service-for-llm-apps-zero-infrastructure", "title": "chatstore – persistent chat history service for LLM apps, zero infrastructure", "summary": "A developer open-sourced chatstore, a lightweight, framework-agnostic persistent chat library for LLM applications. The library requires zero infrastructure, uses SQLite for storage, supports sliding window context, and offers optional semantic search with local embeddings. It works with any LLM and can be installed via pip with minimal code.", "body_md": "🚀 I just open-sourced chatstore — a lightweight, framework-agnostic persistent chat library for LLM applications.\n\nIf you've ever built an AI assistant or agent, you know the pain:\n\n→ Where do I store conversation history?\n\n→ How do I feed a sliding window to the LLM without blowing the context limit?\n\n→ How do I retrieve relevant past context without spinning up a server?\n\nMost solutions either lock you into a framework (LangChain), require Docker + a running server (Zep), or need an LLM call just to store a memory (Mem0).\n\nchatstore does none of that.\n\n✅ One class. Zero infrastructure.\n\n✅ Works with any LLM — OpenAI, Gemini, Anthropic, Ollama, anything\n\n✅ Persistent history backed by SQLite (swappable to Postgres)\n\n✅ Sliding window context — configurable, token-aware\n\n✅ Optional semantic search with local embeddings (no API key needed)\n\n𝗩𝗲𝗿𝘀𝗶𝗼𝗻 𝟭 — drop in and go:\n\npip install chatstore\n\n𝗩𝗲𝗿𝘀𝗶𝗼𝗻 𝟮 — add vector memory with one flag:\n\npip install chatstore[semantic]\n\nStart using it in 3 lines:\n\nfrom chatstore import ChatService\n\nchat = ChatService(project_id=\"my_app\")\n\nchat.save_message(\"user\", \"Hello!\")\n\nThat's it. No config files. No environment setup. No servers.\n\n🔗 GitHub → [https://github.com/namankr/chatstore](https://github.com/namankr/chatstore)\n\nIf this saves you even an hour of boilerplate work, drop a ⭐ on the repo — it genuinely helps more developers discover it.\n\nAnd if you're building something with LLMs, I'd love to hear what you're working on. Drop a comment or DM me 👇", "url": "https://wpnews.pro/news/chatstore-persistent-chat-history-service-for-llm-apps-zero-infrastructure", "canonical_source": "https://dev.to/naman_kumar_29295fe9d5838/chatstore-persistent-chat-history-service-for-llm-apps-zero-infrastructure-566f", "published_at": "2026-06-19 07:02:50+00:00", "updated_at": "2026-06-19 07:30:40.309717+00:00", "lang": "en", "topics": ["large-language-models", "developer-tools", "ai-tools"], "entities": ["chatstore", "SQLite", "Postgres", "OpenAI", "Gemini", "Anthropic", "Ollama", "LangChain"], "alternates": {"html": "https://wpnews.pro/news/chatstore-persistent-chat-history-service-for-llm-apps-zero-infrastructure", "markdown": "https://wpnews.pro/news/chatstore-persistent-chat-history-service-for-llm-apps-zero-infrastructure.md", "text": "https://wpnews.pro/news/chatstore-persistent-chat-history-service-for-llm-apps-zero-infrastructure.txt", "jsonld": "https://wpnews.pro/news/chatstore-persistent-chat-history-service-for-llm-apps-zero-infrastructure.jsonld"}}