Targets
A target sends a finished release bundle somewhere. Targets are listed under targets in justshipped.config.yaml and run with justshipped publish (every target, or the ones --to names) and by justshipped ship (the Release first, then every other target).
targets:
- plugin: github-release
- plugin: folder
path: ../pebble-site/releases
- plugin: typefully
social_set_id: "12345"
channels: { x: x, bluesky: bluesky }Each entry names a plugin. Everything else in the entry is that plugin's settings. An entry's id is its id, or else its plugin name; give two entries of the same plugin different ids:
targets:
- plugin: webhook
id: site-hook
url_env: PEBBLE_SITE_HOOK
- plugin: webhook
id: chat-hook
url_env: PEBBLE_CHAT_HOOKjustshipped publish --to site-hook,chat-hook runs those two. --plan says what each target would do and changes nothing. A scheduler's plan sends no request at all; a Release target's plan reads the release from its forge, to say what it would replace.
The drafts-only rule
A person reviews everything before it goes public. A scheduler target (Buffer, Mixpost, Postiz, Publer, Typefully) only ever saves a draft, or a post that waits for approval. No setting makes one publish, schedule or queue a post, and a re-run never changes a post a person has already scheduled or published: it is left as it is, with a warning.
A shared contract test discovers every scheduler plugin in the repository and fails if any request one sends could publish or schedule. A new scheduler is under that test without being added to a list.
The app-store and play targets are held to the same rule: they only set text on a version or release nobody has submitted or rolled out yet. Their own contract test fails on any request to a submission, review or release endpoint, and on any write but that text. For Play it also fails on any change to a release's status, rollout fraction or version codes, on a new or dropped release, on another track, and on a commit that could send changes for review.
The ghost target only saves a draft post. Its contract test fails on any post sent with a status other than draft, on a published_at, newsletter or email_segment field or query, and on any request but reading a post, creating or updating one, and uploading an image.
The wordpress target is held to the same blog-draft test: it fails on any post with a status other than draft, on a date, date_gmt, password, sticky or author field, on any query on a write (such as _method), and on any request but reading a post (context=edit), creating or updating one, and uploading an image.
The devto target only saves an unpublished article. Its contract test fails on any article sent without published: false, on Markdown that starts a front matter block (which dev.to would read, and which could publish it), on a published_at, series or organization field, on any query but paging the account's article list, and on any request but listing the account's articles, creating an article and updating one.
The hashnode target only saves a draft. Hashnode's API is GraphQL, one address for everything, so its contract test reads the operation each request holds: it fails on any operation but reading a draft (draft), reading a post (post), creating a draft (createDraft) and updating one (updateDraft), each alone in its document and under its own operation name, so publishDraft, publishPost, updatePost, removePost, a schedule or a review submission fails, even renamed or aliased. It also fails on a draft field but the title, the Markdown, tags and a cover image address (no publishedAt, settings, series or author), and on Markdown that starts a front matter block.
The email targets, resend, mailchimp and loops, only save a draft campaign or broadcast. A person sends it. Their contract test fails on any request but the few each one needs (reading the draft, creating it, writing its content), on any query, on any status, send, scheduled_at, scheduling, schedule_time or test-recipient field, on a Mailchimp campaign of any type but regular, and on any request to another address. So Resend's send endpoint, Mailchimp's send, schedule and test actions, and Loops' preview (test) and campaign update endpoints all fail it.
There is no Slack or Discord target. Neither service has drafts: a message sent by a bot or an incoming webhook is live in the channel at once, and a scheduled message is scheduling, which this rule rules out. So outputs.chat writes copy for a person to paste, and no target sends it: the webhook target leaves it out of its payload, the email targets read email.md only, and only the folder and zip targets copy it, with the rest of the bundle, to a place of your own.
Files for the team stay private
Files under internal/ (the support memo) are never handed to a target, so no target can send them: each one gets a copy of the bundle without that folder, and a release.json that no longer names it. The folder and zip targets take it only with include_internal: true. A contract test runs every target in the repository against a bundle with a memo and fails if any is handed, sends or writes a word of it.
Re-runs
After a publish, published.json in the bundle records what each target made:
{
"schemaVersion": 1,
"targets": {
"typefully": {
"publishedAt": "2026-05-04T12:00:00.000Z",
"links": [{ "label": "Typefully draft for x", "url": "https://typefully.com/?d=101" }],
"ids": { "x": "101", "bluesky": "102" }
}
}
}On the next run each target is handed its own ids as its existing setting, so a scheduler updates the drafts it made and creates none. A target's ids are recorded when it finishes: a scheduler that fails part-way (the draft for one channel saved, the next one refused) leaves no entry, and the next run creates the saved draft a second time. Delete the extra draft in the scheduler, or name the first one under existing before the re-run. An existing you set in the config wins over the file, channel by channel.
The ids are only known where published.json is. justshipped publish reads and writes it in the bundle folder on disk, so keep that folder between runs. When a target fails during justshipped ship, the bundle is committed to the bundle branch with published.json in it (the branch is created if there was none), and the next ship run starts from there. After a ship that succeeded the branch is deleted and the file goes with the checkout: shipping the same version again by hand (workflow_dispatch) creates new scheduler drafts, unless existing in the config names the old ones.
The other targets are idempotent by their nature: a Release body is replaced between its markers, the zip asset is replaced, a pull request is updated, a folder or zip is overwritten, and a webhook carries the same Idempotency-Key for one app and version.
Secrets
A setting ending in _env is the name of an environment variable. The value is read at run time and is never written to the bundle, the log or published.json.
Forge releases
These write the Release body between <!-- justshipped:start --> and <!-- justshipped:end --> and attach the bundle zip. They only update a release that already exists; none creates or publishes one.
github-release
| Setting | Default | What |
|---|---|---|
repo | GITHUB_REPOSITORY, else the origin remote | owner/name |
token_env | GITHUB_TOKEN | Env var holding a token that can write releases |
api_url | https://api.github.com (GITHUB_API_URL in a workflow) | API root; an Enterprise server uses https://<host>/api/v3. https only, with no credentials, ? or # |
tag | v<version> | The release's tag. ship passes the real one |
attach_zip | true | Attach the bundle zip as a release asset |
mode | merge | merge keeps a release tool's notes; replace writes only ours |
targets:
- plugin: github-release
repo: example/pebblegitlab-release
| Setting | Default | What |
|---|---|---|
project | (required) | Project path with its groups (example/pebble), or the numeric id |
host | https://gitlab.com | Where GitLab is served |
token_env | GITLAB_TOKEN | Env var holding a token that can write releases and packages |
tag, attach_zip, mode | as above | The zip is stored as a generic package and linked from the release |
targets:
- plugin: gitlab-release
project: example/pebblegitea-release
For Gitea and Forgejo.
| Setting | Default | What |
|---|---|---|
repo | (required) | owner/name |
host | (required) | The instance, such as https://codeberg.org |
token_env | GITEA_TOKEN | Env var holding a token that can write releases |
tag, attach_zip, mode | as above |
targets:
- plugin: gitea-release
repo: example/pebble
host: https://codeberg.orgpull-request
Commits the bundle to a branch through the host's API and opens a draft pull request with the changelog. A re-run updates the same branch and description.
The default branch is also the name of the bundle branch that justshipped preview writes and justshipped ship deletes. When the pull request goes to the repository that is being released, set a branch of its own, such as release-notes/{version}; ship refuses the clash.
| Setting | Default | What |
|---|---|---|
host | (required) | github, gitlab or gitea |
repo | (required) | owner/name; on GitLab the full project path |
api_url | the public GitHub or GitLab API | API root. A Gitea server must set it |
token_env | GITHUB_TOKEN, GITLAB_TOKEN or GITEA_TOKEN | Env var holding a token |
base | the default branch | Branch the pull request targets |
branch | justshipped/{version} | Branch the files are committed to |
copy | Bundle file to repository path, {version} allowed. Without it the whole bundle is committed | |
bundle_dir | releases/{version} | Repository folder for the whole bundle when copy is not set |
targets:
- plugin: pull-request
host: github
repo: example/pebble-site
copy:
changelog.md: content/changelog/{version}.mdwebhook
One signed POST per release. Settings, headers and body are in webhook.md.
targets:
- plugin: webhook
url_env: PEBBLE_HOOK_URL
secret_env: PEBBLE_HOOK_SECRETfolder
Copies the bundle's files into a folder. Files already there are overwritten; files the bundle does not have are left alone.
| Setting | What |
|---|---|
path | Destination folder, relative to the working directory or absolute. It may not be inside the bundle |
include_internal | Also copy internal/ (the support memo). Off by default; leave it off for a folder anyone outside the team can open |
zip
Writes the whole bundle as <app>-<version>-bundle.zip, replacing a file of that name.
| Setting | What |
|---|---|
path | Folder the zip is written to. It may not be inside the bundle |
include_internal | Also put internal/ (the support memo) in the zip. Off by default |
targets:
- plugin: folder
path: ../pebble-site/releases/latest
- plugin: zip
path: distapp-store
Puts the bundle's App Store text (store/app-store.txt) into App Store Connect as the "What's New" text of the version you are preparing. A person submits the version for review in App Store Connect; this target never does.
It finds the app's version whose version string is the bundle's version (or its version_map entry) on platform. Only a version that has not been submitted is edited: PREPARE_FOR_SUBMISSION, DEVELOPER_REJECTED, REJECTED, METADATA_REJECTED or INVALID_BINARY. It reads that version's localizations and sets whatsNew on the one for each language's locale, and on nothing else. Every localization is found before any is written, so a missing one writes nothing. When the text there already matches, nothing is written, so a re-run changes nothing.
It never creates a version, submits for review, releases, or changes any other field (description, keywords, builds, pricing, screenshots). When there is no such version, or it is waiting for or in review, --plan says so and publish stops with that message: create the version in App Store Connect first. The very first version of an app has no What's New, and App Store Connect refuses it.
| Setting | Default | What |
|---|---|---|
app_id | (required) | The app's Apple ID, the number in its App Store Connect address |
platform | IOS | IOS, MAC_OS, TV_OS or VISION_OS |
locale | The App Store localization the first language's text is written to. Unset: the locale outputs.store.locales maps that language to, else en-US | |
version_map | Bundle version to App Store version string, when the two differ | |
key_id_env | ASC_KEY_ID | Env var holding the API key's id |
issuer_id_env | ASC_ISSUER_ID | Env var holding the team's issuer id |
private_key_env | ASC_PRIVATE_KEY | Env var holding the contents of the key's .p8 file. Line breaks written as \n are read as line breaks |
Make a team API key in App Store Connect (Users and Access, Integrations) with the App Manager role. Each run signs a short-lived token (ES256, 10 minutes) with it; the key and the token are never logged, written, or put in an error. Requests go only to https://api.appstoreconnect.apple.com.
The first language's text (store/app-store.txt) goes to locale. In a bundle written in more than one language, each other language's text (fr/store/app-store.txt) goes to the App Store locale outputs.store.locales maps it to (fr: { app_store: fr-FR }); a language with none is skipped with a note, and two languages set to the same locale stop the run before any request. The App Store takes at most 4000 characters per locale, the limit the store output is written within.
This target was built against Apple's published API reference and recorded responses. It has not yet been run against the live App Store Connect API.
targets:
- plugin: app-store
app_id: "1234567890"
locale: en-USplay
Puts the bundle's Google Play text (store/play.txt) into Google Play Console as the release notes of a draft release on a track. A person rolls the release out in Play Console; this target never does.
Each run opens an edit, reads the track, and picks the draft release: the one whose version codes include version_code, or, with no version_code, the draft with the highest version code. It sets that release's notes for each language's Play language and sends the track back exactly as it was read otherwise: every other field, release and language is kept, and the target checks that before it sends. Then it commits the edit with changesNotSentForReview=true, so nothing is sent for review. When the notes there already match, nothing is written and the edit is deleted, so a re-run changes nothing.
It never creates a release, changes a status, a rollout fraction (userFraction) or version codes, or touches a release that is inProgress, halted or completed, another track, the store listing, or a build. When the track has no draft release, or version_code names a release that is not a draft, --plan says so and publish stops with that message: create the draft release in Play Console first. The edit is deleted whenever the run stops or fails, so none is left open. --plan opens an edit only to read the track, and deletes it.
| Setting | Default | What |
|---|---|---|
package_name | (required) | The app's package name, such as com.example.pebble |
track | production | The track: production, beta, alpha, internal, or a custom track's name |
language | The Play language the first language's notes are written to. Unset: the locale outputs.store.locales maps that language to, else en-US | |
version_code | The version code of the draft release to edit. Unset: the newest draft on the track | |
service_account_env | PLAY_SERVICE_ACCOUNT_JSON | Env var holding the contents of a service account's JSON key file |
Make a service account in Google Cloud, create a JSON key for it, and invite its email in Play Console (Users and permissions) with permission to manage releases for the app. Each run signs a short-lived assertion (RS256, 10 minutes) with the key and trades it at Google's OAuth endpoint for an access token scoped to the Android Publisher API. The key file, the assertion and the token are never logged, written, or put in an error. Requests go only to https://oauth2.googleapis.com/token and https://androidpublisher.googleapis.com, with redirects refused; the key file's own token_uri is not used.
The first language's text (store/play.txt) goes to language. In a bundle written in more than one language, each other language's text (fr/store/play.txt) goes to the Play language outputs.store.locales maps it to (fr: { play: fr-FR }), all in the one track write; a language with none is skipped with a note, and two languages set to the same Play language stop the run before any request. Play takes at most 500 characters per language, the limit the store output is written within.
This target was built against Google's published Android Publisher API reference and recorded responses. It has not yet been run against the live Google Play Developer API.
targets:
- plugin: play
package_name: com.example.pebble
track: production
language: en-USghost
Saves the bundle's blog post (post.md) as a draft post in Ghost. A person publishes it, and chooses whether to email it to members, in Ghost; this target never does.
The post's leading # heading becomes the post's title (else the bundle's title for the post, else the app and version) and the rest is sent as HTML. Raw HTML in the Markdown is dropped, links keep only http, https and mailto addresses, and an image keeps only an https address; any other is shown as its alt text. Only the first language's post is sent.
On a re-run it updates the draft it made (its id is in published.json, or set existing: { post: <id> }). When that post is no longer a draft, because someone published, scheduled or sent it, it is left as it is with a warning, and nothing is written. When the post is gone, a new draft is made.
| Setting | Default | What |
|---|---|---|
url | (required) | The site's address, or its admin address where that differs, such as https://pebble.example.com. A site in a subfolder includes it (https://pebble.example.com/blog); leave off /ghost. https only, or http for localhost |
admin_key_env | GHOST_ADMIN_API_KEY | Env var holding the Admin API key (<id>:<secret>) |
tags | Tag names the draft gets. Ghost makes a tag it does not have. Unset: tags are left as they are | |
upload_image | false | Upload the blog post's share image and set it as the draft's feature image. Each run uploads it again |
existing | from published.json | post: the id of the draft an earlier run made |
Make a custom integration in Ghost Admin (Settings, Integrations) and copy its Admin API key. Each request carries a short-lived token (HS256, 5 minutes) signed with it; the key and the token are never logged, written, or put in an error. Requests go only to url, with redirects refused.
This target was built against Ghost's published Admin API documentation and recorded responses. It has not yet been run against a live Ghost site.
targets:
- plugin: ghost
url: https://pebble.example.com
tags: [Release notes]wordpress
Saves the bundle's blog post (post.md) as a draft post in WordPress through its REST API. A person publishes it in WordPress; this target never publishes, schedules, or submits a post for review.
The post's leading # heading becomes the title (else the bundle's title for the post, else the app and version), with any < or > left out, as themes print titles as HTML. The rest is sent as HTML, made the same way as for ghost: raw HTML dropped, links only http, https and mailto, images only https. Only the first language's post is sent.
On a re-run it updates the draft it made (its id is in published.json, or set existing: { post: <id> }). When that post is no longer a draft, because someone published, scheduled, submitted it for review or made it private, it is left as it is with a warning, and nothing is written. When the post is gone or in the trash, a new draft is made.
With upload_image, the post is read again after the image upload, right before the write: if it was published or scheduled meanwhile it is left alone with a warning, and if it was edited meanwhile the run stops and writes nothing. WordPress's REST API has no conditional update, so a change made in the moment between that last read and the write is not caught, and the write would turn a just-published post back into a draft. Avoid publishing the post in WordPress while this target runs. When that last read stops the write, the image just uploaded is left in the media library, unused but public by its URL; the warning or error names its id and its media library link so a person can delete it. The target never deletes anything.
| Setting | Default | What |
|---|---|---|
url | (required) | The site's address, such as https://pebble.example.com. A site in a subfolder includes it (https://pebble.example.com/blog); leave off /wp-json and /wp-admin. https only, or http for localhost |
user_env | WORDPRESS_USER | Env var holding the WordPress username |
app_password_env | WORDPRESS_APP_PASSWORD | Env var holding that user's Application Password |
categories | Category ids the draft gets. Unset: categories are left as they are | |
tags | Tag ids the draft gets. Unset: tags are left as they are | |
upload_image | false | Upload the blog post's share image to the media library and set it as the draft's featured image. Each run uploads it again. A media file is public by its URL once uploaded, even while the post is a draft |
existing | from published.json | post: the id of the draft an earlier run made |
Make an Application Password in WordPress (Users, Profile, Application Passwords) for an Author, Editor or Administrator account. Every request carries it as HTTP Basic auth, which is why url must be https; the username and password are never logged, written, or put in an error. Requests go only to url, under /wp-json/wp/v2, with redirects refused. The site needs its REST API on and pretty permalinks (the /wp-json/ address). WordPress.com OAuth, pages and XML-RPC are not supported.
This target was built against WordPress's published REST API documentation and recorded responses. It has not yet been run against a live WordPress site.
targets:
- plugin: wordpress
url: https://pebble.example.com
categories: [3]devto
Saves the bundle's blog post (post.md) as an unpublished article on dev.to. A person publishes it on dev.to; this target never does.
The post's leading # heading becomes the article's title (else the bundle's title for the post, else the app and version) and the rest is sent as Markdown, which dev.to takes as it is. dev.to reads front matter at the start of an article's Markdown and lets it set fields such as published, so every front matter block at the start of the post is removed, and a post that would still start one has its first line rewritten so it shows the same but cannot. Every article is sent with published: false. Only the first language's post is sent.
On a re-run it updates the draft it made (its id is in published.json, or set existing: { article: <id> }). It finds that article in the account's own list of articles (GET /api/articles/me/all, since the single-article endpoint answers only for published ones). When the article is published, or set to publish later, it is left as it is with a warning, and nothing is written. When it is gone, a new draft is made.
dev.to has no image upload in its API, so the article gets a cover image only when main_image names one.
| Setting | Default | What |
|---|---|---|
api_key_env | DEVTO_API_KEY | Env var holding the dev.to API key |
tags | Up to four tags, letters and digits only. Unset: tags are left as they are | |
canonical_url | The post's original address, when it is also on the app's own site. https only | |
main_image | The https address of a cover image | |
existing | from published.json | article: the id of the draft an earlier run made |
Make an API key on dev.to under Settings, Extensions, "DEV Community API Keys". It is sent in the api-key header, only to https://dev.to, with redirects refused; it is never logged, written, or put in an error. Series and organizations are not supported.
This target was built against Forem's published API documentation and recorded responses. It has not yet been run against the live dev.to API.
targets:
- plugin: devto
tags: [release, changelog]
canonical_url: https://pebble.example.com/blog/pebble-1-2-0hashnode
Saves the bundle's blog post (post.md) as a draft on a Hashnode publication through Hashnode's GraphQL API. A person publishes it on Hashnode; this target never publishes, schedules, or submits a draft for review.
The post's leading # heading becomes the draft's title (else the bundle's title for the post, else the app and version) and the rest is sent as Markdown, with every front matter block at its start removed, the same way as for devto. Only the first language's post is sent. Every query is a fixed document with the values passed as variables: no text from the release is ever put into a query.
On a re-run it updates the draft it made (its id is in published.json, or set existing: { draft: <id> }), after reading it. When that draft is scheduled or submitted for review, it is left as it is with a warning, and nothing is written. When it is no longer a draft, the target asks for a post with the same id: when there is one, someone published it, so it is left as it is with a warning; when there is none, the draft is gone and a new one is made. Hashnode's documentation does not say whether a published draft's post keeps the draft's id; if it does not, a published draft is taken as gone and a second draft is made, and the published post is still never touched.
There is no image upload: the draft gets a cover image only when cover_image names one.
| Setting | Default | What |
|---|---|---|
publication_id | (required) | The id of the Hashnode publication (blog) the draft goes to, 24 hex digits |
token_env | HASHNODE_TOKEN | Env var holding a Hashnode Personal Access Token |
tags | Up to 15 tag slugs (lowercase letters, digits and dashes). Hashnode makes a tag it does not have. Unset: tags are left as they are | |
cover_image | The https address of a cover image | |
existing | from published.json | draft: the id of the draft an earlier run made |
Make a Personal Access Token on Hashnode under Account Settings, Developer. Hashnode's API needs the publication to be on Hashnode Pro; without it every request fails with FORBIDDEN. The token is sent in the Authorization header, only to https://gql-beta.hashnode.com/ (the address Hashnode's API documentation now points to; the older https://gql.hashnode.com answers with a redirect), with redirects refused; it is never logged, written, or put in an error. An error names the operation and the HTTP status or GraphQL error code, never a message from Hashnode. Series, newsletters and co-authors are not supported.
This target was built against Hashnode's published GraphQL schema and recorded responses. It is untested against the live Hashnode API.
targets:
- plugin: hashnode
publication_id: "6740f0e1b2c3d4e5f6071829"
tags: [release-notes]Email targets
resend, mailchimp and loops save the bundle's newsletter snippet (email.md, from the email output) as a draft in an email tool. A person reviews and sends it there; these targets never send, schedule or send a test of one. Only the first language's snippet is sent, and nothing under internal/.
The same rules hold for all three:
- The subject is the
subjectsetting, else the snippet's leading#heading, else the bundle's title for it, else the app and version (Pebble 1.2.0). - The body is the snippet's Markdown made into HTML the same way as for
ghost: raw HTML dropped, links onlyhttp,httpsandmailto, images onlyhttps. A plain-text part is made from the same Markdown. Text that the tool would read as a personalization tag ({{{contact.*}}}in Resend,*|TAG|*in Mailchimp,{contact.*}in Loops) is written so that it shows the same but fills nothing. - The header image is linked, never uploaded: only when
image_base_urlnames thehttpsaddress the app serves the bundle's files from (the image's bundle path is added to it). Loops takes only images it hosts, so its drafts have no header image. - On a re-run each one updates the draft it made (its id is in
published.json, or setexisting). When that draft has been sent, scheduled or is sending, it is left as it is with a warning, and nothing is written. When it is gone, a new draft is made. - When Mailchimp or Loops creates a new campaign but its content cannot be written, the run fails, but the empty draft is kept and its id is recorded in
published.json, so the next run fills in that same draft rather than making another. The error names the campaign and its link; delete it in the tool if it is not wanted. Nothing is ever deleted by the target. - The key is read from the
*_envvariable and sent only to the service's own API address, with redirects refused. It is never logged, written, or put in an error; errors name the method, path and status only. - An unsubscribe link and the sender's postal address are left to the email tool: add them there before sending if the account does not add them itself.
These targets were built against each service's published API documentation and recorded responses. They have not yet been run against the live services.
resend
Creates a draft broadcast with POST /broadcasts and, on a re-run, reads it (GET /broadcasts/{id}) and updates it with PATCH /broadcasts/{id} while its status is draft. It never sends send or scheduled_at, and never calls POST /broadcasts/{id}/send.
| Setting | Default | What |
|---|---|---|
api_key_env | RESEND_API_KEY | Env var holding a Resend API key with full access |
segment_id | (required) | The segment the broadcast goes to. Resend calls audiences segments now; audience_id is taken as the older name for it |
from | (required) | The sender, on a domain verified in Resend: news@pebble.example.com or Pebble <news@pebble.example.com> |
subject | from the snippet | The subject |
reply_to | Where replies go | |
image_base_url | Where the app serves the bundle's files, for the header image | |
existing | from published.json | broadcast: the id of the draft an earlier run made |
targets:
- plugin: resend
segment_id: 78261eea-8f8b-4381-83c6-79fa7120f1cf
from: Pebble <news@pebble.example.com>
image_base_url: https://pebble.example.com/releases/1.2.0mailchimp
Creates a regular campaign with POST /3.0/campaigns (Mailchimp saves it with the status save, its draft) and sets its HTML and plain text with PUT /3.0/campaigns/{id}/content. On a re-run it reads the campaign (GET /3.0/campaigns/{id}) and, while its status is save, updates its settings with PATCH /3.0/campaigns/{id} and its content again. It never calls /actions/send, /actions/schedule, /actions/test or any other action.
| Setting | Default | What |
|---|---|---|
api_key_env | MAILCHIMP_API_KEY | Env var holding a Mailchimp API key. Its data center is read from the key's suffix (-us6) |
server | from the key | The data center, such as us6, when the key has no suffix |
list_id | (required) | The audience the campaign goes to |
from_name | the audience's | The sender's name |
reply_to | the audience's | Where replies go. Mailchimp needs one before the campaign can be sent |
subject | from the snippet | The subject, also used as the campaign's title |
image_base_url | Where the app serves the bundle's files, for the header image | |
existing | from published.json | campaign: the id of the draft an earlier run made |
The key is sent as HTTP Basic auth to https://<dc>.api.mailchimp.com only.
targets:
- plugin: mailchimp
list_id: 57afe96172
from_name: Pebble
reply_to: news@pebble.example.comloops
Uses Loops' content API, which its documentation marks as open alpha and which must be on for the team. It creates a draft campaign with POST /api/v1/campaigns (a name, and the mailing list when set, never scheduling), then writes the email's subject, sender and body with POST /api/v1/email-messages/{id}, passing the content revision Loops gave so an edit made in Loops meanwhile is not overwritten (Loops answers 409 and the run stops). On a re-run it reads the campaign (GET /api/v1/campaigns/{id}) and, while its status is Draft, reads its email (GET /api/v1/email-messages/{id}) and writes it again. It never calls the preview (test send) endpoint or the campaign update endpoint, which is where Loops schedules and sends.
Loops takes its body as LMX, its own XML markup, not HTML. The snippet's Markdown is written as LMX tags (H1 to H3, Paragraph, lists, Quote, CodeBlock, Divider, Strong, Em, Strike, Code, Link); raw HTML is dropped, images are written as their alt text, and braces are written as character references so no {contact.*} variable is filled. Whether Loops reads a character reference for a brace as a literal brace has not been checked against the live service.
| Setting | Default | What |
|---|---|---|
api_key_env | LOOPS_API_KEY | Env var holding the Loops API key |
mailing_list_id | The mailing list the campaign goes to. Unset: chosen in Loops. Set when the draft is created only | |
from_name | Loops' | The sender's name |
from_email | Loops' | The sender's address before the @; Loops adds the team's sending domain |
reply_to | Where replies go | |
subject | from the snippet | The subject, also used as the campaign's name |
existing | from published.json | campaign: the id of the draft an earlier run made |
targets:
- plugin: loops
from_name: Pebble
from_email: newsSchedulers
Each makes one draft per social post in the bundle, for the channels its channels setting maps. A channel with no mapping is skipped. Where to find each key and id is in schedulers.md.
| Plugin | Required | Key (api_key_env default) | channels maps a bundle channel to |
|---|---|---|---|
buffer | BUFFER_API_KEY | a Buffer channel id | |
mixpost | host, workspace | MIXPOST_API_KEY | a Mixpost account id (a number) |
postiz | POSTIZ_API_KEY | a Postiz integration id | |
publer | workspace_id | PUBLER_API_KEY | a Publer account id |
typefully | social_set_id | TYPEFULLY_API_KEY | a Typefully platform: x, linkedin, threads, bluesky, mastodon |
Other settings:
| Plugin | Setting | Default | What |
|---|---|---|---|
buffer | image_base_url | Public https address the bundle's files are served from. Without it, drafts carry no images | |
mixpost | host | The address the instance's API sits under, such as https://mixpost.pebble.example.com/mixpost | |
postiz | host | https://api.postiz.com | A self-hosted instance's address |
postiz | provider_settings | Extra provider settings per bundle channel | |
publer | api_url | https://app.publer.com/api/v1 | |
typefully | api_url | https://api.typefully.com | |
| all | existing | from published.json | Bundle channel to the id of a draft from an earlier run |
outputs:
social: { channels: [x, bluesky] }
targets:
- plugin: mixpost
host: https://mixpost.pebble.example.com/mixpost
workspace: 0d9c8f4e-pebble
channels: { x: "1", bluesky: "2" }How the posts did
After a person posts a draft, justshipped engagement [bundle] (or Refresh numbers on the studio's launch kit) asks the schedulers that support it how each post the tool made did, and keeps the numbers in engagement.json in the bundle. Only the posts recorded in published.json are asked about, the ones asked about longest ago first (answered or not), at most 50 per run (Postiz: 25, under its hourly limit), with GET requests (Buffer: one GraphQL read query per post); nothing is posted, edited or deleted. Only counts are kept (views, likes, shares, replies, clicks), with the post's address and when it went out: never a reply, a name or anything about the audience. Without a key a scheduler warns once and the others go on.
| Plugin | Numbers | Read with |
|---|---|---|
buffer | views, likes, shares, replies, clicks | the post query by id (needs a personal API key) |
mixpost | views, likes, shares, replies | GET /posts/{uuid} and GET /posts/{uuid}/analytics |
postiz | whichever its labels name | GET /analytics/post/{id}?date=90 |
publer | not supported | |
typefully | not supported |
Why two are not supported is in schedulers.md. engagement.json is never handed to a target, put on the bundle branch, or included in the zip, and it reaches no prompt unless outputs.learn_from_engagement is on: see config.md.
exec: a target in any language
plugin: exec runs a program of yours as the target. It is started with the command array as given, never through a shell, receives one JSON request on stdin and answers with one JSON response on stdout. The protocol's schemas are exec-request.schema.json and exec-response.schema.json in @justshipped/sdk/schemas; examples/exec-python-target is a complete target in Python.
| Setting | Default | What |
|---|---|---|
command | (required) | The program and its arguments, as a list |
id | exec | The target's id; needed when there is more than one |
timeout_ms | 120000 | How long one call may take |
env | More environment variables to pass, by name | |
max_output_bytes | 64 MiB | The most the program may print |
capabilities | all off | For a target: drafts, approval, media, channels |
Every other key in the entry is handed to the program as its settings. The program gets a minimal environment plus the variables its top-level *_env settings and env name.
targets:
- plugin: exec
id: team-chat
command: [python3, tools/pebble_chat.py]
room: releases
token_env: PEBBLE_CHAT_TOKENThe same entry works under sources for a source in any language.
Plugins from npm
Any other plugin name is taken as an npm package installed in the project. Its default export (or an export named plugin) must be a plugin made with defineTargetPlugin or defineSourcePlugin from @justshipped/sdk.
targets:
- plugin: justshipped-plugin-pebble
room: releasesThis works when justshipped runs on Node or Bun beside a node_modules folder (npx justshipped, or the package installed in the project). The single-file executable has no node_modules to load from: it stops with an error that says so. There, run the plugin through plugin: exec instead.
A plugin from npm is code that runs with the same access as the tool itself. Install only what you trust.
The plugin guide shows how to write one, with a worked target and its tests.
Changelog site and "What's new" widget
justshipped site builds a static changelog site from every release bundle in your bundle folder, and puts a small "What's new" widget beside it for your app's own pages. There is no hosted service: put the folder on any static host, such as GitHub Pages.
Scheduler keys and ids
What each scheduler target needs, and where it comes from. Every one of them only saves drafts: see the drafts-only rule in targets.md.