展示HN:TermChat – 通过SSH进行终端聊天(聊天室/私信)
你好,<p>几周前,我和一个朋友讨论了简单应用程序变得越来越臃肿,充满了许多不必要的功能时,得到了一个灵感。如果你只想通过传统的文本进行交流,你几乎肯定需要安装某种繁重且通常运行缓慢的桌面应用程序。我们讨论了如果能够仅使用终端而不依赖任何其他工具会有多酷。因此,我产生了创建一个简单聊天应用的想法,但与其再做一个“又一个应用”(YAA),不如利用几乎所有人电脑上都已安装的东西——SSH?于是,TermChat应运而生。<p>只需输入:ssh termchat.me<p>然后输入:/help 查看所有可用命令,或输入/register 然后/login。<p>通过Tab键切换窗格,使用‘hjkl’或箭头键进行导航。<p>目前还处于早期阶段,因此会有(已经有)一些bug和小问题,但基本功能是可用的:公共/私人房间、通知和私信。<p>没有电子邮件注册/验证等。注册过程简单,只需用户名/密码。密码经过哈希和加盐处理,私人房间和聊天内容在静态时是加密的。<p>我正在进行代码清理和文档整理,并计划很快开源。<p>欢迎任何反馈、批评或能帮助我改进这个项目的建议。我创建这个项目的主要原因是我只想通过我电脑上已有的工具与人进行简单的文本交流。
查看原文
Hello,<p>I got an idea from a friend a couple of weeks ago when we were discussing how heavy simple apps have become with all their unnecessary features. If you only want to communicate via good old text, you almost certainly need to install some kind of heavy and often slow desktop app. We talked about how cool it would be to just use your terminal without any dependencies. So I got the idea to create a simple chat app, but instead of making YAA (yet another app), why not use something almost all people already have installed on their PCs - SSH? So TermChat was born.<p>Simply type: ssh termchat.me<p>then: /help to see all the available commands or /register and then /login.<p>Switch panes via tab, navigate by 'hjkl' or arrows.<p>It’s still early days, so there will be (are) bugs and hiccups but the basics work: public/private rooms, notifications, and DMs.<p>There are no email registration/verification etc. It's simple username/password registration. Passwords are hashed and salted, private rooms and chats are encrypted at rest.<p>I'm working with code cleanup and docs. now and planning to open source it soon.<p>Feedback, critique or anything that could help me improve this project are welcome. My main reason for creating this was that I just want to communicate with people via simple text with tools I already have on my computer.