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.
justshipped site # writes site/
justshipped site --out public/changelog --url https://pebble.example.com/changelog/What it writes
| Path | What |
|---|---|
index.html | Every release, newest first, with its items. |
releases/<version>/index.html | One page per release: its changelog.md as a person left it, edits included, and the blog post's picture when there is one (image.png). |
feed.xml | An Atom feed of the newest 20 releases. |
whats-new.json | The newest 20 releases for the widget or your own code. Schema: whats-new.schema.json. |
widget/whats-new.js | The widget's script. |
assets/site.css, assets/logo.*, assets/fonts/* | The stylesheet made from your brand: its ink, paper and accent (else primary) colors, its logo, and its heading and body font files. Without them, plain colors and the system font. |
404.html | The page a host shows for a missing path. |
<tag>/... | The same pages, feed and whats-new.json for each language of outputs.languages after the first. A release made before that language was added is left out of it. |
.nojekyll | Tells GitHub Pages to serve the folder as is. |
.justshipped-site.json | What this build wrote, so the next build can remove pages it no longer makes. |
Every link between pages is relative, so the folder works from any path, and from your disk. The pages need no JavaScript, carry a Content Security Policy that allows only their own stylesheet, fonts and pictures, and load nothing from another host: no web fonts, no analytics.
Pages are in the language of each folder (<html lang>), and a release links to itself in the other languages. The few words the site adds around your notes ("All releases", "Atom feed") are in English.
Settings
| Key | Flag | What |
|---|---|---|
outputs.site.url | --url | Where the site's index is served, such as https://pebble.example.com/changelog/. With it, feed.xml and whats-new.json link each release's page, and the command prints the widget's snippet with the real address. |
outputs.site.base_path | --base-path | The path the site is served under, such as /changelog/. Default: the path of url (or /, with a warning, when that path is not plain folders), else /. Only 404.html uses it, since a host shows that page at any path. |
--out | The folder to write, default site/. |
The bundles are read from outputs.bundle_dir in your checkout. Roundups are not part of the site.
What the site shows, and what it never does
The site is a public place, so it follows the same rules as the targets:
- No file under
internal/(the support memo) is read. - Only items whose audience is
publicand whose changes may all be shown are listed: never a security, embargoed or excluded change, nor one stored with a label your current config names for embargo or security. - Each release page shows the release's changelog. When a change it may still name was hidden after it was written (excluded, or labeled since), or its text repeats a private change's title or link, the page lists the release's shown items instead, with a warning. Generate that release again to write its notes without it.
- The text is rendered through the Markdown tree with raw HTML dropped: no script, style or embedded picture from the text reaches a page, only
httpandhttpslinks become links, and a picture in the text is shown as its alt text. - Nothing is fetched while building.
The command writes only into a new or empty folder, or one it wrote before. It refuses a folder inside the bundle folder or one that holds it, and refuses to write through a symlink. A file you add to the folder yourself (a CNAME, say) is left alone.
The "What's new" widget
One dependency-free script, about 3 KB gzipped, that defines a custom element. Add it to your app's pages:
<script src="https://pebble.example.com/changelog/widget/whats-new.js" defer></script>
<justshipped-whats-new src="https://pebble.example.com/changelog/whats-new.json"></justshipped-whats-new>It shows a "What's new" button with a dot when there is a release the person has not seen, and opens a panel with the recent releases. The last version seen is kept in localStorage on that device. It reads the one file in src without cookies or a referrer, and sends nothing else anywhere: no tracking, no cookies. It sets text only, never HTML, and links only to http and https pages. Until the file is read, or when it cannot be, the element stays hidden.
| Attribute | Default | What |
|---|---|---|
src | The whats-new.json to read. Relative to the page, or a full address. | |
label | What's new | The button's and the panel's words. |
all-label | All releases | The words of the link to the site. |
href | the folder of src | Where that link goes. |
max | 3 | How many releases the panel shows (1 to 20). |
The element is keyboard friendly: the button says whether the panel is open (aria-expanded), opening moves focus into the panel, and Escape or a click outside closes it. It follows prefers-color-scheme. Style it with the custom properties --jsw-ink, --jsw-paper and --jsw-accent, the parts button, dot, panel and all (justshipped-whats-new::part(button)), and the unread attribute, which is set while the dot shows.
It works under a strict Content Security Policy: it needs no inline script or style (its styles are a constructed stylesheet) and no eval. Allow the script's address in script-src and the JSON's in connect-src. When the site is on another host than your app, that host must allow the request with CORS; GitHub Pages does.
Publish to GitHub Pages
The site is built from the bundles in your checkout, so this assumes your bundle folder is committed, for example when you generate releases locally, or copy each bundle there with the folder target. Turn on Pages with Settings > Pages > Source: GitHub Actions, then add a workflow such as this one (it is not part of this repository's workflows):
# .github/workflows/changelog-site.yml
name: Changelog site
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- uses: cwaits6/justshipped@87687d585fef1f457b68c17be3c3a47e94e340cf # 0.2.0
with:
args: site --out site
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: site
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1A project site is served under the repository's name, such as https://example.github.io/pebble/: set outputs.site.url to that address so the feeds link the pages and 404.html finds the stylesheet. With a custom domain, use that address instead.
MCP server for coding agents
justshipped mcp lets a coding agent (Claude Code, Codex, Cursor, or any other MCP client) drive Just Shipped: check the setup, generate a release kit, read and edit its files, redraw its images, see what publishing would do, and open the studio for you.
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).