控制台文本() – 代码执行时发送短信提醒
3 分•作者: Noel04•19 天前
嘿,HN!我开发了 console.text() - 一个在生产环境中特定代码路径执行时向你发送短信的工具。
这个想法来源于 Jason Goodison 关于微型 SaaS 产品的 YouTube 视频。我几个月来一直深陷教程地狱,所以决定直接发布一些东西。
它的功能:
```
npm install @holler2660/console-text
const { init } = require("@holler2660/console-text");
init({ apiKey: 'ct_live_xxx' });
console.text('支付失败', { userId: '123' });
// → 短信会在 5-10 秒内到达
```
试用:https://soorajdmg.github.io/Console-text/
为什么选择这个而不是 Sentry/PagerDuty?
那些工具非常适合团队。这个工具是为想要简单警报,又不想进行繁琐设置的独立开发者和副业项目准备的。如果你会用 console.log(),你就已经知道怎么使用它了。
查看原文
<p><pre><code> Hey HN! I built console.text() - a tool that texts you when specific code paths execute in production.
The idea came from Jason Goodison's YouTube video about micro-SaaS products. I'd been stuck in tutorial hell for months, so I decided to just ship something.
What it does:
npm install @holler2660/console-text
const { init } = require("@holler2660/console-text");
init({ apiKey: 'ct_live_xxx' });
console.text('Payment failed', { userId: '123' });
// → SMS arrives in 5-10 seconds
Try it: https://soorajdmg.github.io/Console-text/
Why this vs Sentry/PagerDuty?
Those are great for teams. This is for solo devs and side projects who want dead-simple alerts without the setup overhead. If you know console.log(), you already know how to use it.</code></pre>