# @toruslabs/metadata-helpers

> Helper methods for metadata

Latest version **8.2.0** (published 2026-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @toruslabs/metadata-helpers
pnpm add @toruslabs/metadata-helpers
yarn add @toruslabs/metadata-helpers
bun add @toruslabs/metadata-helpers
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.2.0 |
| Published | 2026-03-04 |
| First published | 2021-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.x |
| Dependencies | 6 |
| Unpacked size | 135.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Torus Labs |
| Maintainers | torusresearch, chaitanyapotti, tetratorus, archit_web3, himanshunpm009 |
| Keywords | metadata-helpers, torus-direct-auth, torus nodes, torus-embed, direct auth |

## Links

- npm: https://www.npmjs.com/package/@toruslabs/metadata-helpers
- Repository: https://github.com/torusresearch/metadata-helpers
- Homepage: https://github.com/torusresearch/metadata-helpers#readme
- Issues: https://github.com/torusresearch/metadata-helpers/issues
- npm.io page: https://npm.io/package/@toruslabs/metadata-helpers

## Dependencies (6)

- [@scure/base](https://npm.io/package/@scure/base.md) ^2.0.0
- [@noble/curves](https://npm.io/package/@noble/curves.md) ^2.0.1
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^2.0.1
- [@toruslabs/eccrypto](https://npm.io/package/@toruslabs/eccrypto.md) ^7.0.0
- [json-stable-stringify](https://npm.io/package/json-stable-stringify.md) ^1.3.0
- [@toruslabs/http-helpers](https://npm.io/package/@toruslabs/http-helpers.md) ^9.0.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@oxyhq/services](https://npm.io/package/@oxyhq/services.md) — 2.3K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads

## Recent versions

- 8.2.0 (latest) — 2026-03-04
- 8.1.0 — 2026-02-23
- 8.0.0 — 2026-02-05
- 7.0.2 — 2025-03-11
- 7.0.1 — 2025-02-27
- 7.0.0 — 2025-01-20
- 6.0.0 — 2024-06-13
- 5.1.0 — 2024-03-11
- 5.0.1 — 2024-02-29
- 5.0.0 — 2023-08-08
- 4.0.1 — 2023-07-27
- 4.0.0 — 2023-05-02
- 3.2.0 — 2023-04-28
- 3.1.0 — 2023-03-14
- 3.0.0 — 2022-05-19
- … 20 more at https://npm.io/package/@toruslabs/metadata-helpers/versions

## README

# Metadata-helpers

![Build Status](https://github.com/torusresearch/metadata-helpers/actions/workflows/master.yml/badge.svg)

[![npm downloads](https://img.shields.io/npm/dm/@toruslabs/metadata-helpers.svg?style=flat-square)](https://www.npmjs.com/package/@toruslabs/metadata-helpers)

[![NPM](https://nodei.co/npm/@toruslabs/metadata-helpers.png)](https://www.npmjs.com/package/@toruslabs/metadata-helpers)

## Introduction

This repo allow you to get and set metadata

## Features

- Typescript compatible. Includes Type definitions
- All API's return `Promises`

## Installation

### Bundling

This module is distributed in 3 formats

- `ems` build `dist/metadataHelpers.esm.js` in es5 format
- `commonjs` build `dist/metadataHelpers.cjs.js` in es5 format with problematic packages bundled (benfits non-webpack users)

By default, the appropriate format is used for your specified usecase
You can use a different format (if you know what you're doing) by referencing the correct file

The cjs build is not polyfilled with core-js.
It is upto the user to polyfill based on the browserlist they target

### Directly in Browser

CDN's serve the non-core-js polyfilled version by default. You can use a different

jsdeliver

```js
<script src="https://cdn.jsdelivr.net/npm/@toruslabs/metadata-helpers"></script>
```

unpkg

```js
<script src="https://unpkg.com/@toruslabs/metadata-helpers"></script>
```

### Tips for NUXT

This is a plugin that works [only on the client side](https://nuxtjs.org/guide/plugins/#client-side-only). So please register it as a ssr-free plugin.

## Usage

Add [`@toruslabs/metadata-helpers`](https://www.npmjs.com/package/@toruslabs/metadata-helpers) to your project:

To allow your web app to retrieve keys:

Install the package
`npm i @toruslabs/metadata-helpers`
or
`yarn add @toruslabs/metadata-helpers`

## Requirements

- This package requires a peer dependency of `@babel/runtime`
- Node 22+

---
_Source: https://npm.io/package/@toruslabs/metadata-helpers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
