verify-phone-sms 0.9.72 → 0.9.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/package.json +1 -1
- package/CLAUDE.md +0 -28
package/README.md
CHANGED
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
<a href="https://www.npmjs.com/package/verify-phone-sms"><img src="https://img.shields.io/npm/types/verify-phone-sms" alt="TypeScript types" /></a>
|
|
10
10
|
<a href="https://packagephobia.com/result?p=verify-phone-sms"><img src="https://packagephobia.com/badge?p=verify-phone-sms" alt="Install size" /></a>
|
|
11
11
|
<a href="https://app.codecov.io/gh/OpenSourceAGI/dev-tools-starter-agent/flags"><img src="https://img.shields.io/codecov/c/github/OpenSourceAGI/dev-tools-starter-agent?flag=verify-phone-sms&label=verify-phone-sms%20coverage&logo=codecov&logoColor=white" alt="Coverage" /></a>
|
|
12
|
+
<br />
|
|
13
|
+
<a href="https://github.com/OpenSourceAGI/dev-tools-starter-agent/stargazers"><img src="https://img.shields.io/github/stars/OpenSourceAGI/dev-tools-starter-agent" alt="GitHub Stars" /></a>
|
|
14
|
+
<a href="https://github.com/OpenSourceAGI/dev-tools-starter-agent/issues"><img src="https://img.shields.io/github/issues/OpenSourceAGI/dev-tools-starter-agent?logo=github" alt="GitHub Issues" /></a>
|
|
15
|
+
<a href="https://github.com/OpenSourceAGI/dev-tools-starter-agent/pulls"><img src="https://img.shields.io/github/issues-pr/OpenSourceAGI/dev-tools-starter-agent?logo=github&label=PRs" alt="Open Pull Requests" /></a>
|
|
16
|
+
<a href="https://github.com/OpenSourceAGI/dev-tools-starter-agent/pulls?q=is%3Apr+is%3Aclosed"><img src="https://img.shields.io/github/issues-pr-closed/OpenSourceAGI/dev-tools-starter-agent?logo=github&label=PRs%20merged&color=8957e5" alt="Merged Pull Requests" /></a>
|
|
17
|
+
<a href="https://github.com/OpenSourceAGI/dev-tools-starter-agent/discussions"><img src="https://img.shields.io/github/discussions/OpenSourceAGI/dev-tools-starter-agent" alt="GitHub Discussions" /></a>
|
|
18
|
+
<a href="https://github.com/OpenSourceAGI/dev-tools-starter-agent/commits/master/"><img src="https://img.shields.io/github/last-commit/OpenSourceAGI/dev-tools-starter-agent.svg" alt="GitHub last commit" /></a>
|
|
19
|
+
<br />
|
|
20
|
+
<img src="https://img.shields.io/badge/Bun-14151A?logo=bun&logoColor=white" alt="Bun" /> <img src="https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white" alt="TypeScript" /> <img src="https://img.shields.io/badge/Cloudflare%20Workers-F38020?logo=cloudflareworkers&logoColor=white" alt="Cloudflare Workers" /> <img src="https://img.shields.io/badge/Hono-E36002?logo=hono&logoColor=white" alt="Hono" /> <img src="https://img.shields.io/badge/Zod-3E67B1?logo=zod&logoColor=white" alt="Zod" /> <img src="https://img.shields.io/badge/Vitest-6E9F18?logo=vitest&logoColor=white" alt="Vitest" />
|
|
12
21
|
</p>
|
|
13
22
|
<!-- template-git-repo:badges:end -->
|
|
14
23
|
|
package/package.json
CHANGED
package/CLAUDE.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# CLAUDE.md — `verify-phone-sms`
|
|
2
|
-
|
|
3
|
-
**skill:** [`skills/verify-phone-sms`](../../skills/verify-phone-sms/SKILL.md)
|
|
4
|
-
· **runner:** Vitest · **build:** none (`echo 'No build step needed for Workers'`)
|
|
5
|
-
|
|
6
|
-
SMS phone-verification API over **AWS SNS**, served by a **Hono** app on
|
|
7
|
-
Cloudflare Workers. Entry: `src/verify-phone.ts`.
|
|
8
|
-
|
|
9
|
-
## Rules — this one sends real messages that cost real money
|
|
10
|
-
|
|
11
|
-
- **Rate limiting and VoIP blocking are the product**, not overhead. An
|
|
12
|
-
unthrottled verification endpoint is an SMS-pumping target that bills the
|
|
13
|
-
operator. Never relax a limit to make a test pass.
|
|
14
|
-
- **Never log a code or a full phone number.** Codes are secrets with a short
|
|
15
|
-
life; numbers are personal data.
|
|
16
|
-
- Codes must be compared in constant time and expire. Verification attempts are
|
|
17
|
-
themselves rate-limited, separately from send.
|
|
18
|
-
- No build step — `src/*.ts` runs on Workers directly. Node-only APIs will pass
|
|
19
|
-
a Node test and fail in production.
|
|
20
|
-
|
|
21
|
-
## Layout
|
|
22
|
-
|
|
23
|
-
`src/verify-phone.ts` (entry) · `src/verify-phone-server.ts` ·
|
|
24
|
-
`src/identity-verification-server.ts` · `src/sns.ts` · `src/index.ts`
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
cd packages/verify-phone-sms && bun run test
|
|
28
|
-
```
|