This is Kudocracy.Survey, an open-source platform for citizen consultation and participatory democracy.
- Frontend: React, Vite, Tailwind CSS.
- Backend: Netlify Functions (Serverless).
- Database: Supabase (PostgreSQL).
- AI: Integrates with OpenAI, Hugging Face, and Anthropic.
- Key Features: Wiki, Forum, Voting, AI Assistant (Ophélia).
Refer to .rules.md for environment requirements and coding standards.
pnpm install
cp .env.example .env# Start Netlify dev server
netlify devURL: http://localhost:8888
The project includes specialized CLI tools for testing RAG and SQL logic:
RAG Chat Test:
node scripts/rag_chat_cli.js "Your question for Ophélia" --top 8 --fetch-limit 1500 --jsonSQL Endpoint Test:
RAG_SQL_ENDPOINT=https://<your-site>/api/chat-stream \
CLI_TOKEN=<your-netlify-cli-token> \
node scripts/rag_chat_cli.js --sql "SELECT id, title FROM wiki_pages ORDER BY updated_at DESC" --limit 50 --json- Central Config: Uses a "vault" system. See
docs/CONFIGURATION_VAULT.md. - Knowledge Base: AI knowledge is synced via
scripts/sync-actes-rag.js. - API Reference: See .api-docs.md for available tools and schemas