GhostBin:一个使用 Go 和 Redis 构建的轻量级 Pastebin。

2作者: sanaf7 个月前
Hi HN, 我搭建了 GhostBin,一个轻量级的 pastebin,旨在取代 ix.io 等服务曾经提供的简洁性和速度。ix.io 已经宕机很久了,而现有的 pastebin 大多臃肿、缓慢,或者不便于命令行操作。我需要一个“开箱即用”的极简工具,尤其是在调试或撰写内容时用于管道传输日志和命令输出。所以,我做了自己的。 GhostBin 专注于: 简洁性:干净的界面和直观的 API。 性能:使用 Go + Redis 实现快速读写。 CLI 优先的工作流程:curl 和 shell 管道开箱即用。 隐私和控制:支持 Docker 自托管;无供应商锁定。 阅后即焚 + 过期:适用于临时代码片段。 可选删除密钥:允许通过 API 安全删除。 演示:https://www.youtube.com/shorts/RINJI_Q5048 源代码:https://github.com/0x30c4/GhostBin CLI 脚本:https://raw.githubusercontent.com/0x30c4/GhostBin/main/gbin.sh ``` $ curl -F "f=@file.txt" gbin.me ``` ``` dmesg | curl -F "f=@-" gbin.me ```
查看原文
Hi HN,<p>I built GhostBin, a lightweight pastebin designed to replace the simplicity and speed that services like ix.io used to offer. ix.io has been down for a long time, and most existing pastebins are either bloated, slow, or not CLI-friendly. I needed something minimal that “just works,” especially for piping logs and command outputs during debugging or writing content. So I made my own.<p>GhostBin focuses on:<p>Simplicity: Clean interface and a straightforward API.<p>Performance: Go + Redis for fast reads&#x2F;writes.<p>CLI-first workflow: curl and shell pipelines work out of the box.<p>Privacy &amp; control: Self-hostable with Docker; no vendor lock-in.<p>Burn-after-read + expiration: Useful for ephemeral snippets.<p>Optional deletion secret: Allows secure deletion via API.<p>Demo: https:&#x2F;&#x2F;www.youtube.com&#x2F;shorts&#x2F;RINJI_Q5048<p>Source: https:&#x2F;&#x2F;github.com&#x2F;0x30c4&#x2F;GhostBin<p>CLI script: https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;0x30c4&#x2F;GhostBin&#x2F;main&#x2F;gbin.sh<p>``` $ curl -F &quot;f=@file.txt&quot; gbin.me ```<p>``` dmesg | curl -F &quot;f=@-&quot; gbin.me ```