New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

go-mirofish

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

go-mirofish

go-mirofish - lightweight and local-first swarm intelligence engine

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source
go-mirofish logo

go-mirofish, lightweight and local-first

GitHub Stars License: AGPL-3.0 Go Version GitHub Sponsors Buy Me A Coffee X go-mirofish - Fast local Go AI swarm engine – predict anything with agents | Product Hunt Upload documents, describe what you want to predict, and get a full simulation report on your laptop.

Public preview (Vercel): go-mirofish.vercel.app. Custom domain go.mirofish.ai is pending (subdomain access with the domain holder is still in progress).

[!NOTE] go-mirofish is a fork of MiroFish with the same five-step product workflow (graph → environment → simulation → report → interaction). This repository replaces the original Python/Flask control plane and runtime with a Go gateway, optional OASIS-style simulation in-process, and a Vue UI (Vite in development, static assets in the release image).

Project direction: The entire public API, simulation orchestration, and benchmarks run in Go. There is no Python process in the product path. The default developer flow is make up (Docker gateway on :3000) then npm run dev (Vite on :5173). GET /health returns JSON with stack metadata and a runtime object.

What go-mirofish vs MiroFish

MiroFish (upstream)go-mirofish (this repo)
Control planePython / Flask (plus JS frontend)Go (gateway/) — all /api/* routes
Local devPython venv, Flask, often multi-serviceDocker gateway + local Vite (make up + npm run dev)
Simulation workerPython-side integrationGo-native worker in the gateway process
Benchmarks & examplesMixed scriptsGo go-mirofish-examples + bench tools + mirofish-hybrid helpers
Product PythonRequired on the hot pathRemoved (no backend/.venv in this tree)
Design goalFull MiroFish upstream feature setLocal-first: lower moving parts, one gateway binary, fewer host dependencies

[!NOTE] RAM/startup “targets” depend on model provider, graph size, and simulation profile. For supported setup, see Installation.

Quick start

Canonical development: Go gateway in Docker on :3000; Vue locally via Vite on :5173. You need Docker, Node 18+, and a one-time npm run setup.

  • Clone

    git clone https://github.com/go-mirofish/go-mirofish.git
    cd go-mirofish
    
  • Configure and install

    cp .env.example .env
    npm run setup
    

    Edit .env and set LLM_API_KEY and ZEP_API_KEY.

  • Start the API (Docker)

    make up
    
  • Start the UI (local — second terminal)

    npm run dev
    

All-in-one Docker image (static UI inside the container, no npm run dev):
make up-release (or docker compose -f docker-compose.release.yml up -d --build) — then use http://localhost:3000 for both UI and API. See Installation.

[!IMPORTANT] You need LLM_API_KEY and ZEP_API_KEY for the default cloud path. For local LLMs or other OpenAI-compatible providers, see Ollama setup and OpenAI-compatible providers.

How it works (5 steps)

  • Graph building: upload seed documents; build the knowledge graph
  • Environment setup: extract entities, personas, and agent configuration
  • Simulation: run the multi-agent social simulation
  • Report generation: produce an analysis report from the simulated world
  • Deep interaction: chat with agents and the report assistant

Showcase Proof

1. Live gateway benchmark (captured run — see docs/report/benchmark-report.md):

ProfileConcurrencyRequestsThroughput (rps)Error ratep50 (ms)p95 (ms)p99 (ms)
load849649.210.00001.5013.8921.96
stress161984198.390.00001.912.744.41
soak459619.870.00001.211.602.80

2. Bundled stack proof (docs UI fixture — docs/bundled-benchmarks/live-stack__hybrid__latest.json):

  • Gateway + stress: 100/100 successes; p50 9.15 ms, p95 27 ms (fields in the JSON).
  • benchmark.summary includes project_id, graph_id, simulation_id, report_id and completed statuses for simulation and report.

3. Example runner (small profile, deterministic local runs) — from committed *__small__latest.json:

ExampleProfileEvalStartup (ms)Runtime (ms)Primary artifacts
Product Launch PR War Roomsmallpass1.052.63risk_report.json
Hyper-Local Urban Planningsmallpass1.058.86coalition_highway.json, coalition_park.json
Zero-Day Cyber Incident Drillsmallpass1.0610.25incident_report.json
De-Fi Sentiment Stress-Testsmallpass1.052.61liquidation_cascade_forecast.json
Lost Ending Literary Simulatorsmallpass1.059.69draft_ending.json, draft_ending.txt

Regenerate: load/stress table → make benchmark-live. Merge live stack into bundled JSON → cd gateway && go run ./cmd/mirofish-hybrid merge-bundled.

Examples & Benchmarks

Run these from the repository root (they invoke go with gateway/ on the module path).

Example templates (local deterministic runner)

TaskCommand
List example keysgo run ./gateway/cmd/go-mirofish-examples --list
Run one examplego run ./gateway/cmd/go-mirofish-examples --example product-launch-war-room --profile medium
Smoke all (small)go run ./gateway/cmd/go-mirofish-examples --all --smoke-only --profile small
Bench all (medium)go run ./gateway/cmd/go-mirofish-examples --all --bench-only --profile medium

HTTP benchmark & wiring (live gateway on :3000)

TaskCommand
Live load + stress + soak + Markdown reportmake benchmark-live (alias for go run ./cmd/mirofish-hybrid live-benchmark in gateway/)
HTTP benchmark only (gateway already up)make benchmark or make benchmark-run
Full server-bench (Docker up + wait + bench)make server-bench
Every route / contract reportmake api-wiring-report

mirofish-hybrid (Go; replaces old scripts/hybrid/*)

SubcommandPurpose
cd gateway && go run ./cmd/mirofish-hybrid live-benchmarkBuild gateway + frontend/dist, run local gateway, write benchmark/.../live-benchmark.json + docs/report/benchmark-report.md
cd gateway && go run ./cmd/mirofish-hybrid merge-bundledMerge live stack fields into docs/bundled-benchmarks/*__*__latest.json
cd gateway && go run ./cmd/mirofish-hybrid stress-probeConcurrent /health probe (JSON to stdout)
cd gateway && go run ./cmd/mirofish-hybrid api-smokeFull API walk (ontology → report); needs real keys / services

npm helper: bash scripts/dev/benchmark.sh live|merge-bundled|smoke|examples|benchmark forwards to the same tools.

Headless SDK

The repository now exposes an embeddable Go package for “import and run” integrations:

Minimal usage:

package main

import (
  "context"
  "log"

  "github.com/go-mirofish/go-mirofish/gateway/sdk/headless"
)

func main() {
  if err := headless.Run(context.Background()); err != nil {
    log.Fatal(err)
  }
}

For existing Go services that want to mount go-mirofish under their own mux, use headless.New(...) and reuse app.Handler().

🌐 Live Demo

📸 Screenshots


Home / entry

Simulation run

Report generation

Report timeline / tools

Simulation history

Deep interaction

Split: graph, workbench & system terminal

Graph view & node details

Step 5 workbench: prediction report & interactive tools

Go Stack

  • Go owns the entire control plane, API surface, simulation worker, example suite, benchmark suite, provider layer, memory layer, and route orchestration
  • Python backend is fully removed from the product path
  • Development: Vue + Vite on :5173 against the Docker gateway
  • Release image: static Vue in the release Docker stage (docker-compose.release.yml) when you need a single container without local Node

Hardware compatibility

DeviceRAMWorks?
Desktop / laptop8GBYes
Desktop / laptop4GBYes (smaller simulations)
Raspberry Pi 54GBARM64-ready; pending on-device validation
Raspberry Pi 44GBARM64-ready; likely tight headroom, pending on-device validation

[!WARNING] Large graphs, long simulations, or heavy models can exceed 4GB systems. Start with short runs and smaller seeds.

Contributing

Issues and PRs are welcome. Use this repo for go-mirofish changes; upstream product discussion stays with MiroFish. Start with CONTRIBUTING.md and docs/contributing/README.md.

License

AGPL-3.0.

Acknowledgments

Derived from MiroFish. Simulation is powered by OASIS. Thanks to the CAMEL-AI team.

FAQs

Package last updated on 08 May 2026

Related posts