Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
'use client';
/**
* DemoBanner — top-of-page strip rendered on a public demo deployment.
*
* Sits inside `AppShell` above the TopBar so it covers every authenticated
* page. Renders nothing when `NEXT_PUBLIC_DEMO_MODE !== 'true'`, so self-hosted
* deployments never see it.
*
* Accessibility: announced via role="status" so screen readers pick up the
* "writes are disabled" message at page load. Not dismissible — visitors have
* to know writes will 403, otherwise they'll think the app is broken.
*/
import { isDemoMode, demoBannerMessage } from '@/lib/demoMode';
import { docs } from '@/lib/docs';
interface DemoBannerProps {
/**
* The deployment's answer, resolved server-side in `app/(app)/layout.tsx`
* so it reflects the running container rather than the build. Falls back to
* the compiled value when the banner is mounted outside that layout, as the
* stories and tests do.
*/
demoMode?: boolean;
}
export function DemoBanner({ demoMode }: DemoBannerProps = {}) {
if (!(demoMode ?? isDemoMode())) return null;
return (
<div
role="status"
aria-live="polite"
className="
fixed top-0 left-60 right-0 z-50
flex items-center justify-center gap-3
h-9 px-4
text-xs font-medium
bg-amber-500/15
text-amber-200
border-b border-amber-500/30
"
>
<span>{demoBannerMessage()}</span>
<span aria-hidden="true" className="text-amber-500/60">
|
</span>
<a
href={docs('quickstart')}
target="_blank"
rel="noopener noreferrer"
className="underline underline-offset-2 hover:text-amber-100 transition-colors"
>
Self-host AiSOC
</a>
</div>
);
}