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

@hieco/runtime

v1.0.0

Published

Runtime-aware Hiero SDK adapter for browser, workers, and Node.js

Readme

@hieco/runtime

@hieco/runtime is the runtime-aware adapter around the Hiero JavaScript SDK used by the Hieco package family.

It exists so Hieco packages can depend on one stable import path while package resolution still does the right thing in browsers, workers, workerd, and Node-style runtimes.

Why This Package Exists

Hieco packages use this package as the shared boundary around the underlying Hiero SDK:

  • @hieco/sdk re-exports core SDK types from @hieco/runtime
  • @hieco/wallet uses it for signer and transaction interop
  • the package manifest can declare different entrypoints for browser and node consumers without every sibling package having to solve that problem on its own

Most Hieco users will touch this package indirectly through @hieco/sdk or @hieco/wallet. Reach for it directly when you need raw Hiero SDK exports but want to stay aligned with Hieco’s runtime packaging.

When To Use It

Use @hieco/runtime when you need:

  • raw SDK classes such as Client, PrivateKey, or Transaction
  • SDK types like Signer in shared code that already depends on Hieco packages
  • one import path that can resolve correctly in browser, worker, and node environments

If you want Hieco’s fluent application client, use @hieco/sdk instead.

Installation

npm install @hieco/runtime
pnpm add @hieco/runtime
yarn add @hieco/runtime
bun add @hieco/runtime

Quick Start

import { Client, PrivateKey, type Signer } from "@hieco/runtime";

const client = Client.forTestnet();
const key = PrivateKey.generateED25519();

export function useSigner(signer: Signer) {
  return { client, signer, key };
}

Runtime Resolution

The package publishes explicit runtime-aware entrypoints:

  • @hieco/runtime resolves to the browser build by default
  • @hieco/runtime/node gives you the node entry explicitly
  • @hieco/runtime/browser gives you the browser entry explicitly

The root export also declares browser, worker, workerd, node, and default conditions, so supported bundlers can pick the right file automatically.

What It Exports

The package re-exports the underlying Hiero SDK surface. That means the familiar SDK classes and types are available here, including:

  • Client
  • Signer
  • PrivateKey
  • PublicKey
  • Mnemonic
  • transaction, query, and receipt types

Build And Publish Behavior

@hieco/runtime is the public package in the workspace that ships separate browser and node build outputs:

  • dist/browser.js
  • dist/node.js

Everything else in the workspace can stay on a single browser-friendly ESM build and rely on conditional exports plus externalized dependencies.

Related Packages

  • @hieco/sdk for the higher-level fluent Hieco client
  • @hieco/wallet for wallet-derived signers built on this runtime boundary