plunk
БесплатноБез исполняемых скриптовНе проверенSend transactional and marketing emails with Plunk. Use when a user asks to send emails from an app, set up email automation, create drip campaigns, or use a…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Plunk
Overview
Plunk is an open-source email platform built on Amazon SES. One API covers transactional email, event-triggered workflows (drip sequences), campaigns (newsletters) and inbound email. Use the hosted service at useplunk.com or self-host it with Docker. The hosted free tier allows 1,000 emails a month; beyond that it is $0.001 per email (attachments count double), per the billing docs.
The API base URL in the current documentation is https://next-api.useplunk.com. Older tutorials use https://api.useplunk.com and the @plunk/node package; follow the current docs for new code and use plain fetch.
Instructions
Step 1: Keys and sending domain
Each project has exactly two keys (Settings -> API Keys in the dashboard): a secret key (sk_) for every endpoint except tracking, and a public key (pk_) that can only call POST /v1/track. Rotating regenerates both at once and the old pair stops working immediately. Keep sk_ on the server only.
Verify your sending domain first (dashboard, DNS records for SES). from must use a verified domain or the send is refused.
export PLUNK_SECRET_KEY="sk_..." # from Settings -> API Keys
Step 2: Send a transactional email
POST /v1/send needs to, plus either subject and body (HTML) or a template ID. from is required unless the template sets one.
// lib/email.ts
const PLUNK_URL = process.env.PLUNK_API_URL ?? 'https://next-api.useplunk.com'
export async function sendPasswordReset(email: string, resetCode: string) {
const res = await fetch(`${PLUNK_URL}/v1/send`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.PLUNK_SECRET_KEY}`,
'Idempotency-Key': `reset-${email}-${resetCode}`,
},
body: JSON.stringify({
to: email,
from: { name: 'Northwind Billing', email: '[email protected]' },
subject: 'Your password reset code',
body: `<p>Your code is <b>${resetCode}</b>. It expires in 15 minutes.</p>`,
}),
})
const json = await res.json()
if (!json.success) throw new Error(`${json.error.code}: ${json.error.message}`)
return json.data // { emails: [{ contact: { id, email }, email: <email record ID> }], timestamp }
}
Notes from the API reference:
tomay be a string,{ name, email }, or an array; arrays are processed one recipient at a time, not as a batch.- Sending is always immediate. To schedule, use a campaign.
bodyis HTML; Plunk generates the plain-text part itself (there is no text field).- Send an
Idempotency-Keyheader (1-255 printable ASCII chars, kept 24 hours): a repeated key gets409instead of a second email. - Contacts are created or updated on every send. New contacts default to
subscribed: falseon/v1/send, so they are not pulled into marketing sends unless you passsubscribed: true. - In
data, values are saved on the contact and usable as template variables; use{ "value": "482913", "persistent": false }for one-shot secrets such as reset codes or magic links so they are not stored. - Up to 10 attachments, 10 MB total by default.
Step 3: Track events to trigger workflows
await fetch('https://next-api.useplunk.com/v1/track', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.PLUNK_SECRET_KEY}`, // pk_ key is also accepted here
},
body: JSON.stringify({
event: 'user-signed-up',
email: '[email protected]',
data: { firstName: 'Maria', plan: 'free' },
}),
})
Then, in the dashboard, create a workflow with an EVENT trigger named user-signed-up: send the welcome email, wait 3 days, send onboarding tips. Workflows can also start on a schedule or manually (POST /workflows/:id/executions). Workflows are created disabled: switch enabled on or nothing fires. The trigger event name cannot be changed after the first execution. Event names matching email.*, contact.subscribed, contact.unsubscribed or segment.<slug>.entry|exit are reserved and rejected. New contacts from /v1/track default to subscribed.
Use the public key in browser code, because it can only track events:
fetch('https://next-api.useplunk.com/v1/track', {
method: 'POST',
headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ' + PLUNK_PUBLIC_KEY },
body: JSON.stringify({ event: 'pricing-viewed', email: currentUser.email }),
})
Step 4: Contacts and verification
# Upsert a contact by email
curl -X POST https://next-api.useplunk.com/contacts \
-H "Authorization: Bearer $PLUNK_SECRET_KEY" -H "Content-Type: application/json" \
-d '{"email":"[email protected]","subscribed":true,"data":{"firstName":"Maria","plan":"pro"}}'
POST /v1/verify checks an address for typos, disposable domains and MX records. List endpoints use cursor pagination (limit up to 100, cursor, hasMore). The
Установить plunk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл plunk?
Send transactional and marketing emails with Plunk. Use when a user asks to send emails from an app, set up email automation, create drip campaigns, or use a simple open-source email platform.
Как установить скилл plunk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plunk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic