GhostBin 是一个轻量级的粘贴板,使用 Go 和 Redis 构建。
嗨,HN,
我开发了GhostBin,这是一个轻量级的粘贴板,旨在替代像ix.io曾经提供的简单性和速度。ix.io已经停机很长时间,而大多数现有的粘贴板要么臃肿、速度慢,要么不适合命令行使用。我需要一个“只需工作”的简约工具,特别是在调试或撰写内容时用于管道传输日志和命令输出。因此,我自己做了一个。
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/writes.<p>CLI-first workflow: curl and shell pipelines work out of the box.<p>Privacy & 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://www.youtube.com/shorts/RINJI_Q5048<p>Source: https://github.com/0x30c4/GhostBin<p>CLI script: https://raw.githubusercontent.com/0x30c4/GhostBin/main/gbin.sh<p>```
$ curl -F "f=@file.txt" gbin.me
```<p>```
dmesg | curl -F "f=@-" gbin.me
```