Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@burtson-labs/bandit-engine

Latest version: v2.3.16

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: bburtson09, markymarkburt
1 Stars
0 Forks
75 Versions
7.6K Downloads
TypeScript Repo language

Scan summary

@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.

  • Releases: 75 versions; the latest 5 were published within 2 days (27 and 28 Nov 2026).
  • Findings: No rules fired in version 2.3.16.
  • Downloads: 7,621 downloads.

Versions

75 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 2.3.16

Findings

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.

README

The publisher’s own README, as collected from the registry.

Bandit Engine

An AI chat toolkit built for speed, design, and control. Power branded AI assistants with battle-tested React components and a secure gateway contract.

npm Docs Live Demo TypeScript License: Apache-2.0

Features

  • Plug-and-play React chat, modal, and management surfaces
  • Memory, searchable knowledge, and provider switching behind a secure gateway
  • Full MUI theming, dark mode, and branding controls out of the box
  • Multimodal support (voice, images, documents) with Bandit AI, Ollama, OpenAI, Azure OpenAI, Anthropic, and xAI today — tell us which providers you need next so we can prioritize them
  • CLI scaffolding, sample gateway, and docs to launch in minutes

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.

Bandit package ecosystem

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

Quick Links

Quick Start

CLI Scaffold

Want 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:

  • Vite + React project wired with Chat, ChatModal, and ChatProvider
  • Express gateway that proxies Bandit AI, OpenAI, Azure OpenAI, Anthropic, xAI, or Ollama behind /api
  • Next.js App Router gateway scaffold (in server/next-app/) ready to copy into a Next project
  • Branding + persona config in public/config.json, ready for your logo or prompts

Customize 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 directory

The 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 501 placeholders 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.

CLI Options
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.

Manual setup (existing app, local Ollama)
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.

Playground (Password-Free Preview)

Want to feel the UX without wiring a gateway or signing in? Visit the hosted playground:

  • URL: https://banditailabs.com/playground
  • What you get: Mock streaming answers, conversation starters, and theming preview powered by the built-in PlaygroundProvider.
  • What’s simulated: Responses come from canned scripts – no external API keys, tokens, or backend required.

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.

Getting Started – Plug & Play AI

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.

  1. Add a config.json to your public folder (or host it on a CDN) and point 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.

  1. Wrap your entire app with 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.

Quick Provider Setup

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:

  • Core status & discovery
    • GET /api/health — system health and provider availability
    • GET /api/models and GET /api/models/{provider} — model inventory
    • GET /api/memory — hydrate personal memory when the feature is enabled
  • Chat & text generation
    • POST /api/chat/completions — default provider routing
    • POST /api/{provider}/chat/completions — provider-specific routing (e.g. bandit, openai, azure-openai, anthropic, xai)
    • POST /api/ollama/chat — native Ollama chat format
    • POST /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)
  • Knowledge & vector search (required for memories, knowledge management, and MCP document tools)
    • POST /api/embedding/embed-memory
    • POST /api/embedding/batch-embed-memories
    • POST /api/embedding/embed-document
    • POST /api/embedding/search and POST /api/embedding/search-memories
    • GET /api/embedding/my-memories (with skip/limit)
    • DELETE /api/embedding/memory/{memoryId} and PUT /api/embedding/memory/{memoryId}/pin
    • GET /api/embedding/available-files and GET /api/embedding/files
    • See File Storage API Contract for the companion /file/* routes used to upload and download source documents.
  • Voice & transcription
    • POST /api/tts — synthesize speech
    • GET /api/tts/available-models — advertise available voices
    • POST /api/stt/transcribe — speech-to-text ingestion
  • Feedback & subscriptions (optional but recommended)
    • POST /api/feedback — submit in-app feedback
    • GET /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
Ollama .env Setup

To run the quickstart purely against an Ollama daemon:

  1. Install (or build) the models you want to expose, e.g.:

    ollama pull llava:latest
    ollama pull gemma2:9b-instruct
  2. 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_MODEL to the exact Ollama model tags you have available (gemma, llava, moondream, or your own custom builds). Bandit automatically detects multimodal Ollama models, so using llava, moondream, or other vision-capable variants enables image understanding with no extra code.

Voice Services (TTS/STT)

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)

  • Input: { text: string, voice?: string, speed?: number }
  • Output: Audio file (MP3, WAV, etc.) or streaming audio
  • Compatible with: OpenAI TTS, Azure Speech, Google Cloud TTS, AWS Polly, local TTS servers, or custom implementations

STT Endpoint (POST /api/stt/transcribe)

  • Input: Audio file upload (multipart/form-data)
  • Output: { text: string } or { transcription: string }
  • Compatible with: OpenAI Whisper, Azure Speech, Google Speech, AWS Transcribe, local Whisper servers, or custom implementations

Service Discovery (GET /api/tts/available-models)

  • Output: { models: string[], defaultModel: string, fallbackModel: string }
  • Used for automatic service availability detection and voice model selection

Quickstart note: the generated Express gateway ships these TTS/STT routes as 501 placeholders 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.

  1. Development
  • Use npm link or a monorepo workspace to test locally before publishing.
  • Build with tsup.

Compatibility

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @burtson-labs/bandit-engine

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229