Skip to content
JustTunyaPublic

About

Full real-time collaborative workspace platform — live project boards, drag-and-drop task sync, and modular workspaces, backed by a NestJS API with Socket.IO realtime, BullMQ queues, and JWT session auth.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

980 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRWSync

The shared workspace for small teams, with Claude built in

Boards, chat, files, and schedules in one place, live in every open tab, with optional Claude-powered summaries, digests, task drafts, and stand-up notes.

Early access · built by Tunya Lénárd-Sándor · Join the waitlist · a shared demo with sample data is available from the site

Next.js TypeScript NestJS PostgreSQL License: FSL-1.1-ALv2


Why crwsync

Small teams often run work across a task tracker, a chat app, and a file drive, and lose context moving between them. crwsync keeps boards, chat, files, and schedules in one workspace, and uses Claude to keep long threads and busy boards readable.

Claude-powered

  • Chat summaries — catch up on a busy room in a few lines.
  • Board digests — what moved, what is stuck, what is due.
  • Task drafts from messages — turn a thread into draft tasks; nothing is created until a member confirms.
  • Stand-up notes — a per-member yesterday, today, and blockers note.

Optional, off by default, server-side only, and member-triggered. See AI features for configuration and data handling.

Business direction

Planned, not yet built: free early access today, a paid tier for larger teams, and a hosted product with a documented self-host path. No prices are set. Commercial licensing or partnership: contact@crwsync.xyz.

Architecture at a glance

crwsync is a shared workspace for small teams and crews that run work from boards, chat, and files. A team signs in, organizes work into projects, moves tasks around a shared board, and watches teammates' changes land instantly, while a decoupled backend enforces auth, queues background work, and fans out real-time state over WebSockets.

The architecture reflects deliberate separation of concerns rather than a single monolith: three independently deployable services — a public marketing portal, an authenticated dashboard, and a NestJS API — share one root domain via subdomains in production, isolating public traffic from authenticated workloads, and run together locally through a unified Turborepo pipeline.

Features

Public portal

  • Marketing site — a dedicated public-facing landing experience, deployed and routed independently from the authenticated app so public traffic never competes with or shares a runtime with logged-in workloads.
  • Cross-subdomain auth handoff — sign-in state carries seamlessly from the portal to the dashboard subdomain via shared, scoped HTTP-only cookies, with zero friction for the end user.
  • Contact intake pipeline — the public contact form persists to Postgres and dispatches transactional email through a queued job, not an inline request-blocking send.

Dashboard (dash.crwsync.xyz)

  • Command-center home — a live Bento-grid overview (focus tasks, pinned modules, active projects, crew presence, activity stream, velocity) built from real-time socket state, not a static summary screen.
  • Kanban board — @dnd-kit-powered drag-and-drop task board with optimistic reordering that reconciles against the API and patches other clients' caches over the socket the moment a card moves.
  • Real-time chat — room and direct-message channels with live typing indicators, read receipts, emoji reactions, edit/delete, attachments, and per-room rate limiting, all delivered over a single shared Socket.IO gateway.
  • File rooms — per-workspace file rooms with presigned direct-to-bucket uploads, so payloads never transit the API process.
  • Workspace-wide search — a single query fans out across tasks, chat messages, files, and members in one cached round trip.
  • Schedules & statistics — a calendar view for deadlines/events and a workspace analytics dashboard (velocity, completion, activity) computed server-side and cached, not recomputed on every render.
  • Live notifications — task/mention/invite events are persisted and pushed instantly to the recipient's private socket room, with read/ read-all state synced across every open tab.
  • Granular settings — profile, appearance, notifications, privacy, and security live as dedicated settings surfaces; workspace-level settings cover members/roles, invites, modules, and a guarded danger zone.
  • Member invites & roles — email invites with pending-invite tracking and role assignment, enforced end to end by the same guard/decorator stack the API uses for every other authorization check.
  • Localization-ready UI — dashboard strings are routed through a shared @crwsync/i18n package (English/Spanish shipped) instead of being hardcoded per component.
  • Optimistic UI — TanStack Query and Zustand make every interaction feel instant, updating the interface ahead of the network round trip while writes settle against the API in the background.
  • Design-system UI — Tailwind CSS, Radix UI primitives, and Framer Motion deliver an accessible, consistent, and animated interface throughout, with light/dark themes built in.

Platform / infrastructure

  • Backend API (@crwsync/backend) — a strict, modular NestJS service on Node, exposing REST endpoints and a Socket.IO gateway behind one well-structured process, organized into focused modules (auth, workspace, board, chat, files, search, statistics, notification, storage, contact).
  • Real-time sync at scale — task, chat, file, and presence state pushed live over Socket.IO, backed by a Redis adapter so WebSocket delivery scales horizontally across multiple instances rather than being pinned to one.
  • Resilient, distributed queues — BullMQ handles asynchronous background jobs (chat fan-out, email delivery, session cleanup) reliably and without ever blocking request paths.
  • Defense-in-depth auth — short-lived JWTs paired with HTTP-only, secure cookies, bcrypt-hashed passwords, and a scheduled purge of expired sessions, minimizing the attack surface for session hijacking.
  • Postgres via Prisma — schema and migrations own the actual business logic as a single source of truth, not scattered across the application layer.
  • Cache-first reads, targeted invalidation — a Redis-backed cache service with a centralized key factory sits in front of hot read paths (auth/session/membership checks); mutations invalidate only the specific keys they affect, never a blanket flush.
  • Object storage, S3-compatible — avatars and file-room uploads go straight to a bucket (MinIO locally, Cloudflare R2 in production) via presigned URLs.
  • Error monitoring — Sentry is wired into both the backend and the dashboard for real-time exception tracking and release visibility.
  • Automated CI/CD — GitHub Actions run a security audit on every change and drive deployment, with Dependabot keeping dependencies current.
  • Docker-first, production-ready ops — per-service Dockerfiles, a dev Compose stack for local Postgres/Redis/MinIO, and a hardened production stack.yml for Docker Swarm with rolling updates and per-service resource limits built in from day one.

Stack

Layer Technology
Frontend Next.js 16 (App Router), React 19
Backend NestJS 11 on Node.js
Language TypeScript
Styling / motion Tailwind CSS v4, Radix UI, Framer Motion
State / Data Zustand, TanStack Query
Data / ORM PostgreSQL 16, Prisma 7
Realtime Socket.IO + Redis adapter
Queues BullMQ
Auth Passport.js (JWT/Local), bcrypt, HTTP-only cookies
Object storage S3-compatible (MinIO dev / Cloudflare R2 prod), presigned uploads
Rich editing / DnD Tiptap, dnd-kit
Observability Sentry (backend + dashboard)
i18n @crwsync/i18n (English, Spanish)
Testing Vitest (frontend), Jest (backend)
Monorepo Turborepo, pnpm
CI/CD GitHub Actions, Dependabot
Deployment Docker, Docker Swarm (stack.yml)

Running locally

pnpm install
docker-compose -f docker-compose.dev.yml up -d   # local Postgres + Redis
pnpm --filter @crwsync/backend run prisma:generate
pnpm --filter @crwsync/backend run prisma:migrate:dev
pnpm run dev
  • Web Portal: http://localhost:3000
  • Dashboard: http://localhost:3001
  • API Gateway: http://localhost:8080

Create a .env in each of apps/frontend/web, apps/frontend/dash, and apps/backend and fill in:

Variable Where it comes from
NEXT_PUBLIC_API_URL, NEXT_PUBLIC_WEB_URL, NEXT_PUBLIC_DASH_URL local dev URLs of the three services
DATABASE_URL docker-compose.dev.yml credentials against local Postgres
REDIS_HOST, REDIS_PORT, REDIS_KEY_PREFIX docker-compose.dev.yml local Redis
JWT_ACCESS_TOKEN_SECRET, JWT_REFRESH_TOKEN_SECRET, COOKIE_SECRET any string — sign local sessions and cookies
MAIL_HOST, MAIL_PORT, MAIL_USER, MAIL_PASS an SMTP provider (e.g. Zoho Mail), for transactional email
CORS_ORIGIN, APP_URL, ACCESS_COOKIE_DOMAIN, REFRESH_COOKIE_DOMAIN localhost for local dev
STORAGE_ENDPOINT, STORAGE_BUCKET, STORAGE_ACCESS_KEY, STORAGE_SECRET_KEY, STORAGE_REGION docker-compose.dev.yml MinIO credentials locally; an S3-compatible bucket (e.g. Cloudflare R2) in production
CONTACT_EMAIL (backend), NEXT_PUBLIC_CONTACT_EMAIL (web) the inbox that receives contact-form messages and the address shown on the site and in legal pages; the committed default is a placeholder
AI_ENABLED, ANTHROPIC_API_KEY, ANTHROPIC_MODEL, AI_DAILY_LIMIT_PER_USER, AI_MAX_INPUT_MESSAGES optional AI features, see below
SENTRY_DSN / NEXT_PUBLIC_SENTRY_DSN, SENTRY_ENVIRONMENT, SENTRY_TRACES_SAMPLE_RATE optional — leave blank to run without error monitoring locally

AI features (optional)

The API can call Claude for four features: a chat-room summary, a board digest, task drafts from selected messages, and a per-member stand-up. They are off unless AI_ENABLED=true; with it off, every AI endpoint answers 404 and the dashboard hides the buttons. All calls are made server-side through a BullMQ ai queue and the browser polls a job-status endpoint, so the key never reaches a client.

Variable Meaning
AI_ENABLED true to enable. The API refuses to start if this is true and the key or model is missing.
ANTHROPIC_API_KEY Anthropic API key. Set it in your deployment secrets, never in the repo.
ANTHROPIC_MODEL Model ID used for every request. Not hardcoded; pick a current ID from the Anthropic docs.
AI_DAILY_LIMIT_PER_USER Requests per user per UTC day (default 20). Over the limit the API answers 429.
AI_MAX_INPUT_MESSAGES Most chat messages sent in one request (default 200).

Only the fields a feature needs (author display name, timestamp, text, task titles and dates) are sent to Anthropic. Request metadata (user, workspace, feature, token counts, latency) is logged; message content and model output are not.

Layout of the codebase

  • apps/frontend/web — the public marketing portal
  • apps/frontend/dash — the authenticated dashboard: home, board, chat, files, schedules, statistics, search, and settings (Next.js App Router)
  • apps/backend — NestJS API, Socket.IO gateway, BullMQ workers, modularized by domain (auth, workspace, board, chat, files, search, statistics, notification, storage, contact, waitlist, ai, …)
  • packages/types — shared domain types and operation-result shapes used by both frontends and the backend
  • packages/styles — shared Tailwind design tokens/config
  • packages/templates — transactional email templates
  • packages/i18n — shared localization strings/hooks (English, Spanish)
  • stack.yml — production Docker Swarm deployment definition

About the demo

  • The shared demo account holds seeded sample data. Anyone can open it, so do not enter anything private.
  • Email delivery requires your own SMTP credentials; none are provisioned.
  • Auth, queues, real-time sync, and data integrity run the same way in the demo as in any other workspace.

License

Source-available under the Functional Source License 1.1, Apache 2.0 future license (FSL-1.1-ALv2). You can read, study, and use the code for any purpose except offering a competing product or service; each release converts to Apache 2.0 two years after publication. Commercial licensing: contact@crwsync.xyz.

About

Full real-time collaborative workspace platform — live project boards, drag-and-drop task sync, and modular workspaces, backed by a NestJS API with Socket.IO realtime, BullMQ queues, and JWT session auth.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

Used by

Contributors

Languages