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:
-
The pkg-pr-new GitHub App is installed on FilOzone/synapse-sdk.
-
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.
Install URLs
Section titled “Install URLs”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.
Pull request
Section titled “Pull request”Use the pull request number. The pkg.pr.new bot also posts these commands on the PR.
npm i https://pkg.pr.new/@filoz/synapse-sdk@123Replace 123 with the PR number, and swap the package name for @filoz/synapse-core or @filoz/synapse-react as needed.
Commit
Section titled “Commit”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.
npm i https://pkg.pr.new/@filoz/synapse-sdk@a832a55master
Section titled “master”After the workflow has run on master, @master resolves to the latest published commit on that branch:
npm i https://pkg.pr.new/@filoz/synapse-sdk@masterThe same pattern works for other in-repo branches once the workflow has published them (@branch-name).
Package managers
Section titled “Package managers”npm i https://pkg.pr.new/@filoz/synapse-sdk@masternpm i https://pkg.pr.new/@filoz/synapse-core@masternpm i https://pkg.pr.new/@filoz/synapse-react@masterpnpm add https://pkg.pr.new/@filoz/synapse-sdk@masterpnpm add https://pkg.pr.new/@filoz/synapse-core@masterpnpm add https://pkg.pr.new/@filoz/synapse-react@masteryarn add https://pkg.pr.new/@filoz/synapse-sdk@masteryarn add https://pkg.pr.new/@filoz/synapse-core@masteryarn add https://pkg.pr.new/@filoz/synapse-react@masterbun add https://pkg.pr.new/@filoz/synapse-sdk@masterbun add https://pkg.pr.new/@filoz/synapse-core@masterbun add https://pkg.pr.new/@filoz/synapse-react@masterReplace @master with a PR number or commit SHA when you want a specific change instead of the latest master build.
Packages
Section titled “Packages”| Package | Compact URL |
|---|---|
| @filoz/synapse-sdk | https://pkg.pr.new/@filoz/synapse-sdk@<ref> |
| @filoz/synapse-core | https://pkg.pr.new/@filoz/synapse-core@<ref> |
| @filoz/synapse-react | https://pkg.pr.new/@filoz/synapse-react@<ref> |
Published previews for this repository are listed at pkg.pr.new/~/FilOzone/synapse-sdk.