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

@axlabs/neofs-sdk-ts-core

v0.0.2

Published

Shared core code for NeoFS TypeScript SDK

Readme

neofs-sdk-ts-core

Shared core package for the NeoFS TypeScript SDK. Provides cryptographic primitives, user identity utilities, type definitions, and helper functions used by platform-specific SDK packages.

  • neofs-sdk-ts-react-native — uses grpc-react-native with custom protobuf serialization
  • neofs-sdk-ts-node — uses @grpc/grpc-js with standard protobuf

Installation

npm install neofs-sdk-ts-core

Modules

The package exposes four modules, each available as a subpath export:

Crypto (neofs-sdk-ts-core/crypto)

ECDSA signing and verification with multiple signature schemes supported by NeoFS:

| Scheme | Description | |--------|-------------| | ECDSA_SHA512 | ECDSA with SHA-512 hashing (FIPS 186-3) | | ECDSA_DETERMINISTIC_SHA256 | Deterministic ECDSA with SHA-256 (RFC 6979) | | ECDSA_WALLETCONNECT | WalletConnect signature scheme | | N3 | Neo N3 witness |

Key exports:

  • Signer / SignerV2 — interfaces for signing operations
  • PublicKey — interface for public key encoding, decoding, and verification
  • ECDSASigner / ECDSASignerRFC6979 — concrete ECDSA signer implementations
  • NeoFSSignature — signature wrapper with scheme-aware verification
  • Scheme — enum of supported signature schemes
  • registerScheme() — register custom public key constructors per scheme
  • Tillich–Zémor homomorphic hash (tz submodule)
import { ECDSASigner, Scheme } from 'neofs-sdk-ts-core/crypto';

const signer = new ECDSASigner(privateKeyHex);
const signature = signer.sign(data);
const pubKey = signer.getPublicKey();

User (neofs-sdk-ts-core/user)

NeoFS Owner ID (User ID) derivation and validation. An owner ID is a 25-byte value derived from a Neo N3 public key (address version prefix + script hash + checksum).

import { ownerIdFromPublicKey, validateOwnerId } from 'neofs-sdk-ts-core/user';

const ownerId = ownerIdFromPublicKey(compressedPublicKey);
const isValid = validateOwnerId(ownerId);

Types (neofs-sdk-ts-core/types)

  • Decimal — arbitrary-precision decimal arithmetic for monetary computations (avoids floating-point issues). Supports protobuf serialization, add/subtract/multiply/divide, and comparison.
import { Decimal } from 'neofs-sdk-ts-core/types';

const balance = new Decimal(1000000n, 12);
console.log(balance.toString()); // "0.000001000000"

Utils (neofs-sdk-ts-core/utils)

Buffer and cryptographic helper functions:

  • hexToBytes() / bytesToHex() — hex string conversion
  • fromBase64() / toBase64() — Base64 encoding/decoding
  • randomBytes() — secure random byte generation
  • sha256() / sha512() / ripemd160() / doubleSha256() — hash functions
import { hexToBytes, sha256 } from 'neofs-sdk-ts-core/utils';

const data = hexToBytes('deadbeef');
const hash = sha256(data);

Building

# Install dependencies
npm install

# Build (compiles TypeScript to dist/)
npm run build

# Clean build artifacts
npm run clean

protoc-gen-grpc-ts

This repository also contains protoc-gen-grpc-ts, a Go-based protoc plugin that generates TypeScript code from .proto files. It produces:

  • Binary protobuf serialization (BinaryWriter / BinaryReader)
  • gRPC service clients for React Native (grpc-react-native) and Node.js (@grpc/grpc-js)
  • Support for unary, server-streaming, client-streaming, and bidirectional streaming RPCs
# Build the plugin
cd protoc-gen-grpc-ts
make build

# Install to PATH
make install

# Run tests
make test

See protoc-gen-grpc-ts/README.md for full usage documentation.

License

Apache-2.0