# @hyperledger/anoncreds-nodejs

> Nodejs wrapper for Anoncreds

Latest version **0.4.0** (published 2026-04-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @hyperledger/anoncreds-nodejs
pnpm add @hyperledger/anoncreds-nodejs
yarn add @hyperledger/anoncreds-nodejs
bun add @hyperledger/anoncreds-nodejs
```

## Health

**Score 50/100 (C)** — status: active.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2026-04-01 |
| First published | 2023-01-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Hyperledger |
| Maintainers | hyperledger-lf, hyperledger-ghci, openwalletfoundation, lfdt-npm, rafaelapb |

## Links

- npm: https://www.npmjs.com/package/@hyperledger/anoncreds-nodejs
- Repository: https://github.com/anoncreds/anoncreds-wrapper-javascript
- Homepage: https://github.com/anoncreds/anoncreds-wrapper-javascript/tree/main/packages/anoncreds-nodejs
- Issues: https://github.com/anoncreds/anoncreds-wrapper-javascript/issues
- npm.io page: https://npm.io/package/@hyperledger/anoncreds-nodejs

## Recent versions

- 0.4.0 (latest) — 2026-04-01
- 0.4.1-alpha-20260924102630 (alpha) — 2026-09-24
- 0.4.1-alpha-20260609124337 — 2026-06-09
- 0.4.1-alpha-20260609124055 — 2026-06-09
- 0.4.1-alpha-20260519194331 — 2026-05-19
- 0.4.1-alpha-20260401185902 — 2026-04-01
- 0.4.0-alpha-20260327110255 — 2026-03-27
- 0.4.0-alpha-20260327105745 — 2026-03-27
- 0.4.0-alpha-20260327071141 — 2026-03-27
- 0.4.0-alpha-20260302110120 — 2026-03-02
- 0.4.0-alpha-20260212144625 — 2026-02-12
- 0.4.0-alpha-20260212142546 — 2026-02-12
- 0.3.5-alpha-20260107085331 — 2026-01-07
- 0.3.5-alpha-20251114202656 — 2025-11-14
- 0.3.4 — 2025-11-14
- … 48 more at https://npm.io/package/@hyperledger/anoncreds-nodejs/versions

## README

# Anoncreds NodeJS

Wrapper for Nodejs around anoncreds-rs

## Requirements

This library requires (and has been tested extensively with) Node.js version 18.x. Newer versions might also work, but they have not been tested.

## Installation

```sh
yarn add @hyperledger/anoncreds-nodejs
```

## Usage

You can import all types and classes from the `@hyperledger/anoncreds-nodejs` library:

```typescript
import { Schema } from '@hyperledger/anoncreds-nodejs'

const schema = Schema.create({
  name: 'test',
  version: '1.0',
  issuerId: 'mock:uri',
  attributeNames: ['name', 'age', 'address']
})

// JSON representation
const schemaJson = schema.toJson()

// This can be used as a deconstructor to clear the internal reference to
// the anoncreds object
schema.handle.clear()
```

> **Note**: If you want to use this library in a cross-platform environment you need to import methods from the `@hyperledger/anoncreds-shared` package instead. This is a platform independent package that allows to register the native bindings. The `@hyperledger/anoncreds-nodejs` package uses this package under the hood. See the [Anoncreds Shared README](https://github.com/anoncreds/anoncreds-wrapper-javascript/tree/main/packages/anoncreds-shared/README.md) for documentation on how to use this package.

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