
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@zktx.io/walrus-sites-preview
Advanced tools
Local preview CLI for Walrus Sites (fetch from Sui + Walrus, or serve bundled static portal dist).
Preview Walrus Sites already deployed on testnet or mainnet through a familiar npm → localhost workflow.
Walrus Sites Preview is a small CLI for opening a current deployment locally during design review, QA, planning review, or stakeholder feedback. It is meant to sit alongside existing Walrus portal and deployment workflows, not replace them.
A developer can share one command, and teammates can review the deployed site on
localhost using the same kind of browser workflow they use for regular web
projects.
A short demo showing how to preview a deployed Walrus Site locally:
https://github.com/user-attachments/assets/c28c033a-92c5-4ee9-82e0-1406319842c7
The preview URL used in the demo is http://localhost:3000.
Preview a deployed Walrus Site in a single command.
For mainnet:
npx @zktx.io/walrus-sites-preview 0xYOUR_SITE_OBJECT_ID
For testnet:
npx @zktx.io/walrus-sites-preview -testnet 0xYOUR_SITE_OBJECT_ID
Then open:
http://localhost:3000
You can also add --open to open the browser automatically:
npx @zktx.io/walrus-sites-preview 0xYOUR_SITE_OBJECT_ID --open
Walrus portals remain the right place for production access, integration testing, and portal-specific behavior. This CLI covers a narrower case: quickly checking an already deployed site during an internal review cycle.
In that situation, teams often need a simple browser URL for the current deployment while keeping the existing deployment pipeline unchanged. Provide a site object ID, and this CLI fetches the resources and serves a local preview.
The goal is to make review handoff simpler while preserving the established Walrus workflow.
http://localhost:3000)This is not a production hosting solution and does not replace Walrus portals.
For many internal review sessions, a reviewer can start with the command and the site object ID. Wallets and deployment keys are not part of the preview flow.
npm i -D @zktx.io/walrus-sites-preview
Note: This package is published as a scoped npm package:
@zktx.io/walrus-sites-preview
Add an npm script to your project so teammates can run a familiar command:
{
"scripts": {
"preview:testnet": "walrus-sites-preview -testnet 0xYOUR_SITE_OBJECT_ID -port 3000",
"preview:mainnet": "walrus-sites-preview 0xYOUR_SITE_OBJECT_ID -port 3000"
}
}
Run:
npm run preview:testnet
Then open:
http://localhost:3000
You can inspect the resolved configuration at:
http://localhost:3000/__config
walrus-sites-preview requires a Walrus Site Object ID.
When a site is deployed to Walrus Sites — whether via the official site-builder CLI or a CI workflow — the Site Object ID is printed in the deployment output.
Look for a line similar to:
Site object ID: 0x...
or:
"site_obj_id": "0x..."
Copy this value and pass it to the preview command.
For detailed deployment guides, see:
This tool does not deploy or update sites. It only previews already deployed Walrus Sites.
You may optionally create a config.json next to your package.json.
CLI flags always override file-based configuration.
When using -testnet or -mainnet, the following values are filled automatically:
rpcUrlListaggregatorUrlsitePackageThe positional one-liner defaults to mainnet. Pass -testnet for testnet sites.
siteObjectId (required)rpcUrlList (required unless using -testnet / -mainnet)aggregatorUrl (required unless using -testnet / -mainnet)sitePackage (required unless using -testnet / -mainnet)network (optional, informational)host, port (via CLI flags){
"network": "testnet",
"rpcUrlList": ["https://fullnode.testnet.sui.io"],
"aggregatorUrl": "https://aggregator.walrus-testnet.walrus.space",
"sitePackage": "0x...",
"siteObjectId": "0x..."
}
Install the package:
npm i -D @zktx.io/walrus-sites-preview
Add a pass-through script:
{
"scripts": {
"preview": "walrus-sites-preview"
}
}
Then run:
npm run preview -- -testnet 0xYOUR_SITE_OBJECT_ID -port 3000
This package vendors and adapts parts of the Walrus Sites portal source code.
The vendored portal worker code is currently aligned with the upstream
portal/worker package version 2.9.0.
Origin of the bundled dist assets (portal build):
portal/worker → ./portal-workerportal/common → ./portal-common./portal-worker/src (service worker TypeScript)./portal-worker/static (static assets)MIT
FAQs
Local preview CLI for Walrus Sites (fetch from Sui + Walrus, or serve bundled static portal dist).
We found that @zktx.io/walrus-sites-preview demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.