Add @levkin/playkit v0.1 shared Playwright/API kit
CI / skip-ci-check (push) Successful in 4s
CI / secret-scan (push) Successful in 3s
CI / build-and-test (push) Successful in 10s

Ship browser helpers with public-host guards, ApiClient, structured
logging, Prometheus timings, CI, examples, and ROADMAP for consumers.
This commit is contained in:
2026-07-14 16:04:23 -04:00
parent 6d13661660
commit af12a92eb7
28 changed files with 4089 additions and 2 deletions
+75
View File
@@ -0,0 +1,75 @@
{
"name": "@levkin/playkit",
"version": "0.1.0",
"description": "Shared Playwright + API test kit — browser helpers, API client, logging, performance, Grafana/Prometheus metrics",
"license": "MIT",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./browser": {
"types": "./dist/browser/index.d.ts",
"import": "./dist/browser/index.js",
"require": "./dist/browser/index.cjs"
},
"./api": {
"types": "./dist/api/index.d.ts",
"import": "./dist/api/index.js",
"require": "./dist/api/index.cjs"
}
},
"files": [
"dist",
"dashboards",
"README.md",
"ROADMAP.md",
"LICENSE"
],
"scripts": {
"build": "tsup",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"lint": "tsc --noEmit",
"prepublishOnly": "npm run build",
"example:api": "tsx examples/api/health.example.ts"
},
"peerDependencies": {
"@playwright/test": ">=1.40.0"
},
"peerDependenciesMeta": {
"@playwright/test": {
"optional": true
}
},
"devDependencies": {
"@playwright/test": "^1.52.0",
"@types/node": "^22.15.0",
"tsup": "^8.4.0",
"tsx": "^4.19.0",
"typescript": "^5.8.0",
"vitest": "^3.1.0"
},
"engines": {
"node": ">=20"
},
"repository": {
"type": "git",
"url": "https://git.levkin.ca/ilia/playkit.git"
},
"keywords": [
"playwright",
"e2e",
"api-testing",
"observability",
"grafana",
"prometheus"
]
}