The context-aware, open-source productivity workspace that connects your docs, tasks, and team — powered by AI that understands your context.
WorkContext replaces the sprawl of disconnected docs, task trackers, and chat threads with a single AI-native workspace. It reads what you're working on, extracts action items automatically, collaborates in real time, and exports to any professional format — so your team spends less time hunting for context and more time shipping.
- Context-aware AI, not a chat box — The assistant sees your documents, tasks, and workspace history, so answers are grounded in your work, not the public internet.
- Bring Your Own Key (BYOK) — Connect Google AI Studio, OpenAI, Anthropic, or OpenRouter and pay providers directly. No vendor lock-in, no hidden AI markup.
- Real-time collaboration — Google-Docs-style live editing with presence cursors and comments, powered by CRDTs.
- Zero tool overload — Writing, tasks, project management, citations, and exports live in one place.
- Features
- How It Works
- Tech Stack
- Architecture
- Getting Started
- Usage
- Live Demo & Screenshots
- Contributing
- License
- Contact
- AI Workspace Assistant — Context-aware writing, brainstorming, grammar, and research grounded in your workspace (Gemini, OpenAI, Anthropic, OpenRouter).
- Smart Action Extraction — Highlight text and instantly turn it into tasks, assignments, and deadlines.
- Real-time Collaboration — Live multi-user editing, comments, and version history via Yjs/CRDT (Hocuspocus).
- Multi-format Export — PDF, DOCX, LaTeX, RTF, and citation-ready formats (BibTeX/CSL/RIS).
- Workspace & Task Management — Projects, tasks, labels, subtasks, recurring work, and progress tracking.
- Team Chat & Notifications — Threaded discussions per project and a real-time notification server.
- Academic & Citation Tools — Citation confidence scoring, reference management, and plagiarism-aware rephrasing.
- Enterprise-grade Auth — Email OTP, SMS OTP, Google OAuth, and MFA via Supabase.
flowchart LR
A[Write & Organize] --> B[WorkContext AI reads workspace context]
B --> C{ Intelligent actions }
C --> D[Extract tasks & assignments]
C --> E[Suggest edits & citations]
C --> F[Answer questions from your docs]
D --> G[Track in projects & tasks]
E --> H[Export to PDF / DOCX / LaTeX]
F --> I[Team stays in sync]
G --> I
H --> I
| Layer | Technology |
|---|---|
| Frontend | Next.js 16 · React · TypeScript · Tailwind CSS · TipTap · Radix UI |
| Backend | Node.js · Express 5 · TypeScript · Prisma 7 |
| Database | PostgreSQL 17 + pgvector · Prisma ORM |
| Auth & Storage | Supabase (Auth, Postgres, Storage) |
| Real-time | Hocuspocus + Yjs (CRDT) |
| AI Providers | Google Gemini · OpenAI · Anthropic · OpenRouter (BYOK) |
flowchart TB
subgraph Browser["Frontend (Next.js · Vercel)"]
UI[Editor · Dashboard · Chat]
end
subgraph API["Backend (Express · Render)"]
AUTH[Auth & CORS]
AI[AI Service · BYOK routing]
RT[Realtime / Notifications]
TASK[Tasks · Workspaces · Projects]
end
subgraph Data["Data & Services"]
PG[(PostgreSQL + pgvector)]
SB[Supabase Auth]
PROV[AI Providers<br/>Gemini · OpenAI · Anthropic · OpenRouter]
end
UI -->|HTTPS / CORS| AUTH
UI -->|WebSocket| RT
AUTH --> PG
AI --> PG
TASK --> PG
RT --> PG
AI -->|BYOK keys| PROV
AUTH --> SB
- Node.js 20+
- npm (or pnpm / yarn)
- Docker (optional, for a local PostgreSQL instance)
- A Supabase project (auth + database URL)
- At least one AI provider API key (Google AI Studio, OpenAI, Anthropic, or OpenRouter)
git clone https://github.com/marowa-labs/workcontext.git
cd workcontextcd backend
cp .env.example .env # fill in DATABASE_URL, Supabase keys, ENCRYPTION_MASTER_KEY
npm install
npx prisma migrate dev
npm run dev # http://localhost:3001cd frontend
cp .env.example .env # set NEXT_PUBLIC_SUPABASE_* and NEXT_PUBLIC_API_URL
npm install
npm run dev # http://localhost:3000You only need one AI provider key to get started. Add more anytime in Settings → AI API Keys.
- Sign up (email OTP, SMS OTP, or Google).
- Create a workspace and start writing in the rich-text editor.
- Highlight text → extract tasks or ask the AI assistant a question grounded in your docs.
- Invite your team for real-time collaboration with live cursors and comments.
- Connect your AI key in Settings → AI API Keys to route all AI features through your own provider.
- Export finished work to PDF, DOCX, or LaTeX with citations.
// Example: a context-aware AI request is routed by the backend to your BYOK provider
const ai = await fetch(`${API_URL}/api/ai/process`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({
action: "improve_writing",
text,
model: "openai/gpt-4o-mini",
}),
});▶ Try the live demo → workcontext.vercel.app
Screenshots below are served from the repo (
frontend/public/assets/images/). They also appear on the live site athttps://workcontext.vercel.app/assets/images/<file>once the latest build is deployed.
| Homepage | Dashboard | Editor |
|---|---|---|
![]() |
![]() |
![]() |
| AI Chat | Projects |
|---|---|
![]() |
![]() |
Contributions make open source thrive. Whether it's a bug fix, feature, doc, or translation — all are welcome.
- Fork the repo
- Create a branch:
git checkout -b feature/amazing-feature - Commit:
git commit -m "feat: add amazing feature" - Push:
git push origin feature/amazing-feature - Open a Pull Request
Please read CONTRIBUTING.md and our Code of Conduct first.
Distributed under the MIT License — see the LICENSE file for details. Free to use, modify, and ship (even commercially).
Built by Craig (Marowa Labs) — bioinformatics student, builder, and open-source contributor.
- GitHub: @marowa-labs
- LinkedIn: Craig Marowa
- X/Twitter: @craigmarowa
If WorkContext helped your team, give it a ⭐ — it helps more people find it!







