# Private packages (https://www.dessn.com/docs/your-code/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](https://www.dessn.com/docs/your-code/design-system-packages).

## Add a read token
<Steps>
<Step>

### 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.

</Step>
<Step>

### Paste a read-only token
Dessn says which registry it's for and the kind of token it takes:

| Registry | Token |
| --- | --- |
| npm | A read-only access token |
| GitHub Packages | A classic token with `read:packages` (GitHub Packages doesn't take fine-grained tokens) |
| Font Awesome Pro | A Font Awesome package token |
| Tiptap Pro, Hugeicons Pro and other registries | A read token for that registry |

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

</Step>
<Step>

### Press Swap them in
Dessn installs the real packages and redraws the pages that used stand-ins. During setup, press **Resume setup**
instead.

</Step>
</Steps>

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.

<Accordions>
<Accordion title="Can I keep going without a token?">
Yes. Press **Continue without it**. Pages that use the package draw with stand-ins, tagged **Stand-ins**, and you can
add the token any time later.
</Accordion>
<Accordion title="My repository's .npmrc already has a token">
Dessn tries it. If the registry refuses it, the setup card says so and asks for a token of your own.
</Accordion>
<Accordion title="The registry refused the token">
The tag says so and offers **Replace token**. Check that the token can read the package, and that it hasn't expired.
</Accordion>
</Accordions>
