Platform Overview
What the Dietrich Analysis Research Education (DARE) Platform provides and how its parts fit together.
React/TypeScript frontend for the Dietrich Analysis Research Education (DARE) Platform.
What is DARE?
The Dietrich Analysis Research Education (DARE) Platform is an open-source, multi-LLM research and conversation platform. It gives you one vendor-agnostic interface to OpenAI, Anthropic Claude, Google Gemini and self-hosted LLaMA models, with file-grounded retrieval (RAG), Model Context Protocol (MCP) tools, visual multi-step workflows and real-time streaming.
DARE is built for researchers and institutions that need more than a chatbot: document intelligence, reproducible workflows and per-user usage tracking in one place.
This repository is the DARE web frontend, the main user interface for the platform. It talks to the DARE backend over REST and Socket.IO, and handles:
- The browser UI for chat, files, workflows, research, usage and settings
- Client state in Redux Toolkit and live streaming over Socket.IO
- The
/docssite indocs-site/, built into the samedist/as the app
DARE runs standalone. The DARE frontend and backend are all you need to run the platform. Socratic Bots is a separate, optional platform built on top of DARE.
Screenshots
Usage dashboard — activity, conversations, tokens, and wallet balance, all at a glance the moment you land:
<p align="center"> <img src="public/screenshots/dashboard.png" alt="DARE usage dashboard overview showing AI messages, conversations, files, token counts, and wallet balance" width="900" /> </p>
| Multi-LLM chat — streaming conversations with per-conversation tools and controls<br/><img src="public/screenshots/conversation.png" alt="Conversation view with configuration panel" width="440" /> | Workflow builder — multi-step pipelines with conditional routing and human validation<br/><img src="public/screenshots/workflows.png" alt="Visual workflow builder canvas" width="440" /> |
| Research mode — agent-gathered sources, human-reviewed before becoming knowledge<br/><img src="public/screenshots/research-mode.png" alt="Research workspace with review pipeline" width="440" /> | Cost tracking — a wallet per user, a ledger per message<br/><img src="public/screenshots/cost-wallet.png" alt="Cost tracking with wallet balance and transaction history" width="440" /> |
| Files & RAG — upload and tag a corpus, ground answers in it<br/><img src="public/screenshots/files.png" alt="File manager with processing status" width="440" /> | Environmental impact — every message metered for energy, carbon, and water, with per-model breakdowns and real-world equivalents<br/><img src="public/screenshots/environmental-usage.png" alt="Environmental impact dashboard with energy, carbon, and water usage" width="440" /> |
Overview
flowchart TB
browser["Browser"]
subgraph frontend["DARE Frontend (React 18)"]
routes["React Router v6\nRoutes -> Pages"]
components["Feature Components\nConversation, Workflows, Files, Artifacts"]
primitives["UI Primitives\nRadix + Tailwind"]
store["Redux Toolkit Store\nSlices + async thunks"]
sockets["Socket.IO Middleware\n/chat + /workflow"]
api["API Layer\nAxios clients by domain"]
end
backend["DARE Backend"]
browser --> frontend
routes --> components
components --> primitives
components --> store
store --> api
store --> sockets
api <-->|REST| backend
sockets <-->|Socket.IO| backendThe frontend is a static single-page app. A Redux Toolkit store drives the feature components, an Axios API layer calls the backend over REST, and Socket.IO middleware streams chat and workflow events. docs/explanation/architecture.md has the full picture.
Features
- Multi-LLM chat. Streaming conversations with OpenAI, Anthropic, Google and self-hosted LLaMA models.
- File-grounded RAG. Upload documents and reference them in chat.
- Visual workflow builder. Design and run multi-step AI workflows as a DAG.
- Prompt templates. Reusable, parameterized prompts.
- Artifacts. Rich rendering for code, diagrams and documents the model emits.
- MCP integration. Connect Model Context Protocol servers for tool use.
Quick start
You need Node.js 22+ and a running DARE backend on
http://localhost:8000.
git clone https://github.com/cmudco/dare-frontend.git
cd dare-frontend
npm install
cp .env.example .env # defaults point at a backend on http://localhost:8000
npm run devOpen http://localhost:5173. docs/tutorials/quickstart.md has the
full walkthrough and every npm script; docs/how-to/deploy.md covers
production.
Documentation
| Kind | Doc | What's in it |
|---|---|---|
| Tutorial | docs/tutorials/quickstart.md | Run the frontend locally: install, configure, npm run dev |
| How-to | docs/how-to/deploy.md | Build dist/ and serve it in production, with a Docker recipe |
| Reference | docs/reference/configuration.md | Every Vite environment variable, with default and description |
| Explanation | docs/explanation/architecture.md | Components, state, Socket.IO and the API layer |
| Explanation | docs/explanation/document-processing.md | Basic and Advanced document processing, and what Advanced costs |
| Project | .github/CONTRIBUTING.md | Issues, branches, pull requests and commit messages |
| Project | docs/reference/rules.md | Coding rules and project conventions |
| Project | .github/SECURITY.md | How to report a vulnerability |
| Project | AGENTS.md | Commands and traps for AI coding agents |
| Project | BRAND.md | Rules for using the DARE name and marks |
docs-site/ renders these pages, together with the backend's, as the app's /docs site.
Tech stack
- React 18 and TypeScript
- Vite for the dev server and build
- Redux Toolkit for state
- React Router v6
- Tailwind CSS v4 and shadcn/ui (Radix UI primitives)
- Socket.IO client for live chat and workflow streaming
- Formik + Yup for forms
- Zod for runtime validation of Socket.IO events
- Axios for HTTP
- Next.js + Fumadocs for the docs site in
docs-site/
What is included in this repo?
src/, the application source:api/: API layer, one file per domaincomponents/: UI by feature (Conversation/,WorkflowBuilder/,FileManager/,Artifacts/,Layout/, andui/primitives)redux/: store, slices, async thunks, Socket.IO middleware, types and workflow-canvas statepages/,routes/,schemas/(Zod),config/,themes/andutils/
docs/: tutorial, how-to, reference and explanation pagesdocs-site/: the Fumadocs site that renders this repo's and the backend's docs at/docs
What is not included in this repo?
- dare-backend: the Django REST + Socket.IO backend this frontend depends on (run it separately)
- socraticbots-frontend: the Socratic Bots frontend (private repo for now)
- socraticbots-backend: the Socratic Bots backend that proxies to DARE (private repo for now)
Stay in touch
- Bug or feature request? Open an issue on this repository.
- Security issue? Follow .github/SECURITY.md; do not open a public issue.
- Questions? Email the project team at vks@andrew.cmu.edu.
Acknowledgements
DARE is an Open Forum for AI (OFAI) initiative of Carnegie Mellon University Libraries.
Carnegie Mellon University owns the DARE name and marks. The DARE Brand Guidelines & Usage Policy governs use of the name, wordmark, Scotty dog mark, header lockup and footer badge, separately from the software license.
DARE integrates with third-party APIs (Anthropic, OpenAI, Google and others). Each provider's own terms of service govern your use of its API.
Contributors
DARE is built and maintained by contributors at Carnegie Mellon University and in the open-source community.
Creators
<table> <tr> <td align="center" valign="top" width="33.33%"><img src="https://ui-avatars.com/api/?name=Sayeed+Choudhury&size=100&background=162B4B&color=fff" width="100" height="100" style="border-radius:50%" alt="Sayeed Choudhury" /><br /><sub><b>Sayeed Choudhury</b></sub><br />Creator</td> <td align="center" valign="top" width="33.33%"><img src=".github/assets/team/vince.png" width="100" height="100" style="border-radius:50%" alt="Vincent Sha" /><br /><sub><b>Vincent Sha</b></sub><br />Creator</td> <td align="center" valign="top" width="33.33%"><img src=".github/assets/team/george.png" width="100" height="100" style="border-radius:50%" alt="George Cann" /><br /><sub><b>George Cann</b></sub><br />Creator</td> </tr> </table>
Team
<table> <tr> <td align="center" valign="top" width="33.33%"><img src=".github/assets/team/carl.png" width="100" height="100" style="border-radius:50%" alt="Carl Skipper" /><br /><sub><b>Carl Skipper</b></sub><br />Contributor</td> <td align="center" valign="top" width="33.33%"><img src="https://ui-avatars.com/api/?name=Muhammad+Abdurrehman&size=100&background=162B4B&color=fff" width="100" height="100" style="border-radius:50%" alt="Muhammad Abdurrehman" /><br /><sub><b>Muhammad Abdurrehman</b></sub><br />Team Lead</td> <td align="center" valign="top" width="33.33%"><img src="https://ui-avatars.com/api/?name=Brian+Wingenroth&size=100&background=162B4B&color=fff" width="100" height="100" style="border-radius:50%" alt="Brian Wingenroth" /><br /><sub><b>Brian Wingenroth</b></sub><br />Developer</td> </tr> <tr> <td align="center" valign="top" width="33.33%"><img src="https://ui-avatars.com/api/?name=Farhat+Abbas&size=100&background=162B4B&color=fff" width="100" height="100" style="border-radius:50%" alt="Farhat Abbas" /><br /><sub><b>Farhat Abbas</b></sub><br />Developer</td> <td align="center" valign="top" width="33.33%"><img src="https://ui-avatars.com/api/?name=Hariss+M&size=100&background=162B4B&color=fff" width="100" height="100" style="border-radius:50%" alt="Hariss M." /><br /><sub><b>Hariss M.</b></sub><br />Developer</td> <td align="center" valign="top" width="33.33%"><img src="https://ui-avatars.com/api/?name=Eira+Khan&size=100&background=162B4B&color=fff" width="100" height="100" style="border-radius:50%" alt="Eira Khan" /><br /><sub><b>Eira Khan</b></sub><br />QA</td> </tr> </table>
License
DARE is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only); the full text is in LICENSE and at <https://www.gnu.org/licenses/agpl-3.0.en.html>. The license does not grant rights to the DARE name or marks; see the DARE Brand Guidelines & Usage Policy.