samey-cli 0.0.0-stage → 0.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/LICENSE +21 -0
  3. package/README.md +224 -2
  4. package/dist/ai/local-model.d.ts +26 -0
  5. package/dist/ai/local-model.js +91 -0
  6. package/dist/audit.d.ts +18 -0
  7. package/dist/audit.js +250 -0
  8. package/dist/cli.d.ts +2 -0
  9. package/dist/cli.js +166 -0
  10. package/dist/config.d.ts +34 -0
  11. package/dist/config.js +40 -0
  12. package/dist/index.d.ts +6 -0
  13. package/dist/index.js +5 -0
  14. package/dist/render/crawl.d.ts +34 -0
  15. package/dist/render/crawl.js +337 -0
  16. package/dist/render/extract.d.ts +8 -0
  17. package/dist/render/extract.js +441 -0
  18. package/dist/render/interact.d.ts +8 -0
  19. package/dist/render/interact.js +76 -0
  20. package/dist/render/network.d.ts +33 -0
  21. package/dist/render/network.js +92 -0
  22. package/dist/render/robots.d.ts +8 -0
  23. package/dist/render/robots.js +61 -0
  24. package/dist/render/server.d.ts +15 -0
  25. package/dist/render/server.js +174 -0
  26. package/dist/report/html.d.ts +2 -0
  27. package/dist/report/html.js +368 -0
  28. package/dist/report/prompt.d.ts +12 -0
  29. package/dist/report/prompt.js +62 -0
  30. package/dist/report/terminal.d.ts +6 -0
  31. package/dist/report/terminal.js +73 -0
  32. package/dist/rules/content.d.ts +8 -0
  33. package/dist/rules/content.js +227 -0
  34. package/dist/rules/functional.d.ts +17 -0
  35. package/dist/rules/functional.js +467 -0
  36. package/dist/rules/helpers.d.ts +11 -0
  37. package/dist/rules/helpers.js +29 -0
  38. package/dist/rules/index.d.ts +13 -0
  39. package/dist/rules/index.js +100 -0
  40. package/dist/rules/normalize.d.ts +18 -0
  41. package/dist/rules/normalize.js +114 -0
  42. package/dist/rules/static.d.ts +9 -0
  43. package/dist/rules/static.js +314 -0
  44. package/dist/rules/types.d.ts +39 -0
  45. package/dist/rules/types.js +16 -0
  46. package/dist/rules/visual.d.ts +15 -0
  47. package/dist/rules/visual.js +463 -0
  48. package/dist/score.d.ts +31 -0
  49. package/dist/score.js +66 -0
  50. package/dist/security/fetch.d.ts +26 -0
  51. package/dist/security/fetch.js +86 -0
  52. package/dist/security/net-policy.d.ts +46 -0
  53. package/dist/security/net-policy.js +178 -0
  54. package/dist/static/scan.d.ts +15 -0
  55. package/dist/static/scan.js +191 -0
  56. package/dist/types.d.ts +316 -0
  57. package/dist/types.js +1 -0
  58. package/dist/util/color.d.ts +25 -0
  59. package/dist/util/color.js +180 -0
  60. package/dist/util/text.d.ts +22 -0
  61. package/dist/util/text.js +106 -0
  62. package/package.json +69 -4
package/package.json CHANGED
@@ -1,6 +1,71 @@
1
1
  {
2
2
  "name": "samey-cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Find what makes your AI-built site look like every other one. A local CLI that audits rendered pages for stock patterns, broken behaviour, and accessibility gaps, with evidence and fix prompts.",
5
+ "scripts": {
6
+ "build": "tsc -p tsconfig.build.json",
7
+ "dev": "tsx src/cli.ts",
8
+ "typecheck": "tsc --noEmit",
9
+ "test": "vitest run",
10
+ "test:watch": "vitest",
11
+ "prepublishOnly": "npm run build && npm test"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/azkaiftikhar01/samey.git"
16
+ },
17
+ "keywords": [
18
+ "ai",
19
+ "claude-code",
20
+ "cursor",
21
+ "codex",
22
+ "vibe-coding",
23
+ "design",
24
+ "ui",
25
+ "lint",
26
+ "audit",
27
+ "playwright",
28
+ "accessibility",
29
+ "website",
30
+ "cli"
31
+ ],
32
+ "author": "Azka Iftikhar",
33
+ "license": "MIT",
34
+ "type": "module",
35
+ "bugs": {
36
+ "url": "https://github.com/azkaiftikhar01/samey/issues"
37
+ },
38
+ "homepage": "https://github.com/azkaiftikhar01/samey#readme",
39
+ "dependencies": {
40
+ "commander": "^15.0.0",
41
+ "picocolors": "^1.1.1",
42
+ "playwright": "^1.64.1"
43
+ },
44
+ "devDependencies": {
45
+ "@types/node": "^26.6.5",
46
+ "tsx": "^4.23.15",
47
+ "typescript": "^7.0.2",
48
+ "vitest": "^5.0.5"
49
+ },
50
+ "bin": {
51
+ "samey": "dist/cli.js"
52
+ },
53
+ "exports": {
54
+ ".": {
55
+ "types": "./dist/index.d.ts",
56
+ "default": "./dist/index.js"
57
+ }
58
+ },
59
+ "files": [
60
+ "dist",
61
+ "README.md",
62
+ "LICENSE",
63
+ "CHANGELOG.md"
64
+ ],
65
+ "engines": {
66
+ "node": ">=20"
67
+ },
68
+ "publishConfig": {
69
+ "access": "public"
70
+ }
71
+ }