juchok
juchok•4w ago

New npm package: convex-workspaces

Hey! I've built a module that adds multi-user collaboration to your Convex app. Here's what it actually does: 🎯 The Problem It Solves: - You have a Convex app with users - You want some users to collaborate on the same data/entities - You need different permission levels (admin/editor/viewer) - You want to share access between users 🔧 What It Provides: - Workspaces: Groups where users can collaborate (like "Marketing Team" or "Project Alpha") - Role-based Access: Admin can invite users, editors can modify data, viewers can only read - Sharing System: Share entities between workspaces with proper permissions - Personal Workspaces: Every user gets their own private space 💡 Real Example:
// Create a team workspace
const teamId = await createWorkspace({ name: "Marketing Team", personal: false });

// Add users with roles
await addUserToWorkspace({ workspaceId: teamId, targetUserId: "user123", userRole: "editor" });

// Now all team members can access the same data based on their role
// Create a team workspace
const teamId = await createWorkspace({ name: "Marketing Team", personal: false });

// Add users with roles
await addUserToWorkspace({ workspaceId: teamId, targetUserId: "user123", userRole: "editor" });

// Now all team members can access the same data based on their role
🔗 Links: - NPM: https://www.npmjs.com/package/convex-workspaces - GitHub: https://github.com/JuchokJuk/convex-workspaces - Docs: https://convex-workspaces.vercel.app/guide/quick-start.html Think of it as "Convex Auth + Team Collaboration" - it extends your existing Convex app with multi-user features.
GitHub
GitHub - JuchokJuk/convex-workspaces: Ready-to-use module for organ...
Ready-to-use module for organizing, sharing, and collaborative access to convex entities - JuchokJuk/convex-workspaces
Quick Start | Convex Workspaces
Workspace management system documentation
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?