MCPcopy Index your code
hub / github.com/EwenQuim/entropy

github.com/EwenQuim/entropy @v1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.0 ↗ · + Follow
25 symbols 67 edges 5 files 3 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Entropy logo

Paranoïd about having secrets leaked in your huge codebase? Entropy is here to help you find them!

Entropy

Go Reference Go Report Card

Entropy is a CLI tool that will scan your codebase for high entropy lines, which are often secrets.

Installation

From source with Go (preferred)

go install github.com/EwenQuim/entropy@latest
entropy

# More options
entropy -h
entropy -top 20 -ext go,py,js
entropy -top 5 -ignore-ext min.js,pdf,png,jpg,jpeg,zip,mp4,gif my-folder my-file1 my-file2

or in one line

go run github.com/EwenQuim/entropy@latest

With brew

brew install ewenquim/repo/entropy
entropy

# More options
entropy -h
entropy -top 20 -ext go,py,js
entropy -top 5 -ignore-ext min.js,_test.go,pdf,png,jpg my-folder my-file1 my-file2

With docker

docker run --rm -v $(pwd):/data ewenquim/entropy /data

# More options
docker run --rm -v $(pwd):/data ewenquim/entropy -h
docker run --rm -v $(pwd):/data ewenquim/entropy -top 20 -ext go,py,js /data
docker run --rm -v $(pwd):/data ewenquim/entropy -top 5 /data/my-folder /data/my-file

The docker image is available on Docker Hub.

The -v option is used to mount the current directory into the container. The /data directory is the default directory where the tool will look for files. Don't forget to add /data at the end of the command, otherwise the tool will search inside the container, not your local filesystem.

My other projects

  • Fuego: A Go framework that generates OpenAPI documentation from your codebase.
  • Renpy-Graphviz: A tool to generate a graph of the Ren'Py game engine's screens and labels.

Core symbols most depended-on inside this repo

isFileHidden
called by 10
main.go
isFileIncluded
called by 10
main.go
entropy
called by 9
main.go
removeEmptyStrings
called by 9
main.go
NewEntropies
called by 7
main.go
Add
called by 5
main.go
readFile
called by 5
main.go
outputText
called by 1
main.go

Shape

Function 22
Struct 2
Method 1

Languages

Go92%
TypeScript4%
Python4%

Modules by API surface

main.go13 symbols
main_test.go9 symbols
testdata/random.js1 symbols
testdata/folder/fileB.go1 symbols
testdata/folder/fileA.py1 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page