MCPcopy Index your code
hub / github.com/bugdone/headshotbox

github.com/bugdone/headshotbox @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
2,397 symbols 4,603 edges 85 files 1,185 documented · 49% updated 2y ago0.18.2 · 2019-11-25★ 16436 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Headshot Box

Search engine and stats for your CS:GO replays. Visit https://headshotbox.github.io/ for a visual description of the features.

Development setup newui

cd src/newui
nvm use
npm i
npm run dev

Build newui

cd src/newui
nvm use
npm run build
cp -R dist/spa/* ../../resources/public/

Development Setup

  • bower install
  • build https://github.com/bugdone/demoinfogo-linux and place it in the headshotbox directory
  • lein run (requires leiningen 2)

Check out the wiki for more info.

csdemoparser

Building

Install rustup and run:

cargo build --release -p csdemoparser

The output binaries are in target/release.

Profile-guided Optimization

Using PGO has a significant impact on the speed of csdemoparser, up to a 40% speedup.

rustup component add llvm-tools-preview
cargo install cargo-pgo
cargo pgo run -- -p csdemoparser <replay.dem>
cargo pgo optimize

Extension points exported contracts — how you extend this code

EnumValueOptionsOrBuilder (Interface)
(no doc) [9 implementers]
protosrc/google/protobuf/Descriptor.java
ReadByte (Interface)
(no doc) [2 implementers]
csgo-demo/src/read_to_terminator.rs
ReadExt (Interface)
(no doc) [1 implementers]
cs2-demo/src/read.rs
ProcessEnv (Interface)
(no doc)
src/newui/src/env.d.ts
ServiceOptionsOrBuilder (Interface)
(no doc) [9 implementers]
protosrc/google/protobuf/Descriptor.java
ReadExt (Interface)
(no doc) [1 implementers]
csgo-demo/src/read.rs
ValveBitReader (Interface)
(no doc) [1 implementers]
cs2-demo/src/read.rs
Alert (Interface)
(no doc)
src/newui/src/types/alert.ts

Core symbols most depended-on inside this repo

get
called by 240
csgo-demo/src/entity.rs
build
called by 191
protosrc/google/protobuf/Descriptor.java
getDefaultInstance
called by 165
protosrc/google/protobuf/Descriptor.java
parseFrom
called by 152
protosrc/google/protobuf/Descriptor.java
add
called by 126
parsetest/src/diff.rs
mergeFrom
called by 121
protosrc/google/protobuf/Descriptor.java
clear
called by 84
protosrc/google/protobuf/Descriptor.java
isInitialized
called by 71
protosrc/google/protobuf/Descriptor.java

Shape

Method 2,022
Function 183
Class 127
Interface 36
Enum 29

Languages

Java79%
Rust19%
TypeScript2%

Modules by API surface

protosrc/google/protobuf/Descriptor.java1,896 symbols
cs2-demo/src/entity/fieldpath.rs47 symbols
csgo-demo/src/entity/serverclass.rs42 symbols
cs2-demo/src/entity/decoder.rs32 symbols
cs2-demo/src/entity/send_tables.rs26 symbols
csdemoparser/src/csgo.rs24 symbols
cs2-demo/src/game_event/de.rs24 symbols
resources/public/oldui/js/controllers.js22 symbols
parsetest/src/diff.rs20 symbols
csgo-demo/src/read.rs20 symbols
cs2-demo/src/entity.rs18 symbols
csgo-demo/src/string_table.rs17 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page