Loading repository data…
Loading repository data…
dierbei / repository
Ultra-lightweight (63KB) RAG SDK to integrate any LLM (DeepSeek, OpenAI, Claude, Llama) into any website with ONE line of code. Features Shadow DOM isolation, multi-tenant Go backend, and self-hosted SQLite privacy. 100% Free & Open Source.
🚀 Integrate a professional, aesthetic AI assistant widget into any website with just one line of code.
A full-stack, open-source solution powered by a high-performance Go backend, a lightweight Shadow DOM-based frontend SDK, and a professional management console.
.
├── web-ai-sdk/ # Frontend SDK (TypeScript + Preact)
│ └── Integratable chat widget with multiple skin presets.
├── web-ai-sdk-backend/ # Backend Service (Go + Gin + Eino)
│ └── SSE streaming, Multi-tenant RAG, and SQLite persistence.
├── web-ai-sdk-admin/ # Admin Console (Vue 3 + Vite)
│ └── GUI for managing tenants, agents, and knowledge bases.
└── website/ # Official Website (Vite + Tailwind)
└── Landing page and product documentation.
primaryColor and the SDK generates all shadows, glows, and contrast adjustments automatically.absolute/fixed positioning logic.Requires Go 1.25+.
cd web-ai-sdk-backend
cp .env.example .env # Configure your API keys
go run main.go
The service starts at http://localhost:8080.
cd web-ai-sdk-admin
npm install
npm run dev
Access the dashboard to create your first tenant and get your tenantId.
<script src="https://unpkg.com/@dierbei/web-ai-sdk/dist/index.umd.js"></script>
<script>
window.WebAiSdk.init({
tenantId: "your-tenant-id",
apiHost: "http://localhost:8080",
});
</script>
import { onMounted } from "vue";
import WebAiSdk from "@dierbei/web-ai-sdk";
onMounted(() => {
WebAiSdk.init({
tenantId: "your-tenant-id",
apiHost: "http://localhost:8080",
});
});
import { useEffect } from "react";
import WebAiSdk from "@dierbei/web-ai-sdk";
function MyChat() {
useEffect(() => {
WebAiSdk.init({
tenantId: "your-tenant-id",
apiHost: "http://localhost:8080",
});
}, []);
return <div id="chat-container" />;
}
Built with ❤️ by [Dierbei]. This project is open-source under the MIT license.