npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@weapp-sqlite/web

v0.2.0

Published

基于 IndexedDB 的 Web SQLite WASM 持久化 adapter

Readme

@weapp-sqlite/web

面向浏览器的 SQLite WASM 持久化 adapter,使用 IndexedDB 保存数据库二进制快照,并提供开发期文件导入导出能力。

weapp-vite 项目通常只需安装 @weapp-sqlite/weapp-vite;本包适合独立 Web 集成或自定义 adapter。

pnpm add @weapp-sqlite/web @weapp-sqlite/wasm
import { createIndexedDbSqliteWasmStorage } from '@weapp-sqlite/web'

const storage = createIndexedDbSqliteWasmStorage({
  databaseName: 'app.sqlite',
})

默认 IndexedDB 数据库名为 weapp-sqlite,object store 为 databases。IndexedDB 不可用时会抛出 WEB_SQLITE_INDEXEDDB_UNAVAILABLE,不会静默回退到内存数据库。

存储在首次操作时打开 IndexedDB,并复用进行中的连接请求。打开失败后,下一次操作可以重试。收到其他连接发起的升级或删除请求时,adapter 会释放连接,已有事务仍等待完成;后续操作重新打开当前数据库版本。已放弃请求的迟到连接会立即关闭,避免阻塞后续升级或删除。读取、保存和删除都等待 IndexedDB 事务结束后再返回。

详见 Web API 和 调试工作台。