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

@1shotapi/ows-clear-signing

v0.2.0

Published

ERC-7730 clear signing for OWS Branding Layers — lookup keys, descriptor verification, calldata / EIP-712 decoding and field formatting

Readme

@1shotapi/ows-clear-signing

ERC-7730 clear signing for OWS Branding Layers.

The 1Shot Relayer keeps a synced copy of the ERC-7730 registry and serves one resolved descriptor per request (includes merged, definitions inlined, trimmed to the matching format). This package does everything wallet-side:

  • ClearSigningUtils.calldataLookupKey(chainId, to, data): { chainId, address, selector } for GET /clear-signing/calldata
  • ClearSigningUtils.eip712LookupKey(typedData): { chainId, verifyingContract, primaryType, encodeTypeHash } for GET /clear-signing/eip712
  • ClearSigningFormatter: renders a resolved descriptor into an IClearSigningDisplay (intent, interpolated intent, labeled fields)

Validate Relayer responses with ClearSigningLookupResultSchema from @1shotapi/ows-types.

Trust model

The formatter re-verifies everything it can locally, so a compromised resolver can only change labels. It can never change the decoded values shown to the user.

  • Calldata: context.contract.deployments must contain (chainId, to). The selector of format.key must equal data[0:4]. Arguments are decoded by the wallet from format.key.
  • EIP-712: the domain must have chainId and verifyingContract. The context.eip712 deployments, domain and domainSeparator constraints must hold. format.key must equal encodeType(primaryType).

Any failure throws ClearSigningError. Callers MUST then fall back to their generic signing UI.

Usage

import { ClearSigningFormatter, ClearSigningUtils } from "@1shotapi/ows-clear-signing";
import { ClearSigningLookupResultSchema } from "@1shotapi/ows-types";

const key = ClearSigningUtils.calldataLookupKey(chainId, to, data);
const result = ClearSigningLookupResultSchema.parse(await (await fetch(url)).json());
if (result.found) {
  const formatter = new ClearSigningFormatter(environment); // IClearSigningEnvironment
  const display = await formatter.formatCalldata(result.descriptor, { chainId, from, to, data, value });
}

IClearSigningEnvironment supplies the following, each returning null when unknown:

  • token metadata
  • the native currency
  • chain names
  • address names

The formatter does no network I/O of its own.

Supported formats

  • Fully supported: raw, amount, tokenAmount (threshold/message, nativeCurrencyAddress, chainId), addressName ("You" for the signer, senderAddress), tokenTicker, nftName, date (timestamp, blockheight), duration, unit (with SI prefixes), enum, chainId.
  • calldata: rendered as "Embedded call to …" without recursive decoding.
  • interoperableAddressName: rendered raw.

Paths support the #., @. and $. roots, as well as relative paths, indices, negative indices, byte and array slices, [] iteration, groups (sequential / bundled), array-indexed params, metadata.maps references, and visible rules (never / optional / ifNotIn / mustMatch).