# fortmatic

> Fortmatic Javascript SDK

Latest version **2.4.0** (published 2022-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install fortmatic
pnpm add fortmatic
yarn add fortmatic
bun add fortmatic
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.4.0 |
| Published | 2022-05-27 |
| First published | 2018-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 95.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fortmatic |
| Maintainers | mikeysight, ternstor-magic, damianjachyra, magic-ravi, jasonatmagic, rislas, bcleary06, mushfichowdhury, lishang106, seanli, davidmmeyer, harry.eth, sandeepsuresh, jmjin, fyjen, ethella, dizigen, dc-magic, hcote, joeblackwaslike, maksym.iv, larscanders, dgerrells_magic, codewonders_magic, weii |
| Keywords | auth, login, web3, crypto, ethereum, metaMask, wallet, blockchain, dapp |

## Links

- npm: https://www.npmjs.com/package/fortmatic
- Repository: https://github.com/fortmatic/fortmatic-js
- Homepage: https://www.fortmatic.com
- Issues: https://github.com/fortmatic/fortmatic-js/issues
- npm.io page: https://npm.io/package/fortmatic

## 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
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 2.4.0 (latest) — 2022-05-27
- 2.1.0-beta.3 (beta) — 2020-03-31
- 2.0.0-54c5cfd8.13 (canary) — 2020-01-23
- 2.3.0 — 2022-05-10
- 2.2.1 — 2020-07-29
- 2.2.0 — 2020-07-29
- 2.1.0 — 2020-07-28
- 2.0.6 — 2020-03-31
- 2.1.0-beta.2 — 2020-03-31
- 2.1.0-beta.1 — 2020-03-25
- 2.0.5 — 2020-03-03
- 2.0.4 — 2020-03-03
- 2.0.3 — 2020-03-03
- 2.0.2 — 2020-02-28
- 2.1.0-beta.0 — 2020-02-28
- … 55 more at https://npm.io/package/fortmatic/versions

## README

# Fortmatic Javascript SDK

Fortmatic JavaScript SDK lets developers conveniently connect their web apps to the Ethereum blockchain - allowing end-users to interact with their apps on any modern browser, without requiring them to download any browser extensions or mobile dApp browsers.

## Documentation

See the [Developer Documentation](https://docs.fortmatic.com).

## Installation

Integrating your app with Fortmatic will need our npm package:

```bash
# Via NPM:
npm install --save fortmatic

# Via Yarn:
yarn add fortmatic
```

Alternatively you can load via CDN with by adding a script tag to your app’s `<head>`:

```html
<script src="https://cdn.jsdelivr.net/npm/fortmatic/dist/fortmatic.js"></script>
```

## Usage

Sign up or log in to the [Developer Dashboard](https://dashboard.fortmatic.com) to receive API keys that will allow your app to interact with the Ethereum blockchain through Fortmatic.

You can then integrate by simply replacing your web3 provider with Fortmatic provider. Now, instead of the MetaMask Chrome Extension opening, a Fortmatic modal will show instead—requiring no additional user downloads. Fortmatic works across all modern desktop, mobile Chrome, Safari and Firefox browsers.

```jspx
import Fortmatic from 'fortmatic';

// Create client and replace web3 provider
const fm = new Fortmatic('YOUR_API_KEY');
web3 = new Web3(fm.getProvider());

// Send transactions the way your are used to
web3.eth.sendTransaction({/* ... */});
```

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