Scan your whole stack
Are you using @burtson-labs/bandit-engine?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.3.16
@burtson-labs/bandit-engine was last scanned on 28 Nov 2026 at version 2.3.16. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.3.16 LATEST | 28 Nov 2026 | No rules fired |
| 2.3.14 | 28 Nov 2026 | No rules fired |
| 2.3.13 | 27 Nov 2026 | No rules fired |
| 2.3.12 | 27 Nov 2026 | Not shown |
| 2.3.11 | 27 Nov 2026 | Not shown |
Findings for v2.3.16. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.3.16; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
An AI chat toolkit built for speed, design, and control. Power branded AI assistants with battle-tested React components and a secure gateway contract.
Bandit keeps confidentiality, integrity, and availability front and center: data stays within your routes, answers stay auditable, and the UI falls back gracefully when a provider is unavailable.
This package is the core React engine. Related packages:
| Package | Purpose | Install weight |
|---|---|---|
@burtson-labs/bandit-engine |
React chat, modal, and management UI — this package | Full |
@burtson-labs/bandit-cli |
Quickstart scaffolding CLI — npx @burtson-labs/bandit-cli create |
Minimal (Node.js only) |
@burtson-labs/bandit-themes |
MUI theme pack — use Bandit design tokens without the engine | MUI only |
@burtson-labs/bandit-types |
Gateway contract type definitions — type your own gateway or server | Zero runtime deps |
/docs in this repo)examples/gateway-nodeWant a working playground instantly? Scaffold a Bandit app and gateway in one command:
npx @burtson-labs/bandit-cli create my-bandit-app --provider ollama --yes
cd my-bandit-app && npm install && npm run dev
With Ollama running and one model pulled (ollama pull gemma3:4b), that is the whole setup: no .env, no keys. Drop --provider/--yes to be asked for the provider, name and ports.
What you get out of the box:
Chat, ChatModal, and ChatProvider/apiserver/next-app/) ready to copy into a Next projectpublic/config.json, ready for your logo or promptsCustomize the output with options such as:
--branding-text "Bandit Support" to set the assistant display name--frontend-port 5190 to change the Vite dev server port--gateway-port 9090 to run the sample gateway on an alternate port--yes / --skip-prompts to accept defaults non-interactively--force to overwrite a non-empty directoryThe generated project installs directly from
https://registry.npmjs.org/— no GitHub npm token is required once the package is public.
The scaffolded gateway focuses on Bandit AI/OpenAI/xAI/Ollama chat and model discovery. All advanced routes (file storage uploads, vector embedding, voice, MCP, etc.) are generated as
501placeholders so you can wire them to your own infrastructure. Implement the contracts below before turning on those features in production.
Check out the CLI quick start guide for the full walkthrough, option matrix, and project anatomy.
| Flag | Description | Example |
|---|---|---|
--branding-text <text> |
Set the assistant name shown in the UI. | --branding-text "Bandit Support" |
--frontend-port <port> |
Change the Vite dev server port (default 5183). |
--frontend-port 5190 |
--gateway-port <port> |
Change the sample gateway port (default 8080). |
--gateway-port 9090 |
--yes, --skip-prompts |
Accept defaults without interactive questions. | --yes |
--force |
Overwrite the target directory if it already exists. | --force |
The CLI prints next steps once scaffolding completes, so you can copy-paste and ship immediately.
ollama pull gemma3:4b
npm install @burtson-labs/bandit-engine @mui/material@^7 @emotion/react@^11 @emotion/styled@^11
The engine's peers are React 19, MUI 7 and Emotion 11. React Query, Zustand and the rest ship as engine dependencies; don't install other majors of them next to it. Then start the sample gateway (npm install && npm run dev in examples/gateway-node; keyless on 127.0.0.1:8080, CORS for local origins) and render:
import { ChatProvider, Chat, definePackageSettings } from "@burtson-labs/bandit-engine";
const gateway = "http://localhost:8080/api";
const packageSettings = definePackageSettings({
gatewayApiUrl: gateway,
defaultModel: "gemma3:4b", // exact tag from `ollama list`
brandingConfigUrl: "/config.json",
aiProvider: { type: "gateway", gatewayUrl: gateway, provider: "ollama" },
});
export default function App() {
return (
<ChatProvider packageSettings={packageSettings}>
<div style={{ height: "100vh" }}>
<Chat />
</div>
</ChatProvider>
);
}
public/config.json can be as small as { "branding": { "brandingText": "My Assistant" } }. A React Router is optional. The full walkthrough, with troubleshooting, is docs/01_quickstart.md.
Gateway key. The sample gateway needs no key on a loopback address: a key in browser code would be readable by anyone, so local development doesn't use one. For a shared or remote gateway set GATEWAY_API_KEY (32+ random characters) and add Authorization: Bearer <key> from a server or dev proxy, never from the page; see How the browser authenticates.
Want to feel the UX without wiring a gateway or signing in? Visit the hosted playground:
https://banditailabs.com/playgroundPlaygroundProvider.The playground is ideal for product demos, initial stakeholder reviews, or QA before you connect real providers. When you’re ready to go live, swap the provider back to your gateway for production traffic.
Bandit ships with responsive layouts baked in — the chat surface, management console, and modal all collapse gracefully on phones and tablets. Install it inside a Vite project and you can ship a polished PWA: the package works offline when cached, supports mobile nav patterns, and plays nicely with add-to-home-screen flows.
brandingConfigUrl at it:Host it locally in /public or serve it from a CDN and reference it via brandingConfigUrl.
{
"theme": "bandit-dark",
"branding": {
"brandingText": "Bandit Chat Premium Beta",
"logoBase64": ""
},
"models": [
{ "name": "Bandit-Core", "description": "General purpose model" },
{ "name": "Bandit-Muse", "description": "Creative writing model" }
]
}
No bloated setup. No magic strings. Just drop in your config.json, hook up a few props, and let your AI speak for itself.
ChatProvider to enable Bandit features globally:import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import { CssBaseline, ThemeProvider } from "@mui/material";
import { banditDarkTheme } from "./theme/banditTheme";
import { AppInitializer } from "./app-initializer";
import { ChatProvider } from "@burtson-labs/bandit-engine";
const chatPackageSettings = {
// New Gateway Provider Configuration (Recommended)
aiProvider: {
type: "gateway",
gatewayUrl: import.meta.env.VITE_GATEWAY_API_URL!,
provider: "bandit" // Backend: bandit, openai, azure-openai, anthropic, xai, ollama
},
// Direct Ollama configuration (development only)
// ollamaUrl: import.meta.env.VITE_OLLAMA_URL!,
// Model Configuration
defaultModel: import.meta.env.VITE_DEFAULT_MODEL!,
fallbackModel: import.meta.env.VITE_FALLBACK_MODEL,
gatewayApiUrl: import.meta.env.VITE_GATEWAY_API_URL!,
// Branding and optional overrides
brandingConfigUrl: "/config.json",
// fileStorageApiUrl: import.meta.env.VITE_FILE_STORAGE_API_URL,
// homeUrl: "https://yourapp.com",
// feedbackEmail: "feedback@yourapp.com",
};
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<ThemeProvider theme={banditDarkTheme}>
<CssBaseline />
<AppInitializer />
<ChatProvider packageSettings={chatPackageSettings}>
<App />
</ChatProvider>
</ThemeProvider>
</React.StrictMode>
);
Within minutes, you'll have a fully functional chat interface that can read, speak, and reason – all brandable, themeable, and extensible.
Option 1: Gateway Provider (Recommended)
// Most controlled - all traffic flows through your gateway
// Your gateway can be built in ANY language: Node.js, Python, .NET, Java, PHP, Go, etc.
aiProvider: {
type: "gateway",
gatewayUrl: "https://your-api-gateway.com", // Your backend API
provider: "bandit" // Specify which AI provider to use (bandit, openai, azure-openai, anthropic, xai, ollama)
}
Option 2: Direct Provider (Development)
// Quick start - API keys in frontend (not for production)
aiProvider: {
type: "ollama",
baseUrl: "http://localhost:11434"
}
Gateway Requirements: Implement the endpoints that match the features you turn on:
GET /api/health — system health and provider availabilityGET /api/models and GET /api/models/{provider} — model inventoryGET /api/memory — hydrate personal memory when the feature is enabledPOST /api/chat/completions — default provider routingPOST /api/{provider}/chat/completions — provider-specific routing (e.g. bandit, openai, azure-openai, anthropic, xai)POST /api/ollama/chat — native Ollama chat formatPOST /api/generate — non-chat generation (conversation starters, summaries, etc.)POST /api/{provider}/generate — same contract, but scoped per provider (required for conversation starters to respect Bandit/OpenAI/Azure routing)POST /api/embedding/embed-memoryPOST /api/embedding/batch-embed-memoriesPOST /api/embedding/embed-documentPOST /api/embedding/search and POST /api/embedding/search-memoriesGET /api/embedding/my-memories (with skip/limit)DELETE /api/embedding/memory/{memoryId} and PUT /api/embedding/memory/{memoryId}/pinGET /api/embedding/available-files and GET /api/embedding/files/file/* routes used to upload and download source documents.POST /api/tts — synthesize speechGET /api/tts/available-models — advertise available voicesPOST /api/stt/transcribe — speech-to-text ingestionPOST /api/feedback — submit in-app feedbackGET /subscription/{userId} and PUT /subscription/{userId} — synchronize subscription tiers used by the feature-flag system** Important:** The Bandit Engine automatically routes to provider-specific endpoints:
- Bandit AI →
/api/bandit/chat/completions(OpenAI format, token or API key)- Ollama →
/api/ollama/chat(native Ollama format)- OpenAI/Azure/xAI/Anthropic →
/api/{provider}/chat/completions(OpenAI format)- TTS/STT → Technology-agnostic endpoints that work with any backend implementation
To run the quickstart purely against an Ollama daemon:
Install (or build) the models you want to expose, e.g.:
ollama pull llava:latest
ollama pull gemma2:9b-instruct
Edit the generated .env and point both the frontend and gateway at Ollama:
# Frontend
VITE_GATEWAY_PROVIDER=ollama
VITE_DEFAULT_MODEL=llava:latest # any model installed on your Ollama box
VITE_FALLBACK_MODEL=gemma2:9b-instruct # optional, but handy for text-only fallbacks
# Gateway / server
OLLAMA_URL=http://localhost:11434 # or the remote daemon address
Gateway tip\ Set
VITE_DEFAULT_MODEL/VITE_FALLBACK_MODELto the exact Ollama model tags you have available (gemma,llava,moondream, or your own custom builds). Bandit automatically detects multimodal Ollama models, so usingllava,moondream, or other vision-capable variants enables image understanding with no extra code.
The Bandit Engine supports Text-to-Speech (TTS) and Speech-to-Text (STT) through your gateway API. These services are technology-agnostic - you can implement them using any backend technology:
TTS Endpoint (POST /api/tts)
{ text: string, voice?: string, speed?: number }STT Endpoint (POST /api/stt/transcribe)
{ text: string } or { transcription: string }Service Discovery (GET /api/tts/available-models)
{ models: string[], defaultModel: string, fallbackModel: string }Quickstart note: the generated Express gateway ships these TTS/STT routes as
501placeholders so you can connect your own provider. Voice features remain disabled until you implement them server-side.
See the Gateway API Contract for complete implementation examples in multiple languages.
Use the Management interface to switch providers anytime or migrate from direct to gateway setup.
npm link or a monorepo workspace to test locally before publishing.tsup.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.