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

database-devtools

v0.1.7

Published

Inspect SQLite in React Native & Expo from your browser — browse tables, run SQL, edit data. DevTools for mobile databases.

Downloads

1,439

Readme

database-devtools

npm version license

Inspect and debug SQLite in React Native and Expo apps from your browser — browse tables, run SQL, and edit live data on connected devices.

database-devtools is a Chrome DevTools-like toolkit for mobile app databases. Add one component to your app, run npx database-devtools on your machine, and inspect your local SQLite database in a full browser UI.

Features

  • React Native SQLite inspector — zero-config expo-sqlite auto-detection
  • Expo & React Native debugging — floating dev overlay in your app during development
  • Browser database explorer — tables, schema, paginated rows, search, and sort
  • SQL workspace — run queries with history, favorites, and export (TSV, CSV, JSON)
  • Edit mode — transactional inserts, updates, and deletes on the live device database
  • Offline exports — snapshot saved per app; inspect even when the device disconnects
  • Single npm install — no extra inspector packages required

Install

npm install database-devtools

Expo projects (recommended — aligns native module versions with your SDK):

npx expo install database-devtools expo-sqlite

database-devtools bundles its mobile UI dependencies (@expo/vector-icons, @react-native-async-storage/async-storage, expo-constants, expo-clipboard). You still need expo-sqlite in your app for the database itself (react and react-native are expected to already be present).

If AsyncStorage is not linked into your native binary (common when it is only a nested dependency), DevTools still works with a session-only device id. To persist device ids across restarts, install and rebuild:

npx expo install @react-native-async-storage/async-storage

Quick start — React Native / Expo

import * as SQLite from 'expo-sqlite';
import { DatabaseDevTools } from 'database-devtools';

const db = await SQLite.openDatabaseAsync('myapp.db');

export function App() {
  return (
    <>
      {/* your app */}
      <DatabaseDevTools database={db} />
    </>
  );
}

SQLite is auto-detected from the raw expo-sqlite instance. Optional:

<DatabaseDevTools database={db} type="sqlite" />
<DatabaseDevTools database={db} adapter={customAdapter} />

Run the inspector hub

After installing, start the local hub and browser UI:

npx database-devtools

Opens http://localhost:3847. Connect your app (simulator, emulator, or physical device on the same network), then Refresh to pull a database snapshot.

Physical device

Point the mobile app at your machine's LAN IP:

EXPO_PUBLIC_DATABASE_DEVTOOLS_URL=ws://192.168.1.10:3847/ws

| Variable | Default | Purpose | |----------|---------|---------| | DATABASE_DEVTOOLS_PORT | 3847 | Hub and web UI port | | DATABASE_DEVTOOLS_NO_OPEN | unset | Set to 1 to skip opening the browser |

Advanced exports

| Import | Use case | |--------|----------| | database-devtools/adapters/sqlite | Custom SQLite adapter wiring | | database-devtools/inspector-sqlite | Browser-side sql.js inspector (custom UI) | | database-devtools/client | WebSocket client for custom tools | | database-devtools/server | Embed the hub in Node.js |

Documentation

Security

For local development only. The hub listens on 0.0.0.0. The RN overlay is disabled in production by default (__DEV__). Edit mode writes to the live device database.

License

MIT © tamangRajkumar/database-devtools

Publishing (maintainers)

The npm package ships two artifacts: the JS library (dist/*.js) and the static browser hub (dist/web/ including sql-wasm.wasm).

Always run the full build before publishing:

pnpm build                    # from monorepo root
pnpm --filter database-devtools publish --no-git-checks --otp=CODE

Do not run tsup alone — it wipes dist/ and does not rebuild the web UI. prepublishOnly will fail if dist/web or wasm assets are missing.