GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AmuletOfNight/SharpTalk: SharpTalk is a slack clone built entirely in .NET C#

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
.agent/workflows
.agent/workflows
 
 
.vscode
.vscode
 
 
SharpTalk.Api.Tests
SharpTalk.Api.Tests
 
 
SharpTalk.Api
SharpTalk.Api
 
 
SharpTalk.Shared
SharpTalk.Shared
 
 
SharpTalk.Web.Tests
SharpTalk.Web.Tests
 
 
SharpTalk.Web
SharpTalk.Web
 
 
plans
plans
 
 
.gitignore
.gitignore
 
 
CONFIGURATION_CHANGES.md
CONFIGURATION_CHANGES.md
 
 
IMPLEMENTATION_PLAN.md
IMPLEMENTATION_PLAN.md
 
 
README.md
README.md
 
 
Requirements Document.txt
Requirements Document.txt
 
 
SharpTalk.sln
SharpTalk.sln
 
 
build_output.txt
build_output.txt
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

SharpTalk

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.

🌟 Project Overview

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

šŸ›  Tech Stack

Backend

  • 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)

Frontend

  • Framework: Blazor WebAssembly
  • State Management: Blazored.LocalStorage
  • Authentication: ASP.NET Core Authentication State Provider
  • Styling: Vanilla CSS with premium dark mode and glassmorphism design

Infrastructure

  • Containerization: Docker & Docker Compose
  • Database: PostgreSQL 15 (Docker container)
  • Cache: Redis (Docker container)

šŸ“‹ Features

āœ… Currently Implemented

Phase 1: Foundation (MVP)

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

Phase 2: Enhanced UX (Partial)

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

🚧 In Progress

Notifications & Unread

  • ā³ Unread message counters
  • ā³ Typing indicators
  • ā³ "Edited" message status

šŸ“… Planned Features

Phase 3: Advanced Features

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

šŸ— Architecture

Project Structure

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

Database Schema

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

User Roles

  • 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

šŸš€ Getting Started

Prerequisites

  • .NET 10 SDK
  • Docker Desktop (for PostgreSQL and Redis)
  • Git

Installation

  1. Clone the repository

    git clone <repository-url>
    cd SharpTalk
  2. Start infrastructure services

    docker-compose up -d

    This starts:

    • PostgreSQL on port 5433
    • Redis on port 6379
  3. 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"
      }
    }
  4. Run database migrations

    cd SharpTalk.Api
    dotnet ef database update
  5. Start the API

    dotnet run

    The API will be available at http://localhost:5298

  6. Start the Web client (in a new terminal)

    cd SharpTalk.Web
    dotnet run

    The web application will be available at http://localhost:5000

Development Setup

Running Tests

# Run all tests
dotnet test

# Run tests with coverage
dotnet test --collect:"XPlat Code Coverage"

Creating New Migrations

cd SharpTalk.Api
dotnet ef migrations add MigrationName
dotnet ef database update

Building for Production

# Build API
cd SharpTalk.Api
dotnet publish -c Release

# Build Web
cd SharpTalk.Web
dotnet publish -c Release

šŸ“Š Current Implementation Status

Phase 1: Foundation (MVP) - 85% Complete

  • 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

Phase 2: Enhanced UX - 0% Complete

  • Direct Messages (1:1 and Group)
  • Online/offline status tracking
  • Typing indicators
  • Unread message counters
  • Message editing indicators

Phase 3: Advanced Features - 0% Complete

  • File upload and sharing
  • Message threading
  • Search functionality
  • Workspace management enhancements
  • User profile and avatar features

šŸ”® Future Roadmap

Short Term (Next 1-2 months)

  1. Complete real-time messaging implementation
  2. Add presence tracking with Redis
  3. Implement typing indicators
  4. Add unread message counters
  5. Implement message editing and deletion

Medium Term (3-6 months)

  1. Direct messaging (1:1 and group)
  2. File upload and sharing
  3. Message threading
  4. Enhanced workspace management
  5. User profile and avatar features

Long Term (6+ months)

  1. Global search functionality
  2. Quick Switcher (Ctrl+K)
  3. Notifications system
  4. Workspace analytics
  5. Mobile app (React Native or MAUI)
  6. Voice/video integration
  7. Integration with third-party services (GitHub, Jira, etc.)

šŸ¤ Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • 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

šŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ™ Acknowledgments

  • Inspired by Slack and Discord
  • Built with Microsoft .NET ecosystem
  • Uses SignalR for real-time communication
  • Styled with modern CSS and glassmorphism design principles

šŸ“ž Support

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

šŸ”— Related Resources

  • ASP.NET Core Documentation
  • Blazor Documentation
  • SignalR Documentation
  • Entity Framework Core Documentation
  • PostgreSQL Documentation
  • Redis Documentation

Built with ā¤ļø using .NET 10

About

SharpTalk is a slack clone built entirely in .NET C#

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.