{"id":25227349,"url":"https://github.com/mjblack/telnet","last_synced_at":"2026-03-17T11:34:19.641Z","repository":{"id":276679698,"uuid":"929556511","full_name":"mjblack/telnet","owner":"mjblack","description":"A Crystal Shard for creating telnet servers and clients","archived":false,"fork":false,"pushed_at":"2025-02-26T21:12:40.000Z","size":44,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T13:14:26.196Z","etag":null,"topics":["crystal","crystal-lang","crystal-language","crystal-shard","shard","telnet","telnet-protocol"],"latest_commit_sha":null,"homepage":"https://mjblack.github.io/telnet/","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjblack.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":"2025-02-08T20:24:28.000Z","updated_at":"2025-02-26T21:00:01.000Z","dependencies_parsed_at":"2025-02-09T20:27:44.939Z","dependency_job_id":"54e360a4-c54d-4477-8c2c-f95811cfb0ac","html_url":"https://github.com/mjblack/telnet","commit_stats":null,"previous_names":["mjblack/telnet"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mjblack/telnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjblack%2Ftelnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjblack%2Ftelnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjblack%2Ftelnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjblack%2Ftelnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjblack","download_url":"https://codeload.github.com/mjblack/telnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjblack%2Ftelnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30622759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T11:26:08.186Z","status":"ssl_error","status_checked_at":"2026-03-17T11:24:37.311Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["crystal","crystal-lang","crystal-language","crystal-shard","shard","telnet","telnet-protocol"],"created_at":"2025-02-11T08:57:01.527Z","updated_at":"2026-03-17T11:34:19.627Z","avatar_url":"https://github.com/mjblack.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# telnet\n[![Crystal CI](https://github.com/mjblack/telnet/actions/workflows/crystal.yml/badge.svg)](https://github.com/mjblack/telnet/actions/workflows/crystal.yml)\nTelnet shard that provides server and client classes. It provides a parser class that handles telnet events with callbacks.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     telnet:\n       github: mjblack/telnet\n   ```\n\n2. Run `shards install`\n\n## Usage\n\nPlease see [examples/simple_server.cr](https://github.com/mjblack/telnet/blob/master/examples/simple_server.cr) for a more detailed example that showcases telnet command and subnegotiation handling.\n\n```crystal\nrequire \"telnet\"\n\nserver = Telnet::Server.new(\"0.0.0.0\", 23)\nserver.on_connect do |session|\n  puts \"New client connected: #{session.remote_address}\"\n  dont_echo = Telnet::Command.new_dont(Telnet::Option::ECHO)\n  io.write(dont_echo)\n  puts \"Sent dont echo\"\nend\n\nserver.on_disconnect do |session|\n  puts \"Client disconnected: #{session.remote_address}\"\nend\n\nserver.on_wont_echo do |session|\n  puts \"Client: WONT ECHO\"\nend\n\n# Spawns listener\nserver.listen\n\nwhile true\n  Fiber.yield\nend\n\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/mjblack/telnet/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Matthew J. Black](https://github.com/mjblack) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjblack%2Ftelnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjblack%2Ftelnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjblack%2Ftelnet/lists"}