pkg-track 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. package/README.md +55 -38
  2. package/bin/cli.js +2 -2
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # šŸ“¦ pkg-tracker
1
+ # šŸ“¦ pkg-track
2
2
 
3
3
  **Track all your packages in one place.** No more digging through emails!
4
4
 
@@ -29,50 +29,56 @@ Interactive CLI that scans your Gmail for shipping confirmations and lets you tr
29
29
 
30
30
  ## šŸ“‹ Prerequisites
31
31
 
32
- Before installing, you'll need:
33
-
34
32
  - **Node.js 14 or higher** ([Download](https://nodejs.org/))
35
- - **Gmail account** - For scanning shipping emails
36
- - **Google Cloud Project** - Free tier (for OAuth credentials)
37
- - See [Setup](#setup) for detailed instructions
33
+ - **Gmail account**
38
34
 
39
35
  **Supported Platforms:**
40
36
  - āœ… macOS (10.15+)
41
37
  - āœ… Linux (Ubuntu, Debian, Fedora, etc.)
42
38
  - āœ… Windows 10/11 (with Node.js)
43
39
 
44
- ## šŸš€ Installation
40
+ ## šŸš€ Quick Start
45
41
 
46
- **Option 1: NPM (Recommended)**
47
- ```bash
48
- npm install -g pkg-tracker
49
- ```
42
+ ### 1. Install
50
43
 
51
- **Option 2: From Source**
52
44
  ```bash
53
- git clone https://github.com/vvanessaww/pkg-tracker.git
54
- cd pkg-tracker
55
- npm install
56
- npm link
45
+ npm install -g pkg-track
57
46
  ```
58
47
 
59
- **Verify installation:**
48
+ ### 2. One-Time Gmail Setup (~5 minutes)
49
+
50
+ **Quick Google Cloud setup** (sounds scary, but it's just clicking through):
51
+
60
52
  ```bash
61
- pkg --version
62
- ```
53
+ # 1. Create the config directory
54
+ mkdir -p ~/.pkg-tracker
63
55
 
64
- ## Setup
56
+ # 2. Follow these steps to get your credentials:
57
+ ```
65
58
 
66
- ### 1. Get Gmail API Credentials
59
+ **Google Cloud Console** (one-time):
60
+ 1. Go to https://console.cloud.google.com/apis/credentials
61
+ 2. **Create Project** → Name: `pkg-track` (or anything) → **Create**
62
+ 3. **Enable APIs** → Search **"Gmail API"** → **Enable**
63
+ 4. **Configure Consent Screen**:
64
+ - User Type: **External** → **Create**
65
+ - App name: `pkg-track`
66
+ - User support email: (your email)
67
+ - Developer contact: (your email)
68
+ - **Save and Continue** (skip scopes/test users)
69
+ 5. **Credentials** → **Create Credentials** → **OAuth client ID**:
70
+ - Application type: **Desktop app**
71
+ - Name: `pkg-track`
72
+ - **Create**
73
+ 6. **Download JSON** (click the download icon ā¬‡ļø)
74
+ 7. **Move the file**:
75
+ ```bash
76
+ mv ~/Downloads/client_secret_*.json ~/.pkg-tracker/credentials.json
77
+ ```
67
78
 
68
- 1. Go to [Google Cloud Console](https://console.cloud.google.com/apis/credentials)
69
- 2. Create a new project (or select existing)
70
- 3. Enable **Gmail API**
71
- 4. Create **OAuth 2.0 Client ID** (Application type: Desktop app)
72
- 5. Download the credentials JSON file
73
- 6. Save it as `~/.pkg-tracker/credentials.json`
79
+ **Why this setup?** Google requires each user to create their own OAuth app for Gmail access. This ensures your data stays private and you control the permissions. Your credentials never leave your computer.
74
80
 
75
- ### 2. Initialize
81
+ ### 3. Initialize
76
82
 
77
83
  ```bash
78
84
  pkg init
@@ -80,9 +86,11 @@ pkg init
80
86
 
81
87
  This will:
82
88
  - Open your browser for Gmail authorization
83
- - Save access token for future use
89
+ - Save access token locally
84
90
  - Create local database
85
91
 
92
+ **That's it!** You only need to do this once.
93
+
86
94
  ## Usage
87
95
 
88
96
  ### Scan email for packages
@@ -220,18 +228,31 @@ Perfect for cleaning up delivered packages or removing things you're no longer t
220
228
  - `~/.pkg-tracker/packages.db` - SQLite database of your packages
221
229
 
222
230
  **Revoking access:**
223
- If you want to stop using pkg-tracker:
231
+ If you want to stop using pkg-track:
224
232
  1. Revoke OAuth access: https://myaccount.google.com/permissions
225
233
  2. Delete local data: `rm -rf ~/.pkg-tracker`
226
234
 
227
235
  ## šŸ”§ Troubleshooting
228
236
 
237
+ ### "This app isn't verified" warning during OAuth
238
+
239
+ **What you'll see:** When authorizing Gmail access, Google shows a warning: "Google hasn't verified this app"
240
+
241
+ **This is normal!** You created the app yourself, so Google hasn't verified it. This is expected and safe.
242
+
243
+ **To continue:**
244
+ 1. Click **"Advanced"**
245
+ 2. Click **"Go to [your-app-name] (unsafe)"**
246
+ 3. Click **"Allow"**
247
+
248
+ **Why it's safe:** You created the OAuth credentials yourself - it's YOUR app accessing YOUR Gmail. No one else has access.
249
+
229
250
  ### "Gmail credentials not found"
230
251
 
231
252
  **Problem:** You see `āš ļø Gmail OAuth credentials not found.`
232
253
 
233
254
  **Solution:**
234
- 1. Make sure you've created OAuth credentials in Google Cloud Console
255
+ 1. Make sure you've created OAuth credentials in Google Cloud Console (see [Quick Start](#-quick-start))
235
256
  2. Download the credentials JSON file
236
257
  3. Save it to the correct location:
237
258
  ```bash
@@ -276,13 +297,9 @@ If you want to stop using pkg-tracker:
276
297
 
277
298
  **Solution:**
278
299
  ```bash
279
- # Reinstall dependencies
280
- cd /path/to/pkg-tracker
281
- npm install
282
-
283
300
  # If installed globally, reinstall
284
- npm uninstall -g pkg-tracker
285
- npm install -g pkg-tracker
301
+ npm uninstall -g pkg-track
302
+ npm install -g pkg-track
286
303
  ```
287
304
 
288
305
  ### "Permission denied" on macOS/Linux
@@ -355,7 +372,7 @@ pkg sync
355
372
  ```
356
373
 
357
374
  3. **Open an issue:**
358
- - Visit: https://github.com/vvanessaww/pkg-tracker/issues
375
+ - Visit: https://github.com/vvanessaww/pkg-track/issues
359
376
  - Include: OS, Node.js version, error message, steps to reproduce
360
377
 
361
378
  ## Roadmap
package/bin/cli.js CHANGED
@@ -13,7 +13,7 @@ process.on('unhandledRejection', (reason, promise) => {
13
13
  console.error(chalk.red('\nāœ— Unexpected error occurred:'));
14
14
  console.error(chalk.gray(reason.message || reason));
15
15
  console.error(chalk.yellow('\nIf this persists, please report it:'));
16
- console.error(chalk.cyan('https://github.com/vvanessaww/pkg-tracker/issues\n'));
16
+ console.error(chalk.cyan('https://github.com/vvanessaww/pkg-track/issues\n'));
17
17
  process.exit(1);
18
18
  });
19
19
 
@@ -21,7 +21,7 @@ process.on('uncaughtException', (error) => {
21
21
  console.error(chalk.red('\nāœ— Fatal error:'));
22
22
  console.error(chalk.gray(error.message));
23
23
  console.error(chalk.yellow('\nIf this persists, please report it:'));
24
- console.error(chalk.cyan('https://github.com/vvanessaww/pkg-tracker/issues\n'));
24
+ console.error(chalk.cyan('https://github.com/vvanessaww/pkg-track/issues\n'));
25
25
  process.exit(1);
26
26
  });
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pkg-track",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Track all your packages in one place - UPS, FedEx, USPS, Amazon. Interactive CLI with Gmail integration.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -32,11 +32,11 @@
32
32
  "license": "MIT",
33
33
  "repository": {
34
34
  "type": "git",
35
- "url": "https://github.com/vvanessaww/pkg-tracker.git"
35
+ "url": "https://github.com/vvanessaww/pkg-track.git"
36
36
  },
37
- "homepage": "https://github.com/vvanessaww/pkg-tracker#readme",
37
+ "homepage": "https://github.com/vvanessaww/pkg-track#readme",
38
38
  "bugs": {
39
- "url": "https://github.com/vvanessaww/pkg-tracker/issues"
39
+ "url": "https://github.com/vvanessaww/pkg-track/issues"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=14.0.0"