@peteqian/resendbox 0.0.1
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 +21 -0
- package/index.js +6 -0
- package/package.json +26 -0
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# resendbox
|
|
2
|
+
|
|
3
|
+
> ⚠️ **Work in progress.** `0.0.1` is a placeholder reserving the name. Not usable yet.
|
|
4
|
+
|
|
5
|
+
In-memory mock of the [Resend](https://resend.com) email API with a local inbox UI — for local development, preview, and CI.
|
|
6
|
+
|
|
7
|
+
Point the real `resend` SDK at a local mock so emails are captured in an in-memory mailbox and viewable in a web UI, instead of being sent for real:
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { Resend } from 'resend';
|
|
11
|
+
|
|
12
|
+
const resend = new Resend('re_test', { baseUrl: 'http://localhost:3001' });
|
|
13
|
+
await resend.emails.send({ from, to, subject, html });
|
|
14
|
+
// captured locally — zero real sends, nothing counts toward usage
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Planned: CLI (`npx resendbox`), programmatic API (`createResendMock()`) with a CI inspection API, Resend error parity, and a bundled inbox.
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
MIT
|
package/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// resendbox — placeholder release to reserve the name.
|
|
2
|
+
// In-memory mock of the Resend email API with a local inbox UI.
|
|
3
|
+
// Real implementation in progress: https://github.com/resend (TBD)
|
|
4
|
+
throw new Error(
|
|
5
|
+
'resendbox is not implemented yet — this 0.0.1 is a name placeholder. See README.',
|
|
6
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@peteqian/resendbox",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "In-memory mock of the Resend email API with a local inbox UI — for local dev, preview, and CI. Work in progress.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"resend",
|
|
7
|
+
"email",
|
|
8
|
+
"mock",
|
|
9
|
+
"sandbox",
|
|
10
|
+
"testing",
|
|
11
|
+
"inbox"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./index.js",
|
|
16
|
+
"files": [
|
|
17
|
+
"index.js",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=20"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
}
|
|
26
|
+
}
|