adb-sqlite-viewer 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Siddharth Bisht
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Siddharth Bisht
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,86 +1,86 @@
1
- # ADB SQLite DevTools
2
-
3
- Inspect SQLite databases on Android devices. Browse tables, view schemas, and run SQL queries — all from your browser.
4
-
5
- ## Quick Start (npm)
6
-
7
- ```bash
8
- npm install --save-dev adb-sqlite-viewer
9
- npx sqlite-viewer
10
- ```
11
-
12
- Opens a local server at `http://127.0.0.1:8085` with the full UI and ADB bridge built in. One command, no extra downloads.
13
-
14
- ```bash
15
- # Custom port
16
- npx sqlite-viewer --port 3000
17
- ```
18
-
19
- **Requirements:** `adb` on your PATH ([Android SDK Platform-Tools](https://developer.android.com/tools/releases/platform-tools)) and a USB-connected Android device with debugging enabled.
20
-
21
- ## All Options
22
-
23
- ### npm Package (Recommended for dev workflows)
24
-
25
- Install into any project and run alongside your app:
26
-
27
- ```bash
28
- npm install --save-dev adb-sqlite-viewer
29
- ```
30
-
31
- Add to your `package.json` scripts:
32
-
33
- ```json
34
- {
35
- "scripts": {
36
- "sqlite-viewer": "sqlite-viewer"
37
- }
38
- }
39
- ```
40
-
41
- Then `npm run sqlite-viewer` opens the viewer. Works great alongside React Native, Flutter, or any Android project.
42
-
43
- ### Desktop App
44
-
45
- Download the Windows installer from [Releases](https://github.com/amitwinit/SQLite-DevTools-Mobile-ReactNative/releases). Double-click to launch — the bridge server starts automatically.
46
-
47
- ### Hosted Version + ADB Bridge
48
-
49
- Use the deployed version at **[amitwinit.github.io/SQLite-DevTools-Mobile-ReactNative](https://amitwinit.github.io/SQLite-DevTools-Mobile-ReactNative/)** together with the standalone ADB Bridge.
50
-
51
- 1. Download `adb-bridge.exe` from [Releases](https://github.com/amitwinit/SQLite-DevTools-Mobile-ReactNative/releases)
52
- 2. Run `adb-bridge.exe`
53
- 3. Open the hosted website — it auto-detects the bridge
54
-
55
- ```
56
- Website (HTTPS) ──HTTP──> localhost:15555 (bridge) ──> adb shell ──> Device
57
- ```
58
-
59
- ### Hosted Version with WebUSB (No install required)
60
-
61
- Open **[amitwinit.github.io/SQLite-DevTools-Mobile-ReactNative](https://amitwinit.github.io/SQLite-DevTools-Mobile-ReactNative/)** in Chrome/Edge. Uses WebUSB to talk directly to the device — no server needed.
62
-
63
- **Note:** Requires `adb kill-server` first (WebUSB and ADB can't share the USB interface). Not suitable when you need ADB running for development.
64
-
65
- ## When to Use Which
66
-
67
- | Scenario | Recommended |
68
- |----------|-------------|
69
- | Active development (React Native, Flutter, etc.) | `npx sqlite-viewer` or Desktop App |
70
- | Quick one-off DB inspection | WebUSB (hosted version) |
71
- | CI or shared dev environment | `npx sqlite-viewer` |
72
- | No Node.js installed | Desktop App or WebUSB |
73
-
74
- ## Development
75
-
76
- ```bash
77
- npm install
78
- npm run dev # Vite dev server
79
- npm run build # Build for GitHub Pages
80
- npm run electron:dev # Build + launch Electron app
81
- npm run electron:build # Build Electron installer
82
- ```
83
-
84
- ## License
85
-
86
- MIT
1
+ # ADB SQLite DevTools
2
+
3
+ Inspect SQLite databases on Android devices. Browse tables, view schemas, and run SQL queries — all from your browser.
4
+
5
+ ## Quick Start (npm)
6
+
7
+ ```bash
8
+ npm install --save-dev adb-sqlite-viewer
9
+ npx sqlite-viewer
10
+ ```
11
+
12
+ Opens a local server at `http://127.0.0.1:8085` with the full UI and ADB bridge built in. One command, no extra downloads.
13
+
14
+ ```bash
15
+ # Custom port
16
+ npx sqlite-viewer --port 3000
17
+ ```
18
+
19
+ **Requirements:** `adb` on your PATH ([Android SDK Platform-Tools](https://developer.android.com/tools/releases/platform-tools)) and a USB-connected Android device with debugging enabled.
20
+
21
+ ## All Options
22
+
23
+ ### npm Package (Recommended for dev workflows)
24
+
25
+ Install into any project and run alongside your app:
26
+
27
+ ```bash
28
+ npm install --save-dev adb-sqlite-viewer
29
+ ```
30
+
31
+ Add to your `package.json` scripts:
32
+
33
+ ```json
34
+ {
35
+ "scripts": {
36
+ "sqlite-viewer": "sqlite-viewer"
37
+ }
38
+ }
39
+ ```
40
+
41
+ Then `npm run sqlite-viewer` opens the viewer. Works great alongside React Native, Flutter, or any Android project.
42
+
43
+ ### Desktop App
44
+
45
+ Download the Windows installer from [Releases](https://github.com/amitwinit/SQLite-DevTools-Mobile-ReactNative/releases). Double-click to launch — the bridge server starts automatically.
46
+
47
+ ### Hosted Version + ADB Bridge
48
+
49
+ Use the deployed version at **[amitwinit.github.io/SQLite-DevTools-Mobile-ReactNative](https://amitwinit.github.io/SQLite-DevTools-Mobile-ReactNative/)** together with the standalone ADB Bridge.
50
+
51
+ 1. Download `adb-bridge.exe` from [Releases](https://github.com/amitwinit/SQLite-DevTools-Mobile-ReactNative/releases)
52
+ 2. Run `adb-bridge.exe`
53
+ 3. Open the hosted website — it auto-detects the bridge
54
+
55
+ ```
56
+ Website (HTTPS) ──HTTP──> localhost:15555 (bridge) ──> adb shell ──> Device
57
+ ```
58
+
59
+ ### Hosted Version with WebUSB (No install required)
60
+
61
+ Open **[amitwinit.github.io/SQLite-DevTools-Mobile-ReactNative](https://amitwinit.github.io/SQLite-DevTools-Mobile-ReactNative/)** in Chrome/Edge. Uses WebUSB to talk directly to the device — no server needed.
62
+
63
+ **Note:** Requires `adb kill-server` first (WebUSB and ADB can't share the USB interface). Not suitable when you need ADB running for development.
64
+
65
+ ## When to Use Which
66
+
67
+ | Scenario | Recommended |
68
+ |----------|-------------|
69
+ | Active development (React Native, Flutter, etc.) | `npx sqlite-viewer` or Desktop App |
70
+ | Quick one-off DB inspection | WebUSB (hosted version) |
71
+ | CI or shared dev environment | `npx sqlite-viewer` |
72
+ | No Node.js installed | Desktop App or WebUSB |
73
+
74
+ ## Development
75
+
76
+ ```bash
77
+ npm install
78
+ npm run dev # Vite dev server
79
+ npm run build # Build for GitHub Pages
80
+ npm run electron:dev # Build + launch Electron app
81
+ npm run electron:build # Build Electron installer
82
+ ```
83
+
84
+ ## License
85
+
86
+ MIT
@@ -1,13 +1,13 @@
1
- {
2
- "name": "adb-bridge",
3
- "version": "1.0.0",
4
- "private": true,
5
- "description": "Localhost HTTP bridge that wraps adb shell commands for the SQLite DevTools website",
6
- "scripts": {
7
- "start": "node server.js",
8
- "build": "pkg server.js --target node20-win-x64 --output adb-bridge.exe"
9
- },
10
- "devDependencies": {
11
- "@yao-pkg/pkg": "^5.11.0"
12
- }
13
- }
1
+ {
2
+ "name": "adb-bridge",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "description": "Localhost HTTP bridge that wraps adb shell commands for the SQLite DevTools website",
6
+ "scripts": {
7
+ "start": "node server.js",
8
+ "build": "pkg server.js --target node20-win-x64 --output adb-bridge.exe"
9
+ },
10
+ "devDependencies": {
11
+ "@yao-pkg/pkg": "^5.11.0"
12
+ }
13
+ }