Skip to main content

@mtcute/web@0.16.7
Built and signed on GitHub Actions

Web support package for mtcute

This package works with Node.js, Deno, Bun, Browsers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
76%
Published
a month ago (0.16.7)
class IdbStorage
implements IMtStorageProvider

mtcute storage that uses IndexedDB as a backend.

This storage is the default one for browsers, and is generally recommended over local storage based one.

Constructors

new
IdbStorage(dbName: string)

Properties

readonly
authKeys: IdbAuthKeysRepository
readonly
kv: IdbKvRepository
readonly
peers: IdbPeersRepository
readonly
refMessages: IdbRefMsgRepository

Add Package

deno add jsr:@mtcute/web

Import symbol

import { IdbStorage } from "@mtcute/web";

---- OR ----

Import directly with a jsr specifier

import { IdbStorage } from "jsr:@mtcute/web";

Add Package

npx jsr add @mtcute/web

Import symbol

import { IdbStorage } from "@mtcute/web";

Add Package

yarn dlx jsr add @mtcute/web

Import symbol

import { IdbStorage } from "@mtcute/web";

Add Package

pnpm dlx jsr add @mtcute/web

Import symbol

import { IdbStorage } from "@mtcute/web";

Add Package

bunx jsr add @mtcute/web

Import symbol

import { IdbStorage } from "@mtcute/web";