@hailbytes/pentest-calculator 1.0.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.
package/index.d.ts ADDED
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Type declarations for @hailbytes/pentest-calculator.
3
+ */
4
+
5
+ export interface PentestInputs {
6
+ targetType: 'web_app' | 'network' | 'mobile' | 'cloud' | 'combined' | string;
7
+ numTargets: number;
8
+ environment: 'production' | 'staging' | 'isolated' | string;
9
+ authTesting: boolean;
10
+ socialEng: boolean;
11
+ testDepth: 'basic' | 'standard' | 'comprehensive' | 'red_team' | string;
12
+ compliance: string[];
13
+ reportType: string;
14
+ remSupport: boolean;
15
+ }
16
+
17
+ export interface PentestResult {
18
+ inputs: PentestInputs;
19
+ days: number;
20
+ costLow: number;
21
+ costHigh: number;
22
+ teamSize: number;
23
+ teamLabel: string;
24
+ teamPills: string[];
25
+ deliverables: string[];
26
+ timestamp: string;
27
+ }
28
+
29
+ /**
30
+ * The custom-element class. Importing this module also registers
31
+ * the `<hailbytes-pentest-calculator>` tag via `customElements.define`.
32
+ *
33
+ * Supported attributes:
34
+ * - `theme="dark"|"light"` (default: `"dark"`)
35
+ * - `branding="off"` hides the "by HailBytes" footer + header badge
36
+ */
37
+ export default class HailbytesPentestCalculator extends HTMLElement {
38
+ static readonly observedAttributes: readonly string[];
39
+ }
40
+
41
+ export { HailbytesPentestCalculator };
42
+
43
+ declare global {
44
+ interface HTMLElementTagNameMap {
45
+ 'hailbytes-pentest-calculator': HailbytesPentestCalculator;
46
+ }
47
+ interface HTMLElementEventMap {
48
+ 'pentest-calculated': CustomEvent<PentestResult>;
49
+ 'pentest-quote-requested': CustomEvent<PentestResult>;
50
+ }
51
+ }
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@hailbytes/pentest-calculator",
3
+ "version": "1.0.0",
4
+ "description": "Zero-dependency web component for scoping and estimating penetration testing engagements. Works in Hugo, React, Vue, or plain HTML.",
5
+ "type": "module",
6
+ "main": "./hailbytes-pentest-calculator.js",
7
+ "module": "./hailbytes-pentest-calculator.js",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "import": "./hailbytes-pentest-calculator.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "types": "./index.d.ts",
16
+ "files": [
17
+ "hailbytes-pentest-calculator.js",
18
+ "index.d.ts",
19
+ "LICENSE",
20
+ "README.md",
21
+ "CHANGELOG.md"
22
+ ],
23
+ "sideEffects": [
24
+ "./hailbytes-pentest-calculator.js"
25
+ ],
26
+ "scripts": {
27
+ "test": "node --test test/smoke.test.mjs"
28
+ },
29
+ "keywords": [
30
+ "pentest",
31
+ "pentest-calculator",
32
+ "penetration-testing",
33
+ "scoping",
34
+ "cybersecurity",
35
+ "security-tools",
36
+ "web-component",
37
+ "custom-element",
38
+ "es-module",
39
+ "zero-dependency",
40
+ "hailbytes",
41
+ "vanilla-js"
42
+ ],
43
+ "author": "HailBytes, LLC (https://hailbytes.com)",
44
+ "license": "MPL-2.0",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/HailBytes/pentest-calculator.git"
48
+ },
49
+ "bugs": {
50
+ "url": "https://github.com/HailBytes/pentest-calculator/issues"
51
+ },
52
+ "homepage": "https://hailbytes.com/asm",
53
+ "engines": {
54
+ "node": ">=18"
55
+ },
56
+ "publishConfig": {
57
+ "access": "public",
58
+ "provenance": true
59
+ }
60
+ }