npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@spacy-computer/sdk

v0.0.1-alpha.0

Published

Spacy SDK — embedded wallet whose signing key lives in SpaceComputer's Intel TDX KMS, with cosmic-randomness witnesses and on-chain attestation receipts.

Downloads

27

Readme

@spacy-computer/sdk

Embedded wallet whose signing key lives in SpaceComputer Orbitport (Intel TDX KMS), whose coordinator runs in AMD SEV-SNP, and whose every transaction ships with an attestation receipt pinned to IPFS with an on-chain pointer.

Sign in with Google. Send transactions on Sepolia. Anyone, anywhere can verify the signing TEE and the cosmic entropy witness without trusting Spacy.

Install

npm install @spacy-computer/sdk react viem
# or
bun add @spacy-computer/sdk react viem

react (^18.3 || ^19) and viem (^2.21) are peer dependencies — the SDK is small because it doesn't ship them.

Quick start

import { SpacyProvider, useWallet, useSign } from '@spacy-computer/sdk'

function Root() {
  return (
    <SpacyProvider config={{ apiBaseUrl: 'https://api.spacy.computer', chainId: 11155111 }}>
      <App />
    </SpacyProvider>
  )
}

function App() {
  const { user, wallet, ready, login, logout } = useWallet()
  const { signAndSend, pending } = useSign()

  if (!ready) return null
  if (!user) return <button onClick={login}>Sign in with Google</button>

  return (
    <button
      disabled={pending}
      onClick={async () => {
        const { txHash, attestationSlug } = await signAndSend({
          to: '0x…',
          value: '0.01', // ETH, string accepted
        })
        // txHash is on Sepolia. attestationSlug resolves to a verifiable proof page.
      }}
    >
      Send 0.01 ETH
    </button>
  )
}

What the SDK does

  • Auth: redirects to your Spacy backend's /auth/google, returns with an httpOnly cookie session.
  • Wallet: provisions an Orbitport KMS key on first auth (one-time), exposes the Ethereum address.
  • Sign: builds the unsigned EIP-1559 tx in the browser with viem, hashes it, posts only the digest to backend, splices the returned signature, broadcasts via the public RPC.
  • Attestation: the backend pins the receipt JSON to IPFS and emits an AttestationPublished event on Sepolia. The SDK exposes useAttestation(slug) to poll the proof state.

Verification

Every receipt embeds enough data for an offline verifier to walk the trust chain:

  1. Read the on-chain AttestationPublished event for a txHash → get the IPFS CID.
  2. Fetch the JSON from any IPFS gateway.
  3. Verify the embedded Intel TDX quote against the bundled root CA.
  4. Verify the AMD SEV-SNP coordinator report against the AMD ARK.
  5. Verify the cTRNG entropy signature against SpaceComputer's published satellite key.

No step in this chain requires trusting spacy.computer. The @spacy-computer/sdk exports the same Zod schemas and verify utilities the backend uses, so a third-party verifier can depend on this package alone.

API surface

import {
  SpacyProvider,
  useSpacy,
  useWallet,
  useSign,
  useAttestation,
  SpacyClient,
  // types
  type SpacyClientConfig,
  type SignRequest,
  type SignResult,
  type WalletInfo,
  type SendState,
  type Hex,
} from '@spacy-computer/sdk'

License

AGPL-3.0 — same as the rest of the Spacy stack.