<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Marowa Labs</title>
    <description>The latest articles on DEV Community by Marowa Labs (@marowa_labs).</description>
    <link>https://dev.to/marowa_labs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4053384%2F16858cc6-a962-491e-8092-d6b373a1b339.jpg</url>
      <title>DEV Community: Marowa Labs</title>
      <link>https://dev.to/marowa_labs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marowa_labs"/>
    <language>en</language>
    <item>
      <title>Building an Open-Source AI Workspace: Cross-Tool Vector Search &amp; Real-Time Sync with Next.js 14 and pgvector</title>
      <dc:creator>Marowa Labs</dc:creator>
      <pubDate>Sun, 27 Sep 2026 12:51:32 +0000</pubDate>
      <link>https://dev.to/marowa_labs/building-an-open-source-ai-workspace-cross-tool-vector-search-real-time-sync-with-nextjs-14-and-3p93</link>
      <guid>https://dev.to/marowa_labs/building-an-open-source-ai-workspace-cross-tool-vector-search-real-time-sync-with-nextjs-14-and-3p93</guid>
      <description>&lt;p&gt;Every remote engineering team faces context fragmentation. A critical architecture decision is buried in a Slack thread, the spec lives on Notion, the tracking issue is on Jira, and the actual code lives on GitHub.&lt;/p&gt;

&lt;p&gt;To solve this tool-sprawl problem without forcing teams into yet another silo, we built &lt;a href="https://www.workcontext.me" rel="noopener noreferrer"&gt;WorkContext&lt;/a&gt;—an open-source AI productivity workspace that acts as a unified context layer across your entire stack.&lt;/p&gt;

&lt;p&gt;Here is a breakdown of how we architected the system using &lt;strong&gt;Next.js 14, Node.js/Express, PostgreSQL (&lt;code&gt;pgvector&lt;/code&gt;), and Yjs&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Unified Vector Search with &lt;code&gt;pgvector&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Instead of relying on third-party vector databases, we leveraged PostgreSQL with the &lt;code&gt;pgvector&lt;/code&gt; extension via Prisma ORM. This keeps data operations transactional, ACID-compliant, and simpler to deploy self-hosted.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn0va72e8qfk7xl350upf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn0va72e8qfk7xl350upf.png" alt="WorkContext Integrations" width="799" height="391"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ Slack / Notion / Jira / GitHub / Figma ]
                   │
                   ▼ (OAuth / Webhooks)
         [ Connector Engine ]
                   │
                   ▼
     [ OpenAI Embeddings API ]
                   │
                   ▼
  [ PostgreSQL Database with pgvector ]
                   │
                   ▼
   [ Source-Grounded AI Copilot ]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Key Engineering Decisions:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deep Link Attribution:&lt;/strong&gt; Every chunk stored in &lt;code&gt;pgvector&lt;/code&gt; retains metadata pointing back to its original platform thread or document ID.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permission Mirroring (RBAC):&lt;/strong&gt; Before executing similarity queries, the search engine enforces workspace membership checks so the AI copilot never leaks context from channels or documents a user doesn't explicitly have access to.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwbavcai2kf4hjvgw2qei.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwbavcai2kf4hjvgw2qei.png" alt="WorkContext Dashboard" width="800" height="486"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Real-Time Collaborative Dual-Editor Architecture
&lt;/h2&gt;

&lt;p&gt;Different tasks require different editing models. Rather than forcing one paradigm, WorkContext implements a dual-mode editor setup:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;TipTap (ProseMirror):&lt;/strong&gt; Optimized for standard markdown, freeform prose, and real-time collaborative writing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BlockNote:&lt;/strong&gt; A Notion-style block editor designed for structured documents and nested layouts.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Real-Time Sync Engine
&lt;/h3&gt;

&lt;p&gt;To sync state live between concurrent users across both editors, we use &lt;strong&gt;Hocuspocus&lt;/strong&gt; (a WebSocket server framework built for Yjs) alongside &lt;strong&gt;Socket.io&lt;/strong&gt; for real-time workspace notifications.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Conflict Resolution:&lt;/strong&gt; CRDTs via &lt;a href="https://yjs.dev/?utm_source=gemini" rel="noopener noreferrer"&gt;Yjs&lt;/a&gt; handle concurrent edits gracefully without lock contention.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inline AI Autocomplete:&lt;/strong&gt; Writing triggers background completions grounded in synced workspace context, injecting real-time suggestions without blocking editor performance.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1c9s2nhm34ez61jazjcb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1c9s2nhm34ez61jazjcb.png" alt="Api Key Configuration" width="800" height="489"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Multi-Provider BYOK (Bring Your Own Key) Engine
&lt;/h2&gt;

&lt;p&gt;Because privacy and cost control are paramount for open-source self-hosters, WorkContext features a provider-agnostic LLM orchestration layer.&lt;/p&gt;

&lt;p&gt;Users can supply their own keys for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;OpenAI&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Anthropic&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Google Gemini&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Custom OpenAI-compatible endpoints (Ollama, LocalAI)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛠️ Stack Overview
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Tech Stack&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Frontend&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Next.js 14 (App Router), React 18, TypeScript, Tailwind CSS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Editors&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;TipTap + BlockNote (Yjs CRDTs)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Backend&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Node.js, Express, TypeScript, Hocuspocus WebSockets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Database&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL via Prisma + &lt;code&gt;pgvector&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Integrations&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Slack, Notion, Jira, GitHub (OAuth &amp;amp; App), Figma&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🤝 Open Source &amp;amp; Contributing
&lt;/h2&gt;

&lt;p&gt;WorkContext is &lt;strong&gt;100% open-source under the MIT License&lt;/strong&gt;. We are actively looking for contributors, feedback, and testers to help expand our connector framework and improve AI document synthesis.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/marowa-labs/workcontext" rel="noopener noreferrer"&gt;marowa-labs/workcontext&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://www.workcontext.me" rel="noopener noreferrer"&gt;workcontext.me&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you find the project interesting or want to support open-source productivity tools, give us a &lt;strong&gt;⭐ on GitHub&lt;/strong&gt; or drop a comment below with your thoughts on handling cross-app context!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>webdev</category>
      <category>ai</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Building WorkContext: An Open-Source, AI-Powered Workspace (Looking for Contributors!)</title>
      <dc:creator>Marowa Labs</dc:creator>
      <pubDate>Wed, 29 Jul 2026 14:07:19 +0000</pubDate>
      <link>https://dev.to/marowa_labs/building-workcontext-an-open-source-ai-powered-workspace-looking-for-contributors-c39</link>
      <guid>https://dev.to/marowa_labs/building-workcontext-an-open-source-ai-powered-workspace-looking-for-contributors-c39</guid>
      <description>&lt;p&gt;Hey DEV Community! 👋&lt;/p&gt;

&lt;p&gt;I'm Craig, founder at Marowa Labs. Over the past few months, I've been building &lt;strong&gt;&lt;a href="https://github.com/marowa-labs/workcontext" rel="noopener noreferrer"&gt;WorkContext&lt;/a&gt;&lt;/strong&gt; — an open-source productivity workspace designed to eliminate tool sprawl by bringing writing, tasks, real-time collaboration, and grounded AI assistance under one roof.&lt;/p&gt;

&lt;h2&gt;
  
  
  💡 Why WorkContext?
&lt;/h2&gt;

&lt;p&gt;Most workspace AI tools trap you in proprietary ecosystems or charge heavy subscription markups. WorkContext takes a different approach:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bring Your Own Key (BYOK):&lt;/strong&gt; Connect your Google AI Studio, OpenAI, Anthropic, or OpenRouter keys directly. You pay AI providers at cost with zero vendor lock-in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context-Aware AI:&lt;/strong&gt; The assistant isn't just a generic chatbot; it reads your active documents, tasks, and history to give grounded answers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-Time Collaboration:&lt;/strong&gt; Live multi-user editing with presence cursors and comments, powered by Yjs &amp;amp; CRDTs (Hocuspocus).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Task Extraction:&lt;/strong&gt; Highlight any text inside your docs to turn it into actionable tasks and deadlines instantly.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛠️ Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Next.js 16 (App Router), React, TypeScript, Tailwind CSS, TipTap Editor, Radix UI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Node.js, Express 5, TypeScript, Prisma 7&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database &amp;amp; Auth:&lt;/strong&gt; PostgreSQL 17 + pgvector, Supabase Auth&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-time Engine:&lt;/strong&gt; Hocuspocus + Yjs (CRDT)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🤝 Looking for Contributors!
&lt;/h2&gt;

&lt;p&gt;We're making a strong push to welcome open-source contributors! Whether you're looking to practice TypeScript, test Next.js 16, or dive into real-time CRDT architectures, there's a place for you.&lt;/p&gt;

&lt;p&gt;We already have beginner-friendly tasks set up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🏷️ Look for the &lt;strong&gt;&lt;code&gt;good first issue&lt;/code&gt;&lt;/strong&gt; tag on our &lt;a href="https://github.com/marowa-labs/workcontext/issues" rel="noopener noreferrer"&gt;GitHub Issues&lt;/a&gt; tab.&lt;/li&gt;
&lt;li&gt;Tasks include adding unit tests, UI empty states, and expanding &lt;code&gt;.env&lt;/code&gt; documentation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🔗 Links
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;📦 &lt;strong&gt;GitHub Repo:&lt;/strong&gt; &lt;a href="https://github.com/marowa-labs/workcontext" rel="noopener noreferrer"&gt;marowa-labs/workcontext&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🚀 &lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://workcontext.vercel.app/" rel="noopener noreferrer"&gt;workcontext.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’d love to hear your feedback on the architecture, UX, or feature ideas. Star the repository if you find it interesting! ⭐&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>showdev</category>
      <category>nextjs</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
