@kavachos/dashboard 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 KavachOS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # @kavachos/dashboard
2
+
3
+ Admin UI for managing agents, permissions, and audit logs.
4
+
5
+ [![npm](https://img.shields.io/npm/v/@kavachos/dashboard)](https://www.npmjs.com/package/@kavachos/dashboard)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @kavachos/dashboard
11
+ ```
12
+
13
+ Peer dependencies: React 19+
14
+
15
+ ## Usage
16
+
17
+ ### Embedded component
18
+
19
+ Mount the dashboard inside your existing React app:
20
+
21
+ ```tsx
22
+ import { KavachDashboard } from "@kavachos/dashboard";
23
+
24
+ export function AdminPage() {
25
+ return (
26
+ <KavachDashboard
27
+ apiUrl="http://localhost:3000"
28
+ />
29
+ );
30
+ }
31
+ ```
32
+
33
+ The component connects to your KavachOS API and renders the full admin interface, including agent management, permission inspection, and audit log queries.
34
+
35
+ ### Standalone server
36
+
37
+ Run the dashboard without a React app using the CLI:
38
+
39
+ ```bash
40
+ npx kavachos dashboard
41
+ # Starts on http://localhost:3100
42
+
43
+ npx kavachos dashboard --port 4000 --api http://localhost:3000
44
+ ```
45
+
46
+ This starts a Hono server that serves the dashboard UI and proxies API requests to your KavachOS backend.
47
+
48
+ ## Options
49
+
50
+ | Prop / Flag | Default | Description |
51
+ |---|---|---|
52
+ | `apiUrl` / `--api` | `http://localhost:3000` | URL of your KavachOS API |
53
+ | `--port` | `3100` | Port for the standalone server |
54
+
55
+ ## Built with
56
+
57
+ - React 19
58
+ - TailwindCSS 4
59
+ - TanStack Query 5
60
+ - Lucide React
61
+
62
+ ## Docs and support
63
+
64
+ - Documentation: [kavachos.com/docs](https://kavachos.com/docs)
65
+ - GitHub: [github.com/kavachos/kavachos](https://github.com/kavachos/kavachos)
66
+
67
+ ## License
68
+
69
+ MIT