mirror of
https://github.com/bitbaum/mail-kit.git
synced 2026-12-04 04:47:25 +01:00
Extracted from OrangeCat's email layout and made brandable: the brand colour
and the product's name were written into it, it was English only, it had no
dark mode and it took raw HTML for the heading and body.
- renderMail(brand, content) -> { html, text }: content is plain text and
escaped (only **bold**), dark mode, Outlook button, plain-text twin,
preheader, 8 block kinds. Links must be http(s)/mailto.
- The footer is a required key: reason always, unsubscribe {label,url} or
null (null only for mail asked for this minute).
- signUnsubscribe / verifyUnsubscribe (HMAC, no expiry) and
listUnsubscribeHeaders (RFC 8058 one-click).
- sendMail takes headers.
Claude-Session: https://claude.ai/code/session_019MDtmvF6Smf3iMYnGBqi12
Co-authored-by: Claude <noreply@anthropic.com>
67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
{
|
|
"name": "@bitbaum/mail-kit",
|
|
"version": "0.3.0",
|
|
"description": "The fleet's one email layer: Resend over raw fetch, one HTML layout with dark mode and a plain-text twin, signed one-click unsubscribe, zero dependencies, honest never-throwing results, sandbox/placeholder guards, and the shared-sender convention encoded once.",
|
|
"license": "MIT",
|
|
"author": "Mao Nakamoto",
|
|
"homepage": "https://github.com/bitbaum/mail-kit#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/bitbaum/mail-kit.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/bitbaum/mail-kit/issues"
|
|
},
|
|
"keywords": [
|
|
"email",
|
|
"resend",
|
|
"transactional",
|
|
"mail",
|
|
"never-throw"
|
|
],
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"packageManager": "pnpm@11.25.0",
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"provenance": true
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./template": {
|
|
"types": "./dist/template.d.ts",
|
|
"default": "./dist/template.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "vitest run",
|
|
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run build && pnpm run test",
|
|
"prepare": "pnpm run build",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check ."
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@types/node": "^26.4.0",
|
|
"eslint": "^10.9.1",
|
|
"globals": "^17.11.0",
|
|
"prettier": "3.9.6",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.68.0",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|