@harshankur/viewcounter 3.0.0 → 3.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 (2) hide show
  1. package/README.md +15 -10
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,14 +1,16 @@
1
1
  # ViewCounter
2
2
 
3
- [![Documentation](https://img.shields.io/badge/docs-GitHub%20Pages-blueviolet)](https://harshankur.github.io/viewcounter/)
3
+ [![Documentation](https://img.shields.io/badge/docs-viewcounter.harshankur.com-blueviolet)](https://viewcounter.harshankur.com)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
5
  [![CI](https://github.com/harshankur/viewcounter/actions/workflows/ci.yml/badge.svg)](https://github.com/harshankur/viewcounter/actions/workflows/ci.yml)
6
- [![Tests](https://img.shields.io/badge/tests-264%20passing-success)](TEST_REPORT.md)
6
+ [![Tests](https://img.shields.io/badge/tests-343%20passing-success)](TEST_REPORT.md)
7
+ [![npm](https://img.shields.io/npm/v/@harshankur/viewcounter?logo=npm)](https://www.npmjs.com/package/@harshankur/viewcounter)
8
+ [![provenance](https://img.shields.io/badge/provenance-signed-brightgreen?logo=github)](https://www.npmjs.com/package/@harshankur/viewcounter#provenance)
7
9
 
8
10
  A comprehensive Node.js/Express analytics server for tracking website views with MySQL storage, featuring auto-database creation, advanced tracking, and rich analytics.
9
11
 
10
12
  ## 📖 Documentation
11
- Visit our [Interactive Documentation](https://harshankur.github.io/viewcounter/) for detailed API specifications, debugging tips, and integration guides.
13
+ Visit our [Interactive Documentation](https://viewcounter.harshankur.com) for detailed API specifications, debugging tips, and integration guides.
12
14
 
13
15
  ## 🛡️ GDPR Compliant & Privacy-First
14
16
  **100% GDPR Compliant By Design.** This project is built from the ground up to respect user privacy and adhere to modern ethical standards:
@@ -781,13 +783,16 @@ The package is published as **`@harshankur/viewcounter`** (scoped). npm rejects
781
783
  the unscoped `viewcounter` as too similar to the existing `view-counter`; a
782
784
  scope is its own namespace, so the collision does not apply.
783
785
 
784
- Authentication is OIDC via npm Trusted Publishing, so no long-lived token is
785
- stored. **Except once:** npm cannot publish a package's first version over OIDC,
786
- because a trusted publisher is configured on the package's settings page and
787
- that page does not exist until the package does. For the first release only,
788
- publish once locally or set an `NPM_TOKEN` secret, then configure the trusted
789
- publisher (npmjs.com → package → Settings → Trusted Publisher → this repo and
790
- `release.yml`) and delete the secret.
786
+ **No secret is involved.** Authentication is OIDC via npm Trusted Publishing:
787
+ the package is bound to this repository and to `release.yml` specifically, and
788
+ the runner exchanges a short-lived id-token for a registry credential at publish
789
+ time. There is no `NPM_TOKEN` to rotate or leak, and nothing to be caught by
790
+ npm's deprecation of 2FA-bypassing tokens. Every release carries a signed SLSA
791
+ provenance attestation, verifiable with:
792
+
793
+ ```bash
794
+ npm audit signatures
795
+ ```
791
796
 
792
797
  To publish automatically on every version bump instead, uncomment the `push:`
793
798
  trigger in `.github/workflows/release.yml`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@harshankur/viewcounter",
3
3
  "description": "A middleware backend server that registers views to my db server when requested to register a view from my other projects.",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "main": "index.js",
6
6
  "engines": {
7
7
  "node": ">=24"
@@ -60,7 +60,7 @@
60
60
  "bugs": {
61
61
  "url": "https://github.com/harshankur/viewcounter/issues"
62
62
  },
63
- "homepage": "https://harshankur.github.io/viewcounter/",
63
+ "homepage": "https://viewcounter.harshankur.com",
64
64
  "dependencies": {
65
65
  "cors": "^2.8.6",
66
66
  "dotenv": "^17.4.2",