Starkscan ExplorerStarkscanDocs
QuickstartBuildAgentsReference
Open explorer
Documentation homeQuickstartConceptsMonitor 10 Wallets
BuildLaunch MatrixPackage TrustAPIAdvanced UtilitiesAgent HTTP quickstartMigration skillsRate limitsRoute examplesSelf-serve account routesSDKTypeScript SDK

Live reference

Interactive API referenceReference hub
AgentsAgent CLIMCP Quickstart
Reference Hub
Docs/Build/Package Trust

Package Trust

Public trust source for Starkscan npm SDK, CLI, and MCP packages.

API referenceReferenceQuickstartTypeScript SDK

In this guide

Current decisionAlpha rollbackPackage statusAgent contractSignals we usenpm Trusted Publishing and provenance
Loading documentation content…
PreviousLaunch MatrixProduction-readiness status for Starkscan REST, RPC, SDK, CLI, and MCP surfaces.NextAPIHow to call Starkscan REST—base URL, auth, lists, errors. Paths live in the API reference.

On this page

Current decisionAlpha rollbackPackage statusAgent contractSignals we usenpm Trusted Publishing and provenanceGitHub build attestationsSocketOpenSSFAgent install rulesPromotion barExternal references
Starkscan ExplorerStarkscanDocumentation

One product surface across the explorer, HTTP API, CLI, SDK, and MCP transport. The docs should guide you into the right path instead of behaving like a separate app.

Open explorerAPI referenceBack to top

Package trust

Use this page before installing Starkscan npm packages in agents, CI, or production services.

This page is the public trust source for Starkscan packages. The canonical engineering repository is private, so package README files, homepage metadata, and agent-facing metadata should link here instead of sending users to a private GitHub URL. Public package manifests should omit repository metadata until a public source repository or mirror exists.

Machine-readable source for agents: public-client-surface-matrix.json

LLM-readable source: /llms.mdx/docs/build/package-trust/index.mdx

Current decision

There is no single npm badge that should be treated as a security certification. The production-grade trust model is layered:

  • publish only from the @starkscan npm organization
  • pin exact versions for unattended agents
  • publish from checked release scripts, not package directories
  • verify package entrypoints, bundled native artifacts, manifests, and checksums before publish
  • use GitHub build attestations for release artifacts
  • move CI publishing to npm Trusted Publishing/OIDC only after the public-source and package repository tradeoff is resolved
  • do not claim npm provenance while the canonical repository remains private
  • use Socket and OpenSSF as external risk signals, not as proof that a package is safe

For beta users, use the alpha channel only when you can tolerate package updates. For production agents, pin a smoked exact version such as:

npx -y @starkscan/[email protected]
npx -y @starkscan/[email protected] doctor
npm install @starkscan/[email protected]

alpha currently points to 0.1.0-alpha.1. latest currently points to the stable fail-closed placeholder 0.0.0, not the alpha prerelease. Use the exact 0.1.0-alpha.1 version or the explicit @alpha tag only.

Alpha rollback

If 0.1.0-alpha.1 regresses, roll back by pinning the prior alpha explicitly and rerunning the same smoke checks before putting it in an unattended agent:

npx -y @starkscan/[email protected] doctor
npx -y @starkscan/[email protected] doctor
npm install @starkscan/[email protected]

Keep MCP and CLI on the same package version. The MCP launcher depends on the matching CLI package, so mixing @starkscan/[email protected] with a different CLI version is not a supported rollback shape.

Package status

PackagePublic channelTrust status
@starkscan/sdkalpha0.1.0-alpha.1 is published, imports under Node ESM, and passed live status smoke with STARKSCAN_BASE_URL=https://starkscan.co/api.
@starkscan/clialpha0.1.0-alpha.1 is published with bundled native artifacts, manifest/checksum verification, and live status / doctor smoke with STARKSCAN_BASE_URL=https://starkscan.co/api.
@starkscan/mcpalpha0.1.0-alpha.1 is published, delegates to the exact matching @starkscan/cli version, and passed live doctor smoke with STARKSCAN_BASE_URL=https://starkscan.co/api.

The current package trust fields live under packageTrust in public-client-surface-matrix.json.

Agent contract

Agents should read this section as policy, not marketing copy:

  • Public docs and public-client-surface-matrix.json are the public source of truth.
  • The private GitHub repository is not a public trust link.
  • The npm package name must be under @starkscan.
  • The package version should be pinned exactly in unattended jobs.
  • The package should not run as root or with elevated OS privileges.
  • The API key must come from the agent secret store or shell environment.
  • Reports should include package version, X-Request-Id, route class, host, and command.

Signals we use

npm Trusted Publishing and provenance

Trusted Publishing is the preferred CI publish path because it removes long-lived npm publish tokens from GitHub Actions. It is not the same control as npm provenance.

There is one important private-repository constraint: npm documents that GitHub trusted publishing requires npm CLI 11.5.1 or newer and that the package repository.url must match the exact repository URL string used for publishing/provenance verification. Normalization differences such as git+https://... versus https://github.com/... can break verification. Starkscan package manifests intentionally omit repository while the canonical engineering repo is private, because npm package pages should not send public users or agents to a private source URL.

npm provenance is stronger but has a public-source constraint. npm documents that provenance generation is not supported for private repositories, even for public packages.

Until Starkscan has a public source mirror, changes repository visibility, or chooses to expose the private repo URL in repository, use manual passkey-backed publishes for alpha and do not treat missing Trusted Publishing or missing npm provenance as a package integrity failure. The production target remains tokenless CI publishing, but the source-link decision must be explicit first.

Current Starkscan state:

  • package 0.1.0-alpha.1 is published on the alpha dist-tag
  • the npm latest dist-tag points at the stable fail-closed placeholder 0.0.0, not the alpha prerelease
  • the post-publish dist-tag verifier checks that alpha resolves to 0.1.0-alpha.1 and latest resolves to 0.0.0
  • release workflow has id-token: write for the future Trusted Publishing path
  • release workflow uses public scoped package publishing
  • release scripts and workflow dispatch reject prerelease package versions before publishing to latest
  • first manual publish exists for 0.1.0-alpha.0, which is the current prior alpha rollback target when pinned and smoke-tested explicitly
  • alpha1 manual publish exists for SDK, CLI, and MCP using npm passkey/2FA
  • live SDK, CLI, and MCP package smoke passed with STARKSCAN_BASE_URL=https://starkscan.co/api and the beta API-key contract
  • next step is deciding between public source mirror, public repo visibility, or exposing the private repo URL before configuring Trusted Publishing
  • npm provenance remains blocked while the canonical repository is private

GitHub build attestations

The release workflow attests SDK and native CLI artifacts before npm packaging. This gives maintainers a build evidence trail for artifacts. Public users should use this page, npm package metadata, and the machine-readable matrix as their public trust entrypoint unless a public source mirror is introduced.

Socket

Socket is a package-risk and supply-chain scanner. It is useful as an external signal for dependency risk, maintainer/package metadata, and malware-style patterns, but it is not a formal audit certificate.

Package pages:

  • @starkscan/sdk on Socket
  • @starkscan/cli on Socket
  • @starkscan/mcp on Socket

If Socket is unavailable behind a browser challenge, npm and GitHub release evidence remain the primary trust sources.

OpenSSF

OpenSSF Scorecard and the OpenSSF Best Practices badge are good repository posture signals. They should be added as repository-level launch hardening, not as per-package certification.

For the current private-repository setup, OpenSSF signals belong on the internal maintainer checklist. The public package trust path should stay honest: npm identity, exact package version, checked tarball contents, CLI checksum verification, Socket as a risk signal, and this public docs page.

Agent install rules

  • Use STARKSCAN_* env vars and keep API keys in the agent secret store.
  • Pin exact package versions for unattended production agents.
  • Do not run npx @starkscan/*@alpha in an unattended production loop without a version allowlist.
  • Do not run the CLI or MCP launcher with elevated OS privileges.
  • Log the package version, X-Request-Id, and route class when reporting a bug.
  • Treat latest as a convenience tag only after the package is explicitly promoted out of alpha.

Promotion bar

Before promoting any package channel beyond alpha:

  • latest does not point at an alpha prerelease.
  • SDK package imports under Node ESM from the packed tarball.
  • CLI package includes all supported native platform archives.
  • CLI verifies manifest and sha256 before executing a native binary.
  • MCP package depends on the exact matching CLI version.
  • Live SDK, CLI, and MCP smoke tests pass against the hosted API for the version being promoted.
  • npm Trusted Publishing is configured for the package, or maintainers have explicitly accepted manual passkey publishing while the repo remains private.
  • npm provenance is present only if the source repository is public or a public source mirror exists.
  • Socket/OpenSSF status is checked and linked as an external signal.

External references

  • npm Trusted Publishing
  • npm provenance statements
  • OpenSSF Scorecard