Creates a short link through the FixedLink service for each document in the collections you configure. The link destination follows the document URL when the slug changes, while the short URL stays the same. It adds a sidebar panel to the admin and mounts authenticated endpoints so the API key stays on the server. Requires a FixedLink API key, which is a paid feature.
Short links for Payload. Publish a document, get a link on your own domain that survives every slug change.
Installation
npm i @fixedlink/payload1
Stars
0
Forks
0
Open Issues
3 months ago
Last Updated
8
Weekly Downloads
v0.1.0
npm Version
105.8 KB
Unpacked Size
1
Dependencies
10 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 1 |
| Dec 5, 2026 | 1 |
| Dec 4, 2026 | 1 |
| Dec 3, 2026 | 1 |
| Dec 2, 2026 | 1 |
| Dec 1, 2026 | 1 |
| Nov 30, 2026 | 1 |
| Nov 29, 2026 | 1 |
| Nov 28, 2026 | 1 |
| Nov 27, 2026 | 1 |
| Nov 26, 2026 | 1 |
| Nov 25, 2026 | 1 |
| Nov 24, 2026 | 1 |
| Nov 23, 2026 | 1 |
| Nov 22, 2026 | 1 |
| Nov 21, 2026 | 1 |
| Nov 20, 2026 | 1 |
| Nov 19, 2026 | 1 |
| Nov 18, 2026 | 1 |
| Nov 17, 2026 | 1 |
| Nov 16, 2026 | 1 |
| Nov 15, 2026 | 1 |
| Nov 14, 2026 | 1 |
| Nov 13, 2026 | 1 |
| Nov 12, 2026 | 1 |
| Nov 11, 2026 | 1 |
| Nov 10, 2026 | 1 |
| Nov 9, 2026 | 1 |
| Nov 8, 2026 | 1 |
| Nov 7, 2026 | 1 |
| Nov 6, 2026 | 1 |
| Nov 5, 2026 | 1 |
| Nov 4, 2026 | 1 |
| Nov 3, 2026 | 1 |
| Nov 2, 2026 | 1 |
| Nov 1, 2026 | 1 |
| Oct 31, 2026 | 1 |
| Oct 30, 2026 | 1 |
| Oct 29, 2026 | 1 |
| Oct 28, 2026 | 1 |
| Oct 27, 2026 | 1 |
| Oct 26, 2026 | 1 |
| Oct 25, 2026 | 1 |
| Oct 24, 2026 | 1 |
| Oct 23, 2026 | 1 |
| Oct 22, 2026 | 1 |
| Oct 21, 2026 | 1 |
| Oct 20, 2026 | 1 |
| Oct 19, 2026 | 1 |
| Oct 18, 2026 | 1 |
| Oct 17, 2026 | 1 |
| Oct 16, 2026 | 1 |
| Oct 15, 2026 | 1 |
| Oct 14, 2026 | 1 |
| Oct 13, 2026 | 1 |
| Oct 12, 2026 | 1 |
| Oct 11, 2026 | 1 |
| Oct 10, 2026 | 1 |
| Oct 9, 2026 | 1 |
| Oct 8, 2026 | 1 |
| Oct 7, 2026 | 1 |
| Oct 6, 2026 | 1 |
| Oct 5, 2026 | 1 |
| Oct 4, 2026 | 1 |
| Oct 3, 2026 | 1 |
| Oct 2, 2026 | 1 |
| Oct 1, 2026 | 1 |
| Sep 30, 2026 | 1 |
| Sep 29, 2026 | 1 |
| Sep 28, 2026 | 1 |
| Sep 27, 2026 | 1 |
| Sep 26, 2026 | 1 |
| Sep 25, 2026 | 1 |
| Sep 24, 2026 | 1 |
| Sep 23, 2026 | 1 |
| Sep 22, 2026 | 1 |
| Sep 21, 2026 | 1 |
| Sep 20, 2026 | 1 |
| Sep 19, 2026 | 1 |
| Sep 18, 2026 | 1 |
| Sep 17, 2026 | 1 |
| Sep 16, 2026 | 1 |
| Sep 15, 2026 | 1 |
| Sep 14, 2026 | 1 |
| Sep 13, 2026 | 1 |
| Sep 12, 2026 | 1 |
| Sep 11, 2026 | 1 |
| Sep 10, 2026 | 1 |
| Sep 9, 2026 | 1 |
| Sep 8, 2026 | 1 |
| Sep 7, 2026 | 1 |
7−1 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 7 |
| Dec 5, 2026 | 7 |
| Dec 4, 2026 | 10 |
| Dec 3, 2026 | 9 |
| Dec 2, 2026 | 8 |
| Dec 1, 2026 | 8 |
| Nov 30, 2026 | 8 |
| Nov 29, 2026 | 8 |
| Nov 28, 2026 | 6 |
| Nov 27, 2026 | 3 |
| Nov 26, 2026 | 2 |
| Nov 25, 2026 | 2 |
| Nov 24, 2026 | 2 |
| Nov 23, 2026 | 2 |
| Nov 22, 2026 | 3 |
| Nov 21, 2026 | 3 |
| Nov 20, 2026 | 4 |
| Nov 19, 2026 | 5 |
| Nov 18, 2026 | 5 |
| Nov 17, 2026 | 4 |
| Nov 16, 2026 | 5 |
| Nov 15, 2026 | 4 |
| Nov 14, 2026 | 4 |
| Nov 13, 2026 | 7 |
| Nov 12, 2026 | 6 |
| Nov 11, 2026 | 6 |
| Nov 10, 2026 | 5 |
| Nov 9, 2026 | 5 |
| Nov 8, 2026 | 6 |
| Nov 7, 2026 | 7 |
| Nov 6, 2026 | 6 |
| Nov 5, 2026 | 7 |
| Nov 4, 2026 | 7 |
| Nov 3, 2026 | 7 |
| Nov 2, 2026 | 10 |
| Nov 1, 2026 | 10 |
| Oct 31, 2026 | 10 |
| Oct 30, 2026 | 7 |
| Oct 29, 2026 | 6 |
| Oct 28, 2026 | 6 |
| Oct 27, 2026 | 8 |
| Oct 26, 2026 | 4 |
| Oct 25, 2026 | 5 |
| Oct 24, 2026 | 4 |
| Oct 23, 2026 | 4 |
| Oct 22, 2026 | 8 |
| Oct 21, 2026 | 10 |
| Oct 20, 2026 | 8 |
| Oct 19, 2026 | 8 |
| Oct 18, 2026 | 6 |
| Oct 17, 2026 | 8 |
| Oct 16, 2026 | 9 |
| Oct 15, 2026 | 6 |
| Oct 14, 2026 | 4 |
| Oct 13, 2026 | 4 |
| Oct 12, 2026 | 5 |
| Oct 11, 2026 | 6 |
| Oct 10, 2026 | 6 |
| Oct 9, 2026 | 5 |
| Oct 8, 2026 | 5 |
| Oct 7, 2026 | 6 |
| Oct 6, 2026 | 7 |
| Oct 5, 2026 | 7 |
| Oct 4, 2026 | 7 |
| Oct 3, 2026 | 5 |
| Oct 2, 2026 | 5 |
| Oct 1, 2026 | 4 |
| Sep 30, 2026 | 3 |
| Sep 29, 2026 | 3 |
| Sep 28, 2026 | 2 |
| Sep 27, 2026 | 2 |
| Sep 26, 2026 | 8 |
| Sep 25, 2026 | 9 |
| Sep 24, 2026 | 9 |
| Sep 23, 2026 | 10 |
| Sep 22, 2026 | 9 |
| Sep 21, 2026 | 10 |
| Sep 20, 2026 | 9 |
| Sep 19, 2026 | 3 |
| Sep 18, 2026 | 3 |
| Sep 17, 2026 | 4 |
| Sep 16, 2026 | 4 |
| Sep 15, 2026 | 5 |
| Sep 14, 2026 | 4 |
| Sep 13, 2026 | 5 |
| Sep 12, 2026 | 5 |
| Sep 11, 2026 | 5 |
| Sep 10, 2026 | 4 |
| Sep 9, 2026 | 5 |
| Sep 8, 2026 | 5 |
| Sep 7, 2026 | 8 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1338986397-root)<a href="https://payloaddirectory.dev/plugins/1338986397-root"><img src="https://payloaddirectory.dev/badge/1338986397-root.svg" alt="Payload Directory"></a>README
Short links for Payload, backed by FixedLink.
Publish a document and it gets a short link on your own domain. Change the slug six months later and the short link still works, because the plugin moves it with the document. That is the whole idea.
pnpm add @fixedlink/payload
import { buildConfig } from 'payload'
import { fixedLinkPlugin } from '@fixedlink/payload'
export default buildConfig({
plugins: [
fixedLinkPlugin({
apiKey: process.env.FIXEDLINK_API_KEY!,
collections: [
{
collection: 'posts',
url: ({ doc }) => `https://acme.com/blog/${doc.slug}`,
tags: ['blog'],
},
],
}),
],
})
url is the only part you have to write. Payload has no idea what a document's
public address is, so you say, and returning null leaves that document out.
Get an API key from Dashboard, Settings, API. It is shown once. API access is a paid feature.
A Short link panel in the sidebar. The link itself with a copy button, clicks over the last week, month, quarter or year, and the QR code behind a toggle. Below it, the domain to publish on and a checkbox for documents that should not have a short link at all.
Nothing in that panel talks to FixedLink directly. The API key is a server secret, and an admin bundle is a browser bundle, so the sidebar reads through four endpoints this plugin mounts. Each one refuses anybody who is not signed in to Payload.
| When | What happens |
|---|---|
| First save | a link is created, pointing at url(...) |
| The URL changes | the link's destination follows it, the short URL does not change |
| Published | the link resolves |
| Back to draft | the link is paused |
| Deleted | the link is paused, kept, or deleted, your choice |
A save is never blocked. If FixedLink is unreachable the document still saves, the failure is logged, and the sidebar offers a button that tries again. An article should not be refused because a link shortener is having a bad day.
Nothing is written when neither the destination nor the status changed, so a typo fix does not cost an API call.
apiKey | required | An API key. Keep it in an env var. |
collections | required | Which collections get links, and where they point. |
baseUrl | https://fixed.link | Only worth setting for a self-hosted instance. |
enabled | true | Turn it off without uninstalling. The fields stay, so nothing is lost. |
fieldName | fixedlink | Name of the group added to each synced collection. |
onDelete | pause | pause, delete or keep. |
routePrefix | /fixedlink | Where the admin endpoints are mounted. |
Per collection:
collection | required | The slug. |
url | required | ({ collection, doc, req }) => string | null. |
tags | Applied to every link the collection creates. | |
monitor | Watch the destination and email when it stops answering. | |
domainId | Default custom domain. The editor can pick a different one. |
The domain is fixed once the link exists. PATCH /links/{id} cannot move a
link between domains, so the picker goes read-only after the first save. Pick
the domain before you publish, or make a new link.
Deleting a document pauses its link. A short link outlives the page it was
made for. It is on a poster, in an email that was already sent, in somebody's
bookmarks. Pausing keeps it recoverable. Set onDelete: 'delete' if you would
rather it were gone.
pnpm install
pnpm test
pnpm typecheck
pnpm build
main and exports point at dist, so build before anything consumes the
package. pnpm build is fast and pnpm test does not need it.
Until @fixedlink/api-client is on npm, add an override to
pnpm-workspace.yaml pointing at a build of it:
cd ../fixedlink/packages/api-client && pnpm build && pnpm pack \
--pack-destination ../../../fixedlink-payload/.pkg
cd ../../../fixedlink-payload
mkdir -p .pkg/api-client && tar -xzf .pkg/fixedlink-api-client-0.1.0.tgz \
-C .pkg/api-client --strip-components=1
overrides:
'@fixedlink/api-client': link:./.pkg/api-client
Leave that out of any commit. CI installs from the registry.
There is a Payload app to try it in at ../fixedlink-payload-dev, which is not
in any repo.
MIT.
payload slug redirects
Records slug changes in Payload and redirects old URLs to the current slug in Next.js
6471/wk3v3
paths
Stored, queryable document paths for Payload page trees with publish-time uniqueness and a framework-agnostic resolver
60164/wk16v3
redirects
Manage internal and external redirects from the Payload admin panel
100200.1k/wk46.1kv3 v4
nested docs
Official plugin for nesting Payload documents inside one another
100151.9k/wk46.1kv3 v4
payload page tree
Folder-based hierarchical URL slugs with a visual page tree in the Payload admin
81536/wk19v3
payload slug
Slug field with Auto/Manual modes, nested source paths, localization and enforced uniqueness
802.4k/wk0v3