MCPcopy Index your code
hub / github.com/dcs-bios/dcs-bios

github.com/dcs-bios/dcs-bios @v0.10.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.10.0 ↗ · + Follow
337 symbols 711 edges 42 files 45 documented · 13%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DCS-BIOS

Repository Structure

  • src/hub-backend: DCS-BIOS Hub backend (written in Go)
  • src/hub-frontend: Web frontend (based on React, written in TypeScript)

Development

To run the backend application:

cd src
.\build_and_run.cmd

To run the frontend application:

cd src/hub-frontend
npm start

Ignore the built-in webserver on port 5010, it can only serve the frontend when it has been built using npm build and moved to the right place. For development, use http://localhost:3000 instead, which runs the webpack development server. It automatically reloads when you change a source file and provides nice error messages.

The frontend will detect that it is being served from port 3000, assume it is in development mode, and still direct API requests to port 5010.

Building a Release

Prerequisites:

Tool Where to download Purpose
go https://golang.org/ The DCS-BIOS Hub is implemented in the Go programming language.
npm https://nodejs.org/ To build the frontend web application, you will need the npm package manager, which is part of node.js.
Wix Toolkit https://wixtoolset.org/releases/ Builds the .msi installer
Sphinx http://www.sphinx-doc.org/ Used to build the documentation

To create an MSI installer, run release-build.cmd from the repository root. Make sure to set the BUILD_VERSION and MSI_VERSION environment variables accordingly:

set BUILD_VERSION=v0.1.2beta3
set MSI_VERSION=0.1.2.3
.\release-build.cmd

Extension points exported contracts — how you extend this code

WebSocketCommand (Interface)
(no doc) [1 implementers]
src/hub-backend/websocketapi/websocketapi.go
KeyValueExportData (Interface)
(no doc) [1 implementers]
src/hub-backend/exportdataparser/kvstore.go
BinaryExportData (Interface)
(no doc)
src/hub-backend/exportdataparser/kvstore.go

Core symbols most depended-on inside this repo

RegisterType
called by 32
src/hub-backend/jsonapi/jsonapi.go
Close
called by 21
src/hub-backend/dcsconnection/dcsconnection.go
RegisterApiCall
called by 19
src/hub-backend/jsonapi/jsonapi.go
apiPost
called by 17
src/hub-frontend/src/ApiConnection.tsx
idCamelCase
called by 16
src/hub-frontend/src/ControlReference.tsx
notifyStateObservers
called by 10
src/hub-backend/pluginmanager/pluginmanager.go
AsUint16
called by 10
src/hub-backend/exportdataparser/exportdataparser.go
setState
called by 8
src/hub-backend/serialconnection/serialconnection.go

Shape

Function 170
Method 90
Struct 57
TypeAlias 13
Class 4
Interface 3

Languages

Go70%
TypeScript29%
Python1%

Modules by API surface

src/hub-frontend/src/ControlReference.tsx39 symbols
src/hub-backend/pluginmanager/pluginmanager.go28 symbols
src/hub-backend/serialconnection/portmanager.go22 symbols
src/hub-backend/dcssetup/dcssetup_windows.go21 symbols
src/hub-backend/exportdataparser/kvstore.go20 symbols
src/hub-backend/luastate/luastate.go17 symbols
src/hub-frontend/src/PluginManager.tsx15 symbols
src/hub-backend/controlreference/controlreference.go15 symbols
src/hub-backend/jsonapi/jsonapi.go13 symbols
src/hub-frontend/src/ExportDataParser.ts10 symbols
src/hub-backend/luastate/hub_module.go10 symbols
src/hub-backend/exportdataparser/exportdataparser.go10 symbols

For agents

$ claude mcp add dcs-bios \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact