MCPcopy Index your code
hub / github.com/dsecuredcom/yataf

github.com/dsecuredcom/yataf @1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.0 ↗ · + Follow
15 symbols 36 edges 11 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

File analyzer

Simple tool to analyze a files/urls content - it was primarily created to analyze the content of a javascript file against a given set of regular expressions.

Make

go build -o dist/FileAnalyzer main.go

Usage

Analyze a file using all regular expressions

./FileAnalyzer -file some/file.js

Analyze an url using all regular expressions but limit the extracted content to 1000 characters (per regular expression)

./FileAnalyzer -file https://an.url/file.js -char-limit 1000 -types all

Analyze a file using only regular expressions of type "credentials"

./FileAnalyzer -file some/file.js -types credentials

Types

  • "all" (default)
  • "credentials"
  • "urls-paths"

Good to know

  • There is a hard coded list of negative entries.
  • Tested @ Ubuntu 22.10 (should work on windows as well)
  • Developed with Go 1.19

WIP

As always this is a WIP, there are some todos, optimizations and so on!

Core symbols most depended-on inside this repo

GetContentOfLocalFile
called by 2
pkg/fetch/local.go
AnalyzeContent
called by 2
pkg/analyze/analyze.go
IsTypeAllowed
called by 2
pkg/config/regexes.go
GetContentOfRemoteFile
called by 1
pkg/fetch/remote.go
GetArguments
called by 1
pkg/general/args.go
Contains
called by 1
pkg/analyze/analyze.go
GetRegExConfig
called by 1
pkg/config/regexes.go
GetNegativeExtractions
called by 1
pkg/config/negative-extractions.go

Shape

Function 10
Struct 5

Languages

Go100%

Modules by API surface

pkg/struct/results.go2 symbols
pkg/struct/regex.go2 symbols
pkg/config/regexes.go2 symbols
pkg/analyze/analyze.go2 symbols
pkg/struct/config.go1 symbols
pkg/general/args.go1 symbols
pkg/fetch/remote.go1 symbols
pkg/fetch/local.go1 symbols
pkg/config/negative-extractions.go1 symbols
pkg/analyze/analyze_test.go1 symbols
main.go1 symbols

For agents

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

⬇ download graph artifact