Skip to content

Preview Packages

This repository publishes a preview of every package on each pull request, commit, and push to master. Previews are not published to npm. They are served from pkg.pr.new as npm-compatible tarball URLs, so you can try a fix or feature before it is released.

Preview publishing follows the pkg.pr.new setup:

  1. The pkg-pr-new GitHub App is installed on FilOzone/synapse-sdk.

  2. The Pkg PR New workflow builds the workspace, then publishes every package under packages/* with:

    Terminal window
    pnpm exec pkg-pr-new publish --pnpm './packages/*'

The workflow runs on push and pull_request. On pull requests, the bot comments with install commands for that PR. Publishing only happens in GitHub Actions, not on your local machine.

See the pkg.pr.new setup guide for CLI flags, compact vs long-form URLs, and other options.

Preview URLs use this compact form:

https://pkg.pr.new/@filoz/<package>@<ref>

<package> is synapse-sdk, synapse-core, or synapse-react. <ref> is a pull request number, a commit SHA, or a branch name such as master.

If a compact URL is unavailable, use the long form:

https://pkg.pr.new/FilOzone/synapse-sdk/@filoz/<package>@<ref>

Peer dependencies such as viem are still required. Install them the same way you would for a published release.

Use the pull request number. The pkg.pr.new bot also posts these commands on the PR.

Terminal window
npm i https://pkg.pr.new/@filoz/synapse-sdk@123

Replace 123 with the PR number, and swap the package name for @filoz/synapse-core or @filoz/synapse-react as needed.

Use the abbreviated commit SHA (the same short hash shown in the bot comment, for example a832a55). This is the most precise ref: it always points at that exact build.

Terminal window
npm i https://pkg.pr.new/@filoz/synapse-sdk@a832a55

After the workflow has run on master, @master resolves to the latest published commit on that branch:

Terminal window
npm i https://pkg.pr.new/@filoz/synapse-sdk@master

The same pattern works for other in-repo branches once the workflow has published them (@branch-name).

Terminal window
npm i https://pkg.pr.new/@filoz/synapse-sdk@master
npm i https://pkg.pr.new/@filoz/synapse-core@master
npm i https://pkg.pr.new/@filoz/synapse-react@master

Replace @master with a PR number or commit SHA when you want a specific change instead of the latest master build.

PackageCompact URL
@filoz/synapse-sdkhttps://pkg.pr.new/@filoz/synapse-sdk@<ref>
@filoz/synapse-corehttps://pkg.pr.new/@filoz/synapse-core@<ref>
@filoz/synapse-reacthttps://pkg.pr.new/@filoz/synapse-react@<ref>

Published previews for this repository are listed at pkg.pr.new/~/FilOzone/synapse-sdk.