Use a package from the registry
You end with a package found by what it does, installed by name with its publisher and facts shown, then updated, audited and removed.
On this page
A package is Jadpo code someone else wrote for you to install: a library of types and functions, or a provider package that describes another company's API. Public packages are published on the registry at jadpo.dev, by name. This guide finds a package that sends email, installs it, reads what it offers, and then keeps it up to date, checks it for advisories and removes it.
You start from any Jadpo project, such as the one jadpo new writes, and
run each command in its folder. Every command here but jadpo check and
jadpo build asks the registry, so it needs the network. The output on this
page is copied from real runs.
Find a package
Describe what you need in a few words. jadpo package search looks through
the standard library and every published package, and lists what Jadpo has
built in first, since you need no package for that:
jadpo package search send an emailPackages @jadpo/resend SendEmailRequest Matched: send an email1 found: 1 in a packagenext: jadpo package add @jadpo/resend installs the first package found
@jadpo/ is a registry name: the publisher, @jadpo, then the
package's own part, resend. Each result also names the declaration that
matched. jadpo.dev/packages searches the same
packages in a browser, and each package's page shows what it can do and its
releases.
Install it
jadpo package add installs that exact name, or nothing: it never picks a
name that only looks like it. A name with no publisher, such as resend,
means Jadpo's own, @jadpo/.
jadpo package add @jadpo/resendAdded Resend.v1 1.0.0 folder packages/resend/v1 source registry @jadpo/resend publisher @jadpo, official age first released 2026-11-06, today log entry 1 of 2 surface matches its codeFacts kind: provider publisher: @jadpo hosts: the address its connection gives changes: emails.send erasure: not declared storable: none failures: emails.send: InvalidAttachment, InvalidParameter, MissingRequiredField, MissingRequiredParameter, ValidationError contract: 0 of 1 operation confirmedpackage added: Resend.v1 1.0.0, 1 operation, 3 types, 5 failuresnext: jadpo package show resend shows what it offers
Read the top before you go on, since it says whose code your app now runs:
- publisher: who released it.
officialis Jadpo's own, andverifiedis a publisher the registry has checked. - age: when it was first released. A name released today deserves a closer look than one apps have used for months.
- log: the registry keeps a public log of every release, and
addchecks that this release is in it, so the registry can't give your app different code from everyone else's. - surface: Jadpo compiled the package and compared what it offers with what its author committed, and they match.
- Facts: what the package does, worked out from its code rather than its author's word: the hosts it calls, the calls that change something there, the personal data it sends and the failures each call can give.
The package is now in packages/, and jadpo.lock holds its name,
version and digest:
package Resend.v1 version 1.0.0 registry @jadpo/resend digest sha256:28e1384d2c0a1029e5381bf6a1271844458e817f3c98e11d4ed67d9940222613Commit both. jadpo check and jadpo build read only these files and never
go online, so your app builds the same everywhere, and nothing in a package
runs when it is installed.
See what it offers
jadpo package show prints the package's description, facts and everything
it makes public:
jadpo package show resendResend: the app's email sent through Resend's API, as the `email` capability. package: Resend.v1 kind: provider version: 1.0.0 source: registry @jadpo/resend publisher: @jadpo licence: apache_2_0 jadpo: 1.0 folder: packages/resend/v1Facts kind: provider publisher: @jadpo hosts: the address its connection gives changes: emails.send erasure: not declared storable: none failures: emails.send: InvalidAttachment, InvalidParameter, MissingRequiredField, MissingRequiredParameter, ValidationError contract: 0 of 1 operation confirmedProvider protocol json_http credential bearerOperations emails.send POST /emails SendEmailRequest -> SendEmailResponseTypes EmailAttachment Object { content: Bytes, content_type: Text?, fil... SendEmailRequest Object { attachments: List<EmailAttachment>, from... SendEmailResponse Object { id: Text }Failures InvalidAttachment invalid_value InvalidParameter invalid_value MissingRequiredField invalid_value MissingRequiredParameter invalid_value ValidationError invalid_valueResend.v1: 1 operation, 3 types, 5 failuresnext: jadpo package show resend emails.send shows one in full, with its file
jadpo package show resend emails.send prints one declaration in full, and
--guide prints the package's GUIDE.md when it has one. In code a package
keeps its own name and version, Resend.v1, whatever its registry name.
Use it in your app
What you write next depends on the kind of package:
- A provider package, such as Resend's, is reached through a connection
in
app.jadpothat names it, with its credential from a setting (Connecting inapp.jadpo). Resend's fills theemailcapability, soemail:names that connection and your emails send through it (Jadpo's own packages shows its connection). The first time a connection reaches a new host,jadpo checkasks for a person's acceptance of it (Approve a risky change). - A library package is used like one of your own libraries:
use packages/, then its names through the package's name, such as<name> Postcodes.uk.tidy(...)(Where packages live).
Keep it up to date
jadpo package update moves a package to the newest release of the same
major version that is at least three days old, so a bad release has time to
be noticed and yanked before your app takes it:
jadpo package update resendResend.v1 is up to date: 1.0.0, registry @jadpo/resendWhen it takes a release, it lists what changed in what the package offers,
marks what your app uses, and shows the new facts. A change that could break
your app, such as a call it uses that now fails in a new way, needs a
person's acceptance before jadpo check passes
(Package upgrades).
--to <version> takes a release at once, after showing its facts. A new major
version is a new package beside the old one, which you add with jadpo package add.
Check it for advisories
An advisory says a release has a problem, and names the declarations and
versions it affects. jadpo package audit asks the registry about every
package your app installed from it, and says whether your app reaches each
affected declaration:
jadpo package auditno advisories: 1 packageIt is the one check that goes online, so run it in CI. An advisory your app
reaches fails it (package.advisory), and one
it doesn't reach is only listed.
Remove it
jadpo package remove takes out a package your app no longer uses. It is
refused while your code still has use packages/. Take out a
connection that names the package first, since jadpo check fails on one
whose package is gone:
jadpo package remove resendRemoved packages/resend/v1 and its line in jadpo.lockpackage removed: Resend.v1 1.0.0
When something goes wrong
- The name isn't found. The registry has no package of that name, or no
such release (
install.not_in_registry). Check the spelling, or search for it. - A release was yanked. Its publisher withdrew it, and new installs refuse
it (
install.yanked). Apps that have it keep working; update to a newer release. - The registry can't be reached. Check your connection and run the command
again (
registry.unreachable).
Read more
Where packages come from, Installing safely, Installing and updating from the registry, What a release shows and Commands for packages. To publish a package of your own, see Publish a package.
Not built yet
The registry doesn't publish advisories yet, so jadpo package audit finds
none for now. Search matches words, not meaning, so describe what you need in
the words a package's descriptions would use.
Markdown for agents: /guides/guide-use-a-package-from-the-registry.md.Built from Jadpo's main branch at commit 9080dc3. Jadpo's CI compiles this guide's code and runs its tests.