A modern, real-time team collaboration platform built with .NET, designed to facilitate seamless communication through persistent chat rooms, direct messages, and private groups. Inspired by Slack and Discord, SharpTalk provides a clean, intuitive interface for team collaboration.
SharpTalk is a multi-tenant collaboration tool organized around Workspaces, where teams can communicate through Channels, share files, and collaborate in real-time. The platform supports:
- Multi-Workspace Architecture: Users can belong to multiple independent workspaces
- Real-Time Communication: Instant message delivery using SignalR WebSockets
- Role-Based Access Control: Owner, Admin, and Member roles with appropriate permissions
- Rich Messaging: Support for markdown, reactions, and message threading
- File Sharing: Drag-and-drop file uploads with cloud storage integration
- Presence Tracking: Online/offline status and typing indicators
- Framework: ASP.NET Core 10 Web API
- Real-Time: SignalR (WebSocket-based communication)
- Database: PostgreSQL 15
- ORM: Entity Framework Core
- Authentication: JWT (JSON Web Tokens)
- Caching/PubSub: Redis (for presence tracking and SignalR scale-out)
- File Storage: Local storage (with Azure Blob Storage planned)
- Framework: Blazor WebAssembly
- State Management: Blazored.LocalStorage
- Authentication: ASP.NET Core Authentication State Provider
- Styling: Vanilla CSS with premium dark mode and glassmorphism design
- Containerization: Docker & Docker Compose
- Database: PostgreSQL 15 (Docker container)
- Cache: Redis (Docker container)
Authentication & Identity
- ā User registration with email/password
- ā User login with JWT token generation
- ā Secure API endpoints with JWT authentication
- ā Custom authentication state provider for Blazor
- ā Case-insensitive email handling
- ā Automatic redirection for invalid sessions
Workspace Management
- ā Create and delete workspaces
- ā Rename workspaces and update descriptions
- ā Invite users and manage members
- ā Leave workspace functionality
- ā Workspace settings modal
Channel Management
- ā Create, list, and manage channels
- ā Public and private channel support
- ā Channel member tracking
Real-Time Messaging
- ā SignalR hub configuration with Redis backplane
- ā Instant message delivery and broadcasting
- ā Connection management and auto-reconnect
Direct Messaging
- ā 1:1 private conversations (Global DMs)
- ā Group Direct Messages (Support for multiple members)
- ā Unified DM list across workspaces
Presence & Activity
- ā Real-time Online/Offline status tracking
- ā Integration with Redis for scalable presence
- ā Visual status indicators in UI
User Experience
- ā Modern "Slack-like" UI with Dark Mode
- ā User Settings and Profile Management
- ā Avatar uploading and cropping
- ā Responsive design for mobile/desktop
Notifications & Unread
- ā³ Unread message counters
- ā³ Typing indicators
- ā³ "Edited" message status
File Sharing
- File upload endpoint with validation
- Drag-and-drop file upload in UI
- Image and GIF auto-expansion in chat
- Cloud storage integration (Azure Blob Storage)
Message Threading
- Reply to specific messages
- Threaded conversation view
- Thread notifications
Search Functionality
- Global message search
- User search
- Quick Switcher (Ctrl+K) for navigation
Future Enhancements
- Workspace analytics
- Voice/video integration
- Third-party integrations
SharpTalk/
āāā SharpTalk.Api/ # Backend Web API
ā āāā Controllers/ # API endpoints
ā ā āāā AuthController.cs
ā ā āāā ChannelController.cs
ā ā āāā MessageController.cs
ā ā āāā UserController.cs
ā ā āāā WorkspaceController.cs
ā āāā Data/ # Database context
ā ā āāā ApplicationDbContext.cs
ā āāā Entities/ # EF Core entities
ā ā āāā Attachment.cs
ā ā āāā Channel.cs
ā ā āāā ChannelMember.cs
ā ā āāā Message.cs
ā ā āāā Reaction.cs
ā ā āāā User.cs
ā ā āāā Workspace.cs
ā ā āāā WorkspaceMember.cs
ā āāā Hubs/ # SignalR hubs
ā ā āāā ChatHub.cs
ā āāā Migrations/ # Database migrations
ā āāā Program.cs # API startup configuration
ā
āāā SharpTalk.Web/ # Frontend Blazor WASM
ā āāā Auth/ # Authentication
ā ā āāā CustomAuthStateProvider.cs
ā āāā Layout/ # Layout components
ā ā āāā MainLayout.razor
ā ā āāā NavMenu.razor
ā ā āāā LandingLayout.razor
ā āāā Pages/ # Page components
ā ā āāā Login.razor
ā ā āāā Register.razor
ā ā āāā Home.razor
ā ā āāā Index.razor
ā āāā Services/ # Business logic services
ā ā āāā WorkspaceService.cs
ā ā āāā ChannelService.cs
ā ā āāā ChatService.cs
ā ā āāā UserService.cs
ā āāā Shared/ # Shared components
ā ā āāā Sidebar.razor
ā ā āāā ChannelList.razor
ā ā āāā ChatArea.razor
ā ā āāā CreateWorkspaceModal.razor
ā ā āāā CreateChannelModal.razor
ā ā āāā WorkspaceSettingsModal.razor
ā ā āāā UserSettingsModal.razor
ā ā āāā UserProfile.razor
ā āāā Program.cs # Blazor startup configuration
ā
āāā SharpTalk.Shared/ # Shared DTOs and models
ā āāā DTOs/ # Data transfer objects
ā āāā AuthResponse.cs
ā āāā ChannelDto.cs
ā āāā CreateChannelRequest.cs
ā āāā CreateWorkspaceRequest.cs
ā āāā InviteUserRequest.cs
ā āāā LoginRequest.cs
ā āāā MessageDto.cs
ā āāā RegisterRequest.cs
ā āāā RemoveMemberRequest.cs
ā āāā RenameWorkspaceRequest.cs
ā āāā SendMessageRequest.cs
ā āāā TransferOwnershipRequest.cs
ā āāā UpdateMemberRoleRequest.cs
ā āāā UpdateWorkspaceDescriptionRequest.cs
ā āāā UserInfo.cs
ā āāā UserStatusDto.cs
ā āāā WorkspaceDto.cs
ā āāā WorkspaceMemberDto.cs
ā
āāā plans/ # Feature planning documents
ā āāā workspace-management-features.md
ā āāā user-avatar-features.md
ā
āāā docker-compose.yml # Docker services configuration
āāā IMPLEMENTATION_PLAN.md # Detailed implementation roadmap
āāā Requirements Document.txt # Original requirements specification
āāā README.md # This file
The application uses PostgreSQL with the following core entities:
- User: User accounts with authentication and profile data
- Workspace: Independent collaboration spaces
- WorkspaceMember: Join table linking users to workspaces with roles
- Channel: Communication channels within workspaces
- ChannelMember: Join table tracking channel membership
- Message: Chat messages with threading support
- Attachment: File attachments linked to messages
- Reaction: Emoji reactions on messages
- Workspace Owner: Creator of the workspace, can delete and manage all aspects
- Workspace Admin: Can manage users, channels, and moderation
- Member: Standard user, can send messages and join public channels
- Guest (Future): Restricted access to specific channels
- .NET 10 SDK
- Docker Desktop (for PostgreSQL and Redis)
- Git
-
Clone the repository
git clone <repository-url> cd SharpTalk
-
Start infrastructure services
docker-compose up -d
This starts:
- PostgreSQL on port 5433
- Redis on port 6379
-
Configure connection strings
Update
SharpTalk.Api/appsettings.json:{ "ConnectionStrings": { "DefaultConnection": "Host=localhost;Port=5433;Database=sharptalk;Username=postgres;Password=password" }, "JwtSettings": { "Secret": "your-super-secret-key-at-least-32-characters-long", "Issuer": "SharpTalk", "Audience": "SharpTalkUsers" } } -
Run database migrations
cd SharpTalk.Api dotnet ef database update -
Start the API
dotnet run
The API will be available at
http://localhost:5298 -
Start the Web client (in a new terminal)
cd SharpTalk.Web dotnet runThe web application will be available at
http://localhost:5000
# Run all tests dotnet test # Run tests with coverage dotnet test --collect:"XPlat Code Coverage"
cd SharpTalk.Api
dotnet ef migrations add MigrationName
dotnet ef database update# Build API cd SharpTalk.Api dotnet publish -c Release # Build Web cd SharpTalk.Web dotnet publish -c Release
- Project setup and structure
- Docker Compose configuration
- EF Core entities and relationships
- Database migrations
- Authentication (JWT)
- Workspace CRUD operations
- Channel CRUD operations
- Private channel support
- Frontend layout and navigation
- Authentication state management
- Real-time messaging (SignalR) - In Progress
- Direct Messages (1:1 and Group)
- Online/offline status tracking
- Typing indicators
- Unread message counters
- Message editing indicators
- File upload and sharing
- Message threading
- Search functionality
- Workspace management enhancements
- User profile and avatar features
- Complete real-time messaging implementation
- Add presence tracking with Redis
- Implement typing indicators
- Add unread message counters
- Implement message editing and deletion
- Direct messaging (1:1 and group)
- File upload and sharing
- Message threading
- Enhanced workspace management
- User profile and avatar features
- Global search functionality
- Quick Switcher (Ctrl+K)
- Notifications system
- Workspace analytics
- Mobile app (React Native or MAUI)
- Voice/video integration
- Integration with third-party services (GitHub, Jira, etc.)
Contributions are welcome! Please follow these guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow C# coding conventions
- Write unit tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting PR
- Follow the existing code style and structure
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Slack and Discord
- Built with Microsoft .NET ecosystem
- Uses SignalR for real-time communication
- Styled with modern CSS and glassmorphism design principles
For questions, issues, or suggestions:
- Open an issue on GitHub
- Check the Requirements Document.txt for detailed specifications
- Review the IMPLEMENTATION_PLAN.md for development progress
- ASP.NET Core Documentation
- Blazor Documentation
- SignalR Documentation
- Entity Framework Core Documentation
- PostgreSQL Documentation
- Redis Documentation
Built with ā¤ļø using .NET 10