
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
@hololand/inference
Advanced tools
Unified AI inference layer - Local (Ollama/llama.cpp) + BYOK Cloud Providers
Unified AI inference layer for Hololand — Local-first with BYOK cloud fallback.
npm install @hololand/inference
import { createInferenceClient } from '@hololand/inference';
// Create client (local-first by default)
const client = createInferenceClient({
activeProvider: 'local',
local: {
enabled: true,
ollamaUrl: 'http://localhost:11434',
defaultModel: 'brittney-v4-expert:latest',
},
});
// Initialize providers
await client.initialize();
// Chat with AI
const response = await client.chat({
messages: [
{ role: 'user', content: 'Create a HoloScript scene with a spinning cube' }
],
});
console.log(response.content);
// Stream responses for real-time output
for await (const chunk of client.chatStream({ messages })) {
process.stdout.write(chunk.content);
}
Configure your own API keys to use cloud providers:
const client = createInferenceClient({
activeProvider: 'openai',
providers: {
openai: {
type: 'openai',
apiKey: 'sk-...',
enabled: true,
},
anthropic: {
type: 'anthropic',
apiKey: 'sk-ant-...',
enabled: true,
},
google: {
type: 'google',
apiKey: 'AIza...',
enabled: true,
},
grok: {
type: 'grok',
apiKey: 'grok-...',
enabled: true,
},
},
fallbackToCloud: true,
});
| Provider | Type | Description |
|---|---|---|
| Ollama | local | Local LLM inference (FREE) |
| OpenAI | openai | GPT-4, GPT-4o, GPT-4o-mini |
| Anthropic | anthropic | Claude 4, Claude 3.5 |
google | Gemini 2.0, Gemini Pro | |
| Grok | grok | xAI Grok-3, Grok-2 |
| Azure | azure | Azure OpenAI Service |
| InfinityAssistant | infinityassistant | InfinityAssistant.io cloud |
Optimized for HoloScript code generation:
import { BRITTNEY_MODELS } from '@hololand/inference';
// Local models (Ollama GGUF)
BRITTNEY_MODELS.local.expert // 'brittney-v4-expert:latest'
BRITTNEY_MODELS.local.holoscript // 'brittney-v1:latest'
BRITTNEY_MODELS.local.general // 'brittney-v2:latest'
// Cloud fine-tuned (OpenAI)
BRITTNEY_MODELS.cloud.holoscript // Fine-tuned GPT-4o-mini for HoloScript
BRITTNEY_MODELS.cloud.general // Fine-tuned for general Brittney tasks
Pass scene context for better code generation:
const response = await client.chat({
messages: [{ role: 'user', content: 'Add physics to the orb' }],
holoContext: {
currentScene: 'demo.holo',
holograms: [
{ id: 'orb1', type: 'sphere', position: { x: 0, y: 1.5, z: -2 } }
],
recentCommands: ['create orb', 'set color cyan']
}
});
Built-in bridge for spatial fleet visualization:
import { FleetVisualizationBridge, generateFleetVisualizationHoloScript } from '@hololand/inference';
const bridge = new FleetVisualizationBridge();
// Generate HoloScript from fleet data
const holoCode = generateFleetVisualizationHoloScript(fleetData);
const status = await client.getStatus();
console.log(status.ready); // true if any provider available
console.log(status.activeProvider); // 'local'
console.log(status.providers); // Array of provider statuses
console.log(status.localModelDownloaded); // true if Brittney model ready
createInferenceClient(settings?)Create a new inference client with optional settings.
client.initialize()Initialize all configured providers. Call once before using.
client.chat(request)Send a chat completion request. Returns InferenceResponse.
client.chatStream(request)Stream chat responses. Returns AsyncIterable<StreamChunk>.
client.configureProvider(type, config)Configure or update a BYOK provider at runtime.
client.getStatus()Get status of all configured providers.
import type {
ProviderType,
ChatMessage,
InferenceRequest,
InferenceResponse,
StreamChunk,
InferenceSettings,
} from '@hololand/inference';
MIT © Brian Joseph
FAQs
Unified AI inference layer - Local (Ollama/llama.cpp) + BYOK Cloud Providers
We found that @hololand/inference demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.