@aigrc/dashboard
v0.1.1
Published
Enterprise dashboard for AIGRC - AI Governance, Risk, and Compliance
Maintainers
Readme
@aigrc/dashboard
Enterprise dashboard for AI Governance, Risk, and Compliance (AIGRC).
Overview
This package provides a complete enterprise dashboard UI for the AIGRC platform, including components for:
- Asset Management: Create, view, and manage AI asset cards
- Detection Results: View framework detection scan results
- Compliance Tracking: Monitor compliance status across multiple standards
- Runtime Governance: Monitor and control AI agents via AIGOS integration
- Policy Management: Create and enforce governance policies
Installation
pnpm add @aigrc/dashboardQuick Start
import { createAigrcClient, AuthProvider } from '@aigrc/dashboard';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
// Initialize the API client
createAigrcClient({
baseUrl: 'https://api.aigrc.io',
apiKey: 'your-api-key',
});
const queryClient = new QueryClient();
function App() {
return (
<QueryClientProvider client={queryClient}>
<AuthProvider>
{/* Your app content */}
</AuthProvider>
</QueryClientProvider>
);
}Architecture
This package is designed to integrate with the AIGRC ecosystem:
┌─────────────────────────────────────────────────────────────┐
│ @aigrc/dashboard │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────────┐ ┌────────────────┐ ┌──────────────┐ │
│ │ Components │ │ Hooks │ │ Contexts │ │
│ │ - UI │ │ - useAssets │ │ - Auth │ │
│ │ - Layout │ │ - useRuntime │ │ - Theme │ │
│ │ - Governance │ │ - useDashboard│ │ │ │
│ └───────┬────────┘ └───────┬────────┘ └──────┬───────┘ │
│ │ │ │ │
│ └───────────────────┼───────────────────┘ │
│ │ │
│ ┌─────────▼─────────┐ │
│ │ AIGRC API Client │ │
│ └─────────┬─────────┘ │
│ │ │
└──────────────────────────────┼───────────────────────────────┘
│
▼
┌────────────────────────────────┐
│ AIGRC Backend │
│ - @aigrc/core (detection) │
│ - @aigos/runtime (governance) │
│ - Policy engine │
└────────────────────────────────┘Components
UI Components
Based on shadcn/ui and Radix primitives:
Button,Card,Badge,TableInput,Select,Dialog,Tabs- Custom governance variants (risk levels, compliance status)
Hooks
React Query-based data fetching:
useAssets()- Asset card CRUD operationsuseDetection()- Framework detection scansuseCompliance()- Compliance assessmentsuseRuntime()- AIGOS agent monitoringuseDashboard()- Dashboard metrics
Contexts
AuthProvider- Authentication state managementPermissionGate- Permission-based renderingRoleGate- Role-based rendering
Theming
The dashboard uses CSS variables for theming. Governance-specific colors:
:root {
--governance-minimal: 142 76% 36%; /* Green */
--governance-limited: 48 96% 53%; /* Yellow */
--governance-high: 25 95% 53%; /* Orange */
--governance-unacceptable: 0 84% 60%; /* Red */
}Development
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build for production
pnpm build
# Run tests
pnpm test
# Type check
pnpm typecheckLicense
Apache-2.0
Related Packages
- @aigrc/core - Core detection and classification engine
- @aigrc/cli - Command-line interface
- @aigos/runtime - Runtime governance layer
