Live Deployment: https://threadbyte.vercel.app/ (Demo URL Placeholder)
Threadbyte is a high-performance, real-time developer communication and collaboration platform designed specifically for software engineering teams. It bridges instant WebSocket communication with contextual AI code analysis, multi-provider model routing, zero-trust security, and group membership governance.
Developers can discuss codebases, upload multi-file archives, review algorithm snippets, and interact with AI models (OpenRouter Free, Google Gemini, OpenAI) that understand the entire conversation history.
|
Login Screen
|
Registration Screen
|
|
Main Chat Interface (Dual-Card AI Analysis & Code View)
|
Developer Profile & Activity
|
|
General Settings & Repo Links
|
Multi-Provider AI Keys (UUID Management)
|
Membership Join Requests
|
- β‘ Real-Time Collaboration: Sub-millisecond WebSocket bidirectional chat, live typing indicators, and user presence tracking.
-
π€ Context-Aware Multi-Provider AI:
- Full group conversational memory fed into AI queries for deep, continuous context.
- Seamless switching between OpenRouter (Free), Google Gemini, and OpenAI / ChatGPT.
- 3-level prompt hierarchy: Hardened System Prompt
$\rightarrow$ Group Custom Prompt$\rightarrow$ Message-level Override.
-
π Zero-Trust Security & Data Sanitization:
- Strict server-side verification: Group settings and AI configurations are strictly restricted to the group creator (
created_by). - Passwords (bcrypt), OAuth tokens, and API keys are masked with
json:"-"and never returned in API payloads.
- Strict server-side verification: Group settings and AI configurations are strictly restricted to the group creator (
-
π₯ Invite Link & Join Requests System:
- Secure invite codes preview group information without automatically granting entry.
- Owners review pending join requests with one-click Approve or Reject actions.
-
π Instant Multilingual Translation:
- Translate any message or AI analysis into Persian (ΩΨ§Ψ±Ψ³Ϋ), English, German (Deutsch), French (FranΓ§ais), Spanish (EspaΓ±ol), Arabic (Ψ§ΩΨΉΨ±Ψ¨ΩΨ©), Russian (Π ΡΡΡΠΊΠΈΠΉ), and Chinese (δΈζ).
-
π Developer File Attachments:
- Native support for ZIP code archives, PDFs, audio, video, and high-resolution images.
graph TD
Client["Client (Next.js 16 + React 19 + Tailwind CSS)"]
WS["WebSocket Gateway"]
API["Gin HTTP Router (Go 1.25)"]
Auth["JWT & Security Middleware"]
DB[(PostgreSQL 16 Database)]
AI["AI Engine (OpenRouter / Gemini / OpenAI)"]
Client <-->|Real-time Events| WS
Client <-->|REST API| API
API --> Auth
Auth --> DB
API --> DB
API --> AI
- Framework: Next.js 16 (App Router, Turbopack)
- UI & Styling: React 19, Tailwind CSS 4, Radix / Shadcn primitives, Lucide Icons, Sonner
- State & Communication: React Hook Form, Zod, Axios, WebSockets
- Testing: Jest, Testing Library (
@testing-library/react,@testing-library/jest-dom)
- Language & Server: Go 1.25, Gin Web Framework
- Persistence & ORM: PostgreSQL 16, SQLC (Type-safe SQL generation),
pgx/v5 - Authentication: Stateless JWT (
golang-jwt/jwt/v5), bcrypt password hashing, AES encryption - Testing: Go standard testing package, race detector, mock queries
Threadbyte/
βββ .github/
β βββ workflows/
β βββ ci.yml # Automated CI/CD workflow
βββ backend/
β βββ cmd/server/main.go # Application entry point
β βββ db/
β β βββ migrations/ # Versioned SQL schema migrations
β β βββ queries/ # SQLC prepared query definitions
β βββ internal/
β β βββ ai/ # Multi-provider AI engine (OpenAI, Gemini)
β β βββ api/ # Handlers, routes, and security middleware
β β βββ database/ # PostgreSQL connection & auto-migrations
β β βββ service/ # Core business logic & sanitized DTOs
β βββ pkg/utils/ # JWT, password hashing, cryptography
β βββ Dockerfile # Multi-stage production Docker build
β βββ Makefile # Build and development scripts
βββ frontend/
β βββ app/ # Next.js App Router (pages & layouts)
β βββ components/ # Modular React UI components
β βββ lib/ # API clients, types, validations, auth context
β βββ __tests__/ # Jest unit and component test suites
β βββ Dockerfile # Next.js standalone container
βββ screenshots/ # Application screenshots for documentation
βββ docker-compose.yml # Full-stack container orchestration
- Docker & Docker Compose
- Or for local development: Go 1.25+, Node.js 20+, pnpm 10+, PostgreSQL 16+
-
Clone the repository:
git clone https://github.com/v-urit/Threadbyte.git cd Threadbyte -
Configure environment variables: Create a
.envfile in the root orbackend/directory:PORT=8080 DATABASE_URL=postgres://postgres:postgres@postgres:5432/threadbyte?sslmode=disable JWT_SECRET=super-secure-production-jwt-secret-key-32-chars CORS_ALLOWED_ORIGINS=http://localhost:3000 OPENAI_API_KEY=sk-or-v1-your-openrouter-key GEMINI_API_KEY=your-gemini-key
-
Start the full stack:
docker compose up --build
-
Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8080
- Health Check: http://localhost:8080/health
cd backend
# Start PostgreSQL database (via local docker or system service)
docker compose up -d postgres
# Run database migrations and start server
make run
# Or directly: go run cmd/server/main.gocd frontend
# Install dependencies
pnpm install
# Start Next.js development server
pnpm run devcd backend
go test -v -race ./...cd frontend
pnpm testThis project is licensed under the MIT License β see the LICENSE file for details.






