{"id":21073753,"url":"https://github.com/chouffe/chat-server","last_synced_at":"2025-10-11T09:09:49.790Z","repository":{"id":148673533,"uuid":"83394270","full_name":"Chouffe/chat-server","owner":"Chouffe","description":"A simple chat server in haskell","archived":false,"fork":false,"pushed_at":"2017-03-03T05:41:12.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T03:22:35.655Z","etag":null,"topics":["chat","haskell","server","system"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chouffe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-28T05:42:27.000Z","updated_at":"2017-02-28T05:46:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"296c33c3-ac71-4c4a-81dc-8616e5be83e2","html_url":"https://github.com/Chouffe/chat-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chouffe/chat-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fchat-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fchat-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fchat-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fchat-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chouffe","download_url":"https://codeload.github.com/Chouffe/chat-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chouffe%2Fchat-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006752,"owners_count":26084176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat","haskell","server","system"],"created_at":"2024-11-19T19:02:34.243Z","updated_at":"2025-10-11T09:09:49.747Z","avatar_url":"https://github.com/Chouffe.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HaskChat\n\nHaskChat is a simple chat server (irc like) written in Haskell.\n\n  ```\n  _  _         _    ___ _         _\n | || |__ _ __| |__/ __| |_  __ _| |_\n | __ / _` (_-\u003c / / (__| ' \\/ _` |  _|\n |_||_\\__,_/__/_\\_\\\\___|_||_\\__,_|\\__|\n ```\n\nHaskChat supports any number of clients and allows them to join and leave at any time.\nIt is based on the [Stanford Haskell Class: Functional Systems in Haskell](http://www.scs.stanford.edu/14sp-cs240h/labs/lab2.html)\n\n## Features\n\n- TCP communication between clients and server\n- The server listen on `CHAT_SERVER_PORT` ENV variable or `12345` (default port)\n- Multiple chatrooms are available\n- Logging is turned on server side and logs to stdout\n\n## Commands\n\n- `/chatrooms`              displays the list of all chatrooms\n- `/help`                   displays this help menu\n- `/join \u003cchatroom\u003e`        joins the chatroom \u003cchatroom\u003e\n- `/msg \u003cclientId\u003e \u003cmsg\u003e`   sends a private message \u003cmsg\u003e to client \u003cclientId\u003e\n- `/quit`                   exits the chat server\n- `/who`                    displays who is in the current chatroom\n- `/whoami`                 displays your clientid\n\n## How to use it\n\n### Run HaskChat Server\n\n#### GHCI\n\n```\nstack ghci\n:load Server\nmain\n```\n\n### CLI\n\n`stack build \u0026\u0026 stack exec -- chat-server-exe`\n\n## Connect clients\n\n`telnet localhost \u003chaskchat-port\u003e`\n\n## TODO\n\n- Add thorough test suite using `QuickCheck` and `Hspec`.\n- Add better concurrency with STMs.\n- Add a better client readline with `Haskeline`.\n- Add more commands (irc commands).\n- Allow clients to pick a username.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchouffe%2Fchat-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchouffe%2Fchat-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchouffe%2Fchat-server/lists"}