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

@telaro/sacp-signer-server

v0.9.0

Published

Reference HTTP signing server for the sACP RemoteSigner. Wraps a local keypair, a Turnkey vault, or an AWS KMS asymmetric key behind a uniform POST /sign endpoint with HMAC auth.

Readme

@telaro/sacp-signer-server

Reference HTTP signing gateway for the sACP RemoteSigner. Holds a Solana private key (in process, in a file, in a vault) and exposes a single POST /sign endpoint so SDK consumers can stay key-less.

When to use

  • Production Provider / Evaluator operators that don't want a private key sitting next to their job worker.
  • Multi-tenant setups where one process drives many Job sessions and a separate signer pod holds the secrets.
  • KMS-backed deployments (Turnkey, AWS KMS asymmetric ed25519, Fireblocks). implement SigningBackend and you're done.

For local dev or a single-tenant smoke test, LocalSigner in @telaro/sacp/signer is fine. you don't need this package at all.

Quick start (dev)

pnpm install
export SACP_SIGNER_API_SECRET=$(openssl rand -hex 32)
pnpm --filter @telaro/sacp-signer-server dev
# → listening on :7777 as <pubkey>

Then on the client:

import { Connection, PublicKey } from "@solana/web3.js";
import { SacpClient, RemoteSigner } from "@telaro/sacp";
import { HttpRemoteSignTransport } from "@telaro/sacp-signer-server";

const transport = new HttpRemoteSignTransport({
  url: "http://localhost:7777/sign",
  apiSecret: process.env.SACP_SIGNER_API_SECRET!,
});

const providerSigner = new RemoteSigner(
  new PublicKey("..."), // pubkey reported by GET /pubkey
  transport,
);

const sacp = new SacpClient({ connection: new Connection("...") });
const session = await sacp.openJob({
  jobId: 1n,
  actors: { client: clientSigner, provider: providerSigner, evaluator: ... },
});
await session.submitWork("ipfs://...");

The SDK builds + serializes the transaction, the transport ships the message bytes to /sign, the backend produces the ed25519 signature. The private key never leaves the signer process.

Auth

Every request carries:

x-sacp-timestamp: <unix seconds>
x-sacp-api-key:   hex(HMAC-SHA256(secret, timestamp + "." + body))

Server rejects:

  • Missing / malformed headers (401)
  • Timestamps more than toleranceSecs (default 60 s) away from server clock (401)
  • HMAC mismatch (401)
  • Non-JSON body or missing message field (400)

HttpRemoteSignTransport produces these headers automatically.

Backends

SigningBackend is one method:

interface SigningBackend {
  readonly publicKey: PublicKey;
  sign(message: Uint8Array): Promise<Uint8Array>; // 64-byte ed25519 sig
}

Ship two reference impls:

  • LocalKeypairBackend. wraps a Keypair (in-memory).
  • KeypairFileBackend. reads a solana-keygen JSON file.

Write your own for Turnkey / AWS KMS / Fireblocks / hardware:

class TurnkeyBackend implements SigningBackend {
  publicKey: PublicKey;
  constructor(private client: TurnkeyClient, private walletId: string) { ... }
  async sign(message: Uint8Array): Promise<Uint8Array> {
    const { signature } = await this.client.signRawPayload({
      payload: Buffer.from(message).toString("hex"),
      hashFunction: "HASH_FUNCTION_NOT_APPLICABLE",
      walletId: this.walletId,
    });
    return Buffer.from(signature, "hex");
  }
}

Drop into createSigningServer(new TurnkeyBackend(...), { apiSecret }) and the HTTP shape is unchanged.

Hardening for prod

This is reference code, not a hardened deployment. Before exposing beyond loopback you should at minimum:

  • Run behind TLS (Caddy / nginx / ALB).
  • Add rate limiting (express-rate-limit).
  • Run as a non-root user inside a read-only container.
  • Rotate SACP_SIGNER_API_SECRET regularly; the server has no rotation built in.
  • Audit log every /sign call with the requested message hash.

The included CLI is a single-process runner. fine for first deployments, not for high-availability. For multi-replica setups, stick the same backend behind multiple shells of createSigningServer and load-balance.