A modular full-stack platform to manage and run AI agents using SvelteKit, Supabase, and SHADCN UI.
Clone the repo and get started locally:
git clone https://github.com/your-org/bigstep-labs-sveltekit.git
cd bigstep-labs-sveltekit
npm install
npm run dev
Configure your .env file with your Supabase keys and providers (OpenAI, Gemini, etc.).
## ๐งฑ Tech Stack
| Layer | Technology |
|---------------|-------------------------------------------------------------|
| Frontend | SvelteKit + SHADCN UI |
| Backend | Supabase (Postgres + Auth) |
| AI Providers | OpenAI ยท Gemini ยท DeepSeek (via API key manager) |
| Auth | Supabase Magic Link + Row Level Security (RLS) |
| State | Svelte stores + Cursor `.cursorrules` |
---
## ๐ Folder Structure (Simplified)
src/
โโโ lib/
โ โโโ components/ โ UI, modals, shared SHADCN components
โ โโโ docs/ โ AI-readable developer docs
โ โโโ server/ โ Supabase/LLM integration logic
โ โโโ stores/ โ Global Svelte stores (models, user, etc.)
โโโ routes/
โ โโโ agents/ โ Agent creation + config UI
โ โโโ datasets/ โ Upload & link corpora/glossaries
โ โโโ personas/ โ Define personas & tone
โ โโโ workbench/ โ Run structured tasks
โ โโโ documentation/ โ Markdown docs via mdsvex
โ โโโ release-notes/ โ Changelog markdown and UI
---
## ๐ง Features
- Create & manage agents (model + persona + dataset + tools)
- Upload datasets (CSV, TMX, glossary)
- Create personas (tone, use case, prompt)
- Link datasets and tools to agents (e.g. glossary, TMX, RAG)
- Fully responsive SHADCN UI
- Workbench for task execution
- Cursor AI integration with `.cursorrules` and `.md` documentation
---
## ๐ Indexed Docs
These documents are registered with Cursor's **Indexing & Docs** system:
- `src/lib/docs/architecture.md` โ platform structure and logic
- `src/routes/release-notes/rn-content.md` โ changelog entries
- `README.md` โ this file
---
## ๐ฌ Assistant System Logic
- Chat using `/assistant/chat`
- Agents apply: model profile, persona prompt, datasets
- Supabase tables (planned): `chat_sessions`, `messages`
- AI calls handled by `lib/server/llm.ts`
---
## ๐ Supabase & Security
- Magic Link auth
- RLS enabled on all tables
- Each record scoped with `user_id = auth.uid()`
**Example RLS policy:**
```sql
CREATE POLICY "Users access only their data"
ON models FOR SELECT
USING (user_id = auth.uid());