Skip to content

Commit 7beb5df

Browse files
committed
Add npm package metadata (repository, homepage, bugs, keywords)
All 7 published packages now include repository, homepage, bugs, keywords, and description fields so npm pages link back to GitHub and are discoverable via search.
1 parent 559d439 commit 7beb5df

8 files changed

Lines changed: 127 additions & 0 deletions

File tree

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"type": "module",
66
"license": "MIT",
77
"description": "Detect device capabilities server-side and enable tailored responses",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/SimplyLiz/DeviceRouter.git"
11+
},
12+
"homepage": "https://github.com/SimplyLiz/DeviceRouter#readme",
13+
"bugs": {
14+
"url": "https://github.com/SimplyLiz/DeviceRouter/issues"
15+
},
816
"scripts": {
917
"build": "pnpm -r run build",
1018
"test": "vitest run",

packages/middleware-express/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "@device-router/middleware-express",
33
"version": "0.3.0",
44
"type": "module",
5+
"description": "Express middleware for DeviceRouter — device classification and rendering hints per request",
56
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/SimplyLiz/DeviceRouter.git",
10+
"directory": "packages/middleware-express"
11+
},
12+
"homepage": "https://github.com/SimplyLiz/DeviceRouter/tree/main/packages/middleware-express#readme",
13+
"bugs": {
14+
"url": "https://github.com/SimplyLiz/DeviceRouter/issues"
15+
},
16+
"keywords": [
17+
"device-router",
18+
"express",
19+
"middleware",
20+
"device-detection",
21+
"server-side-rendering"
22+
],
623
"main": "./dist/index.js",
724
"types": "./dist/index.d.ts",
825
"exports": {

packages/middleware-fastify/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "@device-router/middleware-fastify",
33
"version": "0.3.0",
44
"type": "module",
5+
"description": "Fastify plugin for DeviceRouter — device classification and rendering hints per request",
56
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/SimplyLiz/DeviceRouter.git",
10+
"directory": "packages/middleware-fastify"
11+
},
12+
"homepage": "https://github.com/SimplyLiz/DeviceRouter/tree/main/packages/middleware-fastify#readme",
13+
"bugs": {
14+
"url": "https://github.com/SimplyLiz/DeviceRouter/issues"
15+
},
16+
"keywords": [
17+
"device-router",
18+
"fastify",
19+
"fastify-plugin",
20+
"device-detection",
21+
"server-side-rendering"
22+
],
623
"main": "./dist/index.js",
724
"types": "./dist/index.d.ts",
825
"exports": {

packages/middleware-hono/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "@device-router/middleware-hono",
33
"version": "0.3.0",
44
"type": "module",
5+
"description": "Hono middleware for DeviceRouter — device classification and rendering hints, edge-compatible",
56
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/SimplyLiz/DeviceRouter.git",
10+
"directory": "packages/middleware-hono"
11+
},
12+
"homepage": "https://github.com/SimplyLiz/DeviceRouter/tree/main/packages/middleware-hono#readme",
13+
"bugs": {
14+
"url": "https://github.com/SimplyLiz/DeviceRouter/issues"
15+
},
16+
"keywords": [
17+
"device-router",
18+
"hono",
19+
"middleware",
20+
"edge",
21+
"device-detection"
22+
],
623
"main": "./dist/index.js",
724
"types": "./dist/index.d.ts",
825
"exports": {

packages/middleware-koa/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "@device-router/middleware-koa",
33
"version": "0.3.0",
44
"type": "module",
5+
"description": "Koa middleware for DeviceRouter — device classification and rendering hints per request",
56
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/SimplyLiz/DeviceRouter.git",
10+
"directory": "packages/middleware-koa"
11+
},
12+
"homepage": "https://github.com/SimplyLiz/DeviceRouter/tree/main/packages/middleware-koa#readme",
13+
"bugs": {
14+
"url": "https://github.com/SimplyLiz/DeviceRouter/issues"
15+
},
16+
"keywords": [
17+
"device-router",
18+
"koa",
19+
"middleware",
20+
"device-detection",
21+
"server-side-rendering"
22+
],
623
"main": "./dist/index.js",
724
"types": "./dist/index.d.ts",
825
"exports": {

packages/probe/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "@device-router/probe",
33
"version": "0.3.0",
44
"type": "module",
5+
"description": "Lightweight (~1 KB gzipped) client-side probe for collecting device capability signals",
56
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/SimplyLiz/DeviceRouter.git",
10+
"directory": "packages/probe"
11+
},
12+
"homepage": "https://github.com/SimplyLiz/DeviceRouter/tree/main/packages/probe#readme",
13+
"bugs": {
14+
"url": "https://github.com/SimplyLiz/DeviceRouter/issues"
15+
},
16+
"keywords": [
17+
"device-detection",
18+
"browser-signals",
19+
"client-probe",
20+
"lightweight",
21+
"device-capabilities"
22+
],
623
"main": "./dist/index.js",
724
"types": "./dist/index.d.ts",
825
"exports": {

packages/storage/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "@device-router/storage",
33
"version": "0.3.0",
44
"type": "module",
5+
"description": "Storage adapters (memory, Redis) for persisting device profiles in DeviceRouter",
56
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/SimplyLiz/DeviceRouter.git",
10+
"directory": "packages/storage"
11+
},
12+
"homepage": "https://github.com/SimplyLiz/DeviceRouter/tree/main/packages/storage#readme",
13+
"bugs": {
14+
"url": "https://github.com/SimplyLiz/DeviceRouter/issues"
15+
},
16+
"keywords": [
17+
"device-router",
18+
"storage-adapter",
19+
"redis",
20+
"session-storage",
21+
"device-profiles"
22+
],
623
"main": "./dist/index.js",
724
"types": "./dist/index.d.ts",
825
"exports": {

packages/types/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "@device-router/types",
33
"version": "0.3.0",
44
"type": "module",
5+
"description": "Core types, device classification, and rendering hint derivation for DeviceRouter",
56
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/SimplyLiz/DeviceRouter.git",
10+
"directory": "packages/types"
11+
},
12+
"homepage": "https://github.com/SimplyLiz/DeviceRouter/tree/main/packages/types#readme",
13+
"bugs": {
14+
"url": "https://github.com/SimplyLiz/DeviceRouter/issues"
15+
},
16+
"keywords": [
17+
"device-detection",
18+
"device-classification",
19+
"rendering-hints",
20+
"server-side",
21+
"typescript"
22+
],
623
"main": "./dist/index.js",
724
"types": "./dist/index.d.ts",
825
"exports": {

0 commit comments

Comments
 (0)