{"id":40374207,"url":"https://github.com/digdir/digdir-rag-frontend","last_synced_at":"2026-01-20T11:33:54.375Z","repository":{"id":327418567,"uuid":"1107517273","full_name":"digdir/digdir-rag-frontend","owner":"digdir","description":"Headless RAG demo app","archived":false,"fork":false,"pushed_at":"2025-12-03T14:18:07.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-06T18:43:05.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digdir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-01T08:49:21.000Z","updated_at":"2025-12-03T14:19:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/digdir/digdir-rag-frontend","commit_stats":null,"previous_names":["digdir/digdir-rag-frontend"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/digdir/digdir-rag-frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-rag-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-rag-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-rag-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-rag-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digdir","download_url":"https://codeload.github.com/digdir/digdir-rag-frontend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-rag-frontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-20T11:33:53.852Z","updated_at":"2026-01-20T11:33:54.368Z","avatar_url":"https://github.com/digdir.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAG Chat Application\n\n\u003e **Note:** This project is a demonstration and is of alpha quality. It is not intended for production use without further development and testing.\n\nA chat application with Retrieval Augmented Generation (RAG) capabilities, consisting of a React frontend and a Node.js backend-for-frontend (BFF) that proxies requests to a Headless RAG API.\n\n## Architecture\n\n```\n┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐\n│                 │     │                 │     │                 │\n│  React Frontend │────▶│  Node.js BFF    │────▶│  Headless RAG   │\n│  (Vite + TS)    │     │  (Express)      │     │  (RAG + Data)   │\n│                 │     │                 │     │                 │\n└─────────────────┘     └─────────────────┘     └─────────────────┘\n```\n\n- **Frontend**: React 19 with TypeScript, Vite, TanStack Query, Zustand, and Tailwind CSS\n- **Backend BFF**: Node.js/Express providing authentication and API proxying\n- **Headless RAG API**: External RAG service (not included in this repository)\n\n## Quick Start\n\n### Prerequisites\n\n- Node.js 18+\n- A running Headless RAG API backend with an API key\n\n### Setup\n\n1. **Install dependencies for both projects:**\n\n```bash\ncd frontend \u0026\u0026 npm install\ncd ../backend-bff \u0026\u0026 npm install\n```\n\n2. **Configure the backend:**\n\n```bash\ncd backend-bff\ncp .env.example .env\n# Edit .env with your configuration\n```\n\n3. **Start both services:**\n\n```bash\n# Terminal 1 - Backend BFF\ncd backend-bff \u0026\u0026 npm run dev\n\n# Terminal 2 - Frontend\ncd frontend \u0026\u0026 npm run dev\n```\n\n4. **Access the application:**\n   - Frontend: http://localhost:5173\n   - Backend BFF: http://localhost:3000\n\n## Project Structure\n\n```\nrag-frontend/\n├── frontend/          # React frontend application\n│   └── README.md      # Frontend-specific documentation\n├── backend-bff/       # Node.js backend-for-frontend\n│   └── README.md      # Backend-specific documentation\n└── README.md          # This file\n```\n\n## Documentation\n\nFor detailed information about each component, see:\n\n- [Frontend README](frontend/README.md) - React application setup, features, and development\n- [Backend BFF README](backend-bff/README.md) - Authentication, API endpoints, and deployment\n\n## Features\n\n- Domain-based email authentication\n- Session management\n- Conversation management\n- RAG-powered chat with streaming responses\n- Markdown and LaTeX rendering\n- Norwegian Design System UI components\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigdir%2Fdigdir-rag-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigdir%2Fdigdir-rag-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigdir%2Fdigdir-rag-frontend/lists"}