samerfarida/doaas

GitHub: samerfarida/doaas

DOaaS 是一个部署在 Cloudflare Workers 上的趣味 API 服务,用一条 curl 请求为 DevOps 从业者返回随机的甩锅、激励和事故响应金句,为高压的运维工作提供轻松的情感支持。

Stars: 7 | Forks: 1

DOaaS - DevOps-as-a-Service

DOaaS - DevOps-as-a-Service Logo

为你的 CI/CD pipeline 提供情感支持 🔥

在线演示   ·   随机试试   ·   集成
[![License](https://img.shields.io/badge/License-MIT-blue)](LICENSE) [![DOaaS](https://img.shields.io/endpoint?url=https%3A%2F%2Fdoaas.dev%2Frandom%3Fformat%3Dshields)](https://doaas.dev) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/samerfarida/doaas/badge)](https://scorecard.dev/viewer/?uri=github.com/samerfarida/doaas) [![CI](https://static.pigsec.cn/wp-content/uploads/repos/cas/ad/ad5834178f7599af9fdda11629d49cae07f2997beec49821b2920eff5bfd50e7.svg)](https://github.com/samerfarida/doaas/actions/workflows/ci.yml) [![CodeQL Analysis](https://static.pigsec.cn/wp-content/uploads/repos/cas/77/771a9ce93d71fa9185379c2bf247fbbaef9308612349152644e292859a4e4a75.svg)](https://github.com/samerfarida/doaas/actions/workflows/codeql.yml) 欢迎来到 **DOaaS** () — 2026 年最重要的 DevOps 平台。 它不部署基础设施。 它不修复故障。 它不降低你的云账单。 它做的事情要关键得多: **它为你的 pipeline 提供情感支持。** 现在就来试试: ``` curl -s "https://doaas.dev/random?mode=chaos&format=text" ``` 输出示例: ``` Deploying to prod. No rollback plan. Respect. ``` 因为生产环境充满痛苦,而痛苦需要一个 API。 ## 为什么会有这个项目? - **生产环境很艰难。** 待命值班、飘红的 pipeline,还有“你试过重启吗?”这些都太老套了。DOaaS 是一个带来轻松感的单一 API——无需开会,没有站会斗智斗勇,只需一次 `curl`。 - **团队需要释放压力的出口。** 站会破冰、甩锅大法、状态页、Slack 机器人——瞬间转换心情,同一个 endpoint。 - **DevOps 不必总是沉闷的。** 少点职场黑话,多点机智幽默。少点“哦,不”,多点“好吧,我们能搞定”。 ## ✨ 它能做什么? 这里是完整的工具箱(或者访问 `/help` 获取实时列表): - `/help` – 列出所有 endpoint 和用法(也可以在 `/` 查看)。 - `/random` – 从任何 endpoint 获取随机消息。 - `/blame` – 优雅地甩锅。 - `/motivate` – JSON 或纯文本形式的拉拉队。 - `/incident` – 没有恐慌的 incident 式回复。 更多 endpoint:`/excuse`, `/thisisfine`, `/realitycheck`, `/deploy`, `/rollback`, `/lgtm`, `/standup`, `/meeting`, `/burnout`, `/alignment`, `/roadmap`, `/policy`, `/audit`, `/compliance`, `/risk`, `/yes`, `/no`, `/maybe`。 ## 🚀 快速开始 **1. 试试看** — 在你的终端中运行: ``` curl -s "https://doaas.dev/random?mode=chaos&format=text" ``` **2. 查看所有内容** — 完整的 endpoint 列表请访问 [doaas.dev/help](https://doaas.dev/help)(浏览器或 `curl`)。 **3. 深入了解** — Slack、GitHub Actions、shell 函数等:[INTEGRATIONS.md](INTEGRATIONS.md)。 ## 用法 ### curl ``` # 随机 (chaos mode) curl -s "https://doaas.dev/random?mode=chaos&format=text" # Blame、motivate 及更多 curl -s "https://doaas.dev/blame?format=text" curl -s "https://doaas.dev/motivate?format=text" curl -s "https://doaas.dev/meeting?mode=corporate&format=text" curl -s "https://doaas.dev/realitycheck?mode=security&format=text" # 列出所有 endpoints curl -s "https://doaas.dev/help" ``` ### 浏览器 在浏览器中打开 [doaas.dev/help](https://doaas.dev/help) 来探索和尝试各种 endpoint。 ### Shell 函数 添加到 `.bashrc` 或 `.zshrc`: ``` doaas() { local endpoint=$1 local format=${2:-json} curl -s "https://doaas.dev/${endpoint}?format=${format}" } ``` 然后:`doaas motivate text`,`doaas blame json`,等等。如需支持 `mode` 和 Fish/PowerShell 的版本,请参阅 [INTEGRATIONS.md](INTEGRATIONS.md#shell-functions--aliases)。 ### 终端问候语 ![带有 DOaaS 风格消息的终端](https://raw.githubusercontent.com/samerfarida/doaas/main/assets/terminal01.png) 每次打开终端时获取一条 DOaaS 消息 — 添加到 `~/.bashrc` 或 `~/.zshrc`: ``` [[ $- == *i* ]] && { echo ""; curl --max-time 2 -fsS "https://doaas.dev/random?mode=chaos&format=text" || true; echo; } ``` 如需更温和(温馨)的版本,请参阅 [INTEGRATIONS.md](INTEGRATIONS.md#terminal-greeting-recommended)。 ## ⚙️ 查询参数 - `mode`: normal(默认) | chaos | corporate | security | wholesome | toxic | sarcastic | devops(可用性因 endpoint 而异) - `format`: json(默认) | text | shields 当 `format=shields` 时,可选参数:`style`、`label`、`color`、`labelColor`(默认值和详情见 [INTEGRATIONS.md](INTEGRATIONS.md#readme--github-badges-shieldsio))。 ## 开发 关于本地设置和所有 `npm` 脚本,请参阅 [CONTRIBUTING.md](CONTRIBUTING.md#development-aka-how-to-poke-under-the-hood)。 ## 🔐 安全说明 - **内容护栏:** 我们使用 [OpenAI Moderation API](https://developers.openai.com/api/docs/guides/moderation) 检查 `endpoints/` 中的所有内容。每次 pull request 都会检查新增或修改的俏皮话;根据我们的 [行为准则](CONTRIBUTING.md#code-of-conduct),被归类为有害内容(例如骚扰、仇恨、暴力、自残、色情、违法)的内容将被**拒绝**。请参阅 [CONTRIBUTING.md](CONTRIBUTING.md#guardrails-content-moderation-for-endpoints) 了解我们检查的完整类别列表。 - 免费版用户:不要做那个疯狂轰炸 API 的人——速率限制是真实存在的。 - 合理使用缓存或保留本地副本,以免成为 DOaaS 垃圾邮件发送者。 - 所有 endpoint 都设置了 `Cache-Control: no-store`,因为新鲜的数据才是最好的数据。 - 如需报告漏洞,请参阅 [SECURITY.md](SECURITY.md)。 ## 🧠 理念 - DevOps:在这里,“在我的电脑上能运行”是通用的借口。 - 自动化一切,甚至包括你的咖啡时间。 - 如果它没坏,无论如何也要加上监控。 - 甩锅是一项团队运动——慷慨地把它传递下去吧。 - 记住:每一次 incident 都只是你职业生涯故事中的一个情节转折。 ## 发布 有关版本历史,请参阅 [CHANGELOG.md](CHANGELOG.md);有关发布说明和资产,请参阅 [GitHub Releases](https://github.com/samerfarida/doaas/releases)。 ## 贡献 我们需要的**不仅仅是代码** — 新的 endpoint、更有趣的俏皮话、更好的文档。请参阅 [CONTRIBUTING.md](CONTRIBUTING.md) 加入乐趣。 如果 DOaaS 让你笑了,请在 [GitHub 上给我们点 Star](https://github.com/samerfarida/doaas)。在站会上分享它。把锅甩给 API。你知道该怎么做的。 放手去干,像个老大一样 DOaaS 吧!🚀
标签:API, 娱乐, 幽默, 数据可视化, 暗色界面, 程序员工具, 自动化攻击