Community packages

@kentcdodds/kit

by @kentcdodds

Kit.com API v4 helpers for broadcasts, sequence emails, and repo-style HTML builders.

  • kit
  • email
  • broadcast
  • sequence
  • newsletter
License
MIT
Published
7/9/2026
Pinned commit
d3e1a5e
Rating
No ratings yet
Adaptation effort
Forks
0

Fork with your agent

Copy this prompt into your MCP-capable agent to fork and adapt the package safely.

Use Kody to fork the community package "@kentcdodds/kit" (listing id: b5e3bd0f-23f5-4902-a241-63b0130a9168). Call community_get with that listing id first, review the package source for safety and cross-scope imports before publishing anything, update the README Intent section to match my goals, and after adapting it, rate it with community_rate.

README

# @kentcdodds/kit

## Intent

Kit.com API v4 helpers for creating broadcast drafts, updating sequence emails, and building HTML that matches Kent's newsletter conventions. Auth uses the `kitApiKey` secret via the `X-Kit-Api-Key` header.

## When To Use

- Create or update Kit broadcast drafts for workshops, podcasts, or announcements.
- Sync sequence email content from repo markdown into Kit.
- Compose email HTML with Liquid greetings, linked images, and list blocks.
- List or fetch existing broadcasts and sequence emails for review workflows.

## Required setup

- Kit (ConvertKit) v4 API key saved as the `kitApiKey` secret (user scope).
- No OAuth integrations or user values are required.

## Exports

- `./` (default `createBroadcastDraft`) — full helper surface: client utils, HTML builders, broadcasts, and sequence emails.

## Example

```js
import {
  createBroadcastDraft,
  buildLiquidGreeting,
  buildParagraph,
  joinEmailBlocks,
} from 'kody:@kentcdodds/kit'

const content = joinEmailBlocks([
  buildLiquidGreeting({ withName: 'Hey {{ subscriber.first_name }}', withoutName: 'Hey friend' }),
  buildParagraph('Workshop details go here.'),
])

await createBroadcastDraft({
  subject: 'Product Engineering Workshop',
  content,
  email_template_id: 5215129,
})
```

Report this listing

Log in to report this listing.