Skip to Content
Docs
Your code in Dessn

Private packages

Let Dessn install your private npm packages with a read-only token, or by connecting the repository they're built in.

If your app installs packages from a private registry, setup doesn't wait for them. Dessn puts a stand-in in each one's place so your pages still draw, and marks those frames with a Stand-ins tag. Give Dessn read access, and the real packages come in.

Connect the package's repository

If a private package is built in one of your own repositories, Dessn offers to build it from there, with no token. Hover the Stand-ins tag, or read Petal's offer, and press Connect owner/repo. If GitHub asks, add that repository to Dessn's GitHub App; Dessn builds the real package once it's granted. Anyone who can edit the project can do this. More on this: Design system packages.

Add a read token

Press Add token

On the setup card it's under What setup needs; after setup, hover the Stand-ins tag on a frame, or answer Petal's offer.

Paste a read-only token

Dessn says which registry it's for and the kind of token it takes:

RegistryToken
npmA read-only access token
GitHub PackagesA classic token with read:packages (GitHub Packages doesn't take fine-grained tokens)
Font Awesome ProA Font Awesome package token
Tiptap Pro, Hugeicons Pro and other registriesA read token for that registry

Dessn checks the token with the registry, then encrypts it. It's never shown again.

Press Swap them in

Dessn installs the real packages and redraws the pages that used stand-ins. During setup, press Resume setup instead.

Only team owners and admins can add a token. Others see who can, and can press Ask a developer on the setup card.

One token for the whole team

A token covers its registry and its scope (such as @acme) for every project of your team, today's and later ones. A token for @acme doesn't cover @other on the same registry.

To see or remove your team's tokens, open Settings › Team and find Registry tokens (owners and admins only). Remove deletes a token; projects that use it ask for a token again at their next setup or update.

Titles set in Kalice, Claude Type, designed by Margot Lévêque.

On this page