# @logto/js

> [![Version](https://img.shields.io/npm/v/@logto/js)](https://www.npmjs.com/package/@logto/js) [![Build Status](https://github.com/logto-io/js/actions/workflows/main.yml/badge.svg)](https://github.com/logto-io/js/actions/workflows/main.yml) [![Codecov](htt

Latest version **6.1.2** (published 2026-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @logto/js
pnpm add @logto/js
yarn add @logto/js
bun add @logto/js
```

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.1.2 |
| Published | 2026-04-08 |
| First published | 2022-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 46.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 98 |
| Maintainers | simeng_li, gaosun |

## Links

- npm: https://www.npmjs.com/package/@logto/js
- Repository: https://github.com/logto-io/js
- Homepage: https://github.com/logto-io/js#readme
- Issues: https://github.com/logto-io/js/issues
- npm.io page: https://npm.io/package/@logto/js

## Dependencies (2)

- [camelcase-keys](https://npm.io/package/camelcase-keys.md) ^9.1.3
- [@silverhand/essentials](https://npm.io/package/@silverhand/essentials.md) ^2.9.3

## Recent versions

- 6.1.2 (latest) — 2026-04-08
- 6.1.1 — 2026-02-24
- 6.1.0 — 2025-06-20
- 6.0.0 — 2025-05-29
- 5.1.1 — 2025-04-24
- 5.1.0 — 2025-04-02
- 5.0.3 — 2025-02-13
- 5.0.2 — 2024-12-05
- 4.2.0 — 2024-08-28
- 4.1.5 — 2024-07-04
- 4.1.4 — 2024-06-29
- 4.1.3 — 2024-06-18
- 4.1.2 — 2024-05-24
- 4.1.1 — 2024-03-24
- 4.1.0 — 2024-03-22
- … 48 more at https://npm.io/package/@logto/js/versions

## README

# Logto JS (Core) SDK
[![Version](https://img.shields.io/npm/v/@logto/js)](https://www.npmjs.com/package/@logto/js)
[![Build Status](https://github.com/logto-io/js/actions/workflows/main.yml/badge.svg)](https://github.com/logto-io/js/actions/workflows/main.yml)
[![Codecov](https://img.shields.io/codecov/c/github/logto-io/js)](https://app.codecov.io/gh/logto-io/js?branch=master)

The Logto JavaScript Core SDK written in TypeScript. Check out our [docs](https://docs.logto.io/JavaScript/js/) for more information.

## Installation

### Using npm

```bash
npm install @logto/js
```

### Using yarn

```bash
yarn add @logto/js
```

### Using pnpm

```bash
pnpm add @logto/js
```

## What is this and how does it work?

Logto JavaScript SDK (a.k.a JS core) is the foundation of the entire JavaScript SDK family (Browser, Next.js, React, Vue, etc.). Usually you are not expected to use it directly in your application, as we have released a set of official SDKs to help you integrate Logto with your favorite JavaScript frameworks. [Check this out](https://docs.logto.io/docs/recipes/integrate-logto/) and get started!

If Logto does not support your framework and you want to contribute by building a new SDK from scratch, we recommend checking out our [Browser SDK](https://github.com/logto-io/js/tree/master/packages/browser) and [Node.js SDK](https://github.com/logto-io/js/tree/master/packages/node) and start from there.

## Resources

[![Website](https://img.shields.io/badge/website-logto.io-8262F8.svg)](https://logto.io/)
[![Docs](https://img.shields.io/badge/docs-logto.io-green.svg)](https://docs.logto.io/sdk/JavaScript/js/)
[![Discord](https://img.shields.io/discord/965845662535147551?logo=discord&logoColor=ffffff&color=7389D8&cacheSeconds=600)](https://discord.gg/UEPaF3j5e6)

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