# uport-lite

> Lightweight library for looking up public profiles on uport-registry

Latest version **1.0.5** (published 2019-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install uport-lite
pnpm add uport-lite
yarn add uport-lite
bun add uport-lite
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-04-15 |
| First published | 2017-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 117.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Pelle Braendgaard |
| Maintainers | aldigjo, localredhead, mike.xu, pelleb, rmw2, simonas-notcat |

## Links

- npm: https://www.npmjs.com/package/uport-lite
- Repository: https://github.com/uport-project/uport-lite
- Homepage: https://github.com/uport-project/uport-lite#readme
- Issues: https://github.com/uport-project/uport-lite/issues
- npm.io page: https://npm.io/package/uport-lite

## Dependencies (2)

- [base-x](https://npm.io/package/base-x.md) ^3.0.0
- [xmlhttprequest](https://npm.io/package/xmlhttprequest.md) ^1.8.0

## Recent versions

- 1.0.5 (latest) — 2019-04-15
- 1.0.0-alpha-6 (next) — 2017-04-04
- 1.0.4 — 2019-04-10
- 1.0.3 — 2018-12-13
- 1.0.2 — 2017-08-07
- 1.0.1 — 2017-06-07
- 1.0.0 — 2017-04-21
- 0.2.5 — 2017-03-31
- 1.0.0-alpha-5 — 2017-03-31
- 1.0.0-alpha-4 — 2017-03-27
- 1.0.0-alpha-3 — 2017-03-24
- 1.0.0-alpha-2 — 2017-03-21
- 1.0.0-alpha — 2017-03-18
- 0.2.4 — 2017-02-20
- 0.2.3 — 2017-02-15
- … 5 more at https://npm.io/package/uport-lite/versions

## README

# Light weight library for fetching public uPort profiles

A uPort is an ethereum address representing an identity of a person, thing or other entitity. We are using the [MNID address encoding](https://github.com/uport-project/mnid) scheme to safely support multiple networks.

A public profile is stored on ipfs at a hash registered in the [uPortRegistry](https://github.com/ConsenSys/uport-registry).

This library aims to let developers look up a profile for a given ethereum address and nothing else. It is designed to be tiny,
so you can easily add uport functionality to non Ethereum apps.

## Use

By default it uses the uport registry on the `ropsten` network as well as infura ipfs and jsonRpc gateways.

```javascript
import UportLite from 'uport-lite'

// UportLite is just a function returning a function. It is not a Class so don't use `new`
const registry = UportLite()

registry('2oVdmcz7BkWozm2JE4hHixRV8s5y3STqhPG', (error, profile) => {
  console.log(profile)
})
```

You can configure it passing options to the function:

```javascript
import UportLite from 'uport-lite'

const registry = UportLite({
  ipfsGw: 'https://ipfs.infura.io/ipfs/',
  infuraKey: 'INFURA_API_KEY',
  networks: {
    '0x94365e3b': {
      rpcUrl: 'https://private.chain/rpc',
      address: '0x0101....'
    }
  }
})

registry('5A8bRWU3F7j3REx3vkJWxdjQPp4tqmxFPmab1Tr', (error, profile) => {
  console.log(profile)
})
```

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