# @reality.eth/reality-eth-lib

> Tools for handling questions in the reality.eth fact verification platform

Latest version **3.4.36** (published 2026-10-20) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @reality.eth/reality-eth-lib
pnpm add @reality.eth/reality-eth-lib
yarn add @reality.eth/reality-eth-lib
bun add @reality.eth/reality-eth-lib
```

## Health

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

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.4.36 |
| Published | 2026-10-20 |
| First published | 2021-05-25 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 144.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45 |
| Author | Edmund Edgar (https://reality.eth.link) |
| Maintainers | reality.eth |
| Keywords | Ethereum, Realitio, Reality Check, Reality Keys, Solidity, Truffle |

## Links

- npm: https://www.npmjs.com/package/@reality.eth/reality-eth-lib
- Repository: https://github.com/RealityETH/monorepo
- Homepage: https://reality.eth.link
- Issues: https://github.com/RealityETH/monorepo/issues
- npm.io page: https://npm.io/package/@reality.eth/reality-eth-lib

## Dependencies (4)

- [ethers](https://npm.io/package/ethers.md) ^6.0.0
- [marked](https://npm.io/package/marked.md) ^4.1.1
- [isomorphic-dompurify](https://npm.io/package/isomorphic-dompurify.md) ^4.4.0
- [@reality.eth/contracts](https://npm.io/package/@reality.eth/contracts.md) ^3.2.33

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 3.4.36 (latest) — 2026-10-20
- 3.4.35 — 2026-10-15
- 3.4.34 — 2026-09-30
- 3.4.33 — 2026-09-30
- 3.4.32 — 2026-09-28
- 3.4.31 — 2026-09-28
- 3.4.30 — 2026-09-18
- 3.4.29 — 2026-09-02
- 3.4.28 — 2026-06-04
- 3.4.25 — 2026-02-25
- 3.4.24 — 2026-01-15
- 3.4.23 — 2026-01-08
- 3.4.17 — 2025-12-06
- 3.4.16 — 2025-12-06
- 3.4.15 — 2025-08-27
- … 115 more at https://npm.io/package/@reality.eth/reality-eth-lib/versions

## README

# reality-eth-lib

Useful libraries for Reality.eth

## CJS build

Used by the indexer and other Node.js packages.

```
npm run build
```

Compiles TypeScript sources under `src/` to `dist/cjs/` via `tsc`.

## Browser bundle

Used by the website (`packages/website/webroot/js/vendor/reality-eth-lib.js`).
Exports all public functions from `browser-entry.ts` as `window.RealityLib`.

```
npm run build:browser
```

Built with esbuild (version pinned in `package.json` for reproducibility).
The output file is committed to the website package. To verify a clean rebuild
produces the same file:

```
npm run build:browser
sha256sum ../website/webroot/js/vendor/reality-eth-lib.js
```

Expected hash: `6b713caca2d26b7e9b4814e7137179d66d70af185228f4adfd66a1d3b1a159fa`

Update this hash in the README after any intentional change to `browser-entry.ts`
or its dependencies.

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