# @cntr/sveltekit

> [![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 **0.3.0** (published 2024-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cntr/sveltekit
pnpm add @cntr/sveltekit
yarn add @cntr/sveltekit
bun add @cntr/sveltekit
```

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2024-05-24 |
| First published | 2023-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 4 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 98 |
| Maintainers | cntr |

## Links

- npm: https://www.npmjs.com/package/@cntr/sveltekit
- 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/@cntr/sveltekit

## Dependencies (4)

- [cookie](https://npm.io/package/cookie.md) ^0.6.0
- [js-base64](https://npm.io/package/js-base64.md) ^3.7.7
- [@logto/client](https://npm.io/package/@logto/client.md) ^2.6.7
- [@silverhand/essentials](https://npm.io/package/@silverhand/essentials.md) ^2.9.1

## Recent versions

- 0.3.0 (latest) — 2024-05-24
- 0.2.0 — 2023-10-19
- 0.1.1 — 2023-09-28
- 0.1.0 — 2023-09-27
- 0.0.4 — 2023-08-03
- 0.0.3 — 2023-06-26
- 0.0.2 — 2023-06-20
- 0.0.1 — 2023-03-07

## 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/browser/) for more information.

We also provide [文档](https://docs.logto.io/zh-cn/sdk/JavaScript/browser/) in Simplified Chinese.

## Installation

### Using npm

```bash
npm install @logto/browser
```

### Using yarn

```bash
yarn add @logto/browser
```

### Using pnpm

```bash
pnpm add @logto/browser
```

## What is this and how does it work?

As the name suggests, Logto browser SDK is the foundation of all Logto SDKs that run in a browser environment (Vanilla, React, Vue, etc.). `@logto/browser` extends `@logto/client` and provides a browser specific implementation of the client adapters:

* Implements `Storage` by using browser `localStorage` and `sessionStorage`.
* Implements `navigate` method by using `window.location.href`.

Usually you are not expected to use it directly in your application, but instead choosing a framework specific SDK that built on top of it. We have already released a set of official SDKs to accelerate your integration. [Check this out](https://docs.logto.io/docs/recipes/integrate-logto/) and get started!

If Logto does not support your front-end framework and you want to create your own SDK from scratch, we recommend checking out the SDK specification first. You can also refer to our [React SDK](https://github.com/logto-io/js/tree/master/packages/react) and [Vue SDK](https://github.com/logto-io/js/tree/master/packages/react) to learn more about the implementation details.

## 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/browser/)
[![Discord](https://img.shields.io/discord/965845662535147551?logo=discord&logoColor=ffffff&color=7389D8&cacheSeconds=600)](https://discord.gg/UEPaF3j5e6)

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