Skip to content
/ dat Public

A cross-platform developer audit utility that prints the contents of all files in a directory and its subdirectories, with optional filters for code, documentation, media, or custom extensions. Includes configurable line limits, output-to-file options, top-file summaries, and first-run bootstrap installation for effortless setup.

License

Notifications You must be signed in to change notification settings

Outer-Void/dat

Repository files navigation

DAT — Developer’s Audit Tool

DAT logo

DAT is a fast, local-first audit engine for codebases: secrets & policy checks, readable reports, and CI-ready outputs—no telemetry, no vendor lock-in.

Author: Outer Void Team, Justadudeinspace
Email: outervoid.blux@gmail.com


Why DAT

  • Readable by design — Markdown and JSON/JSONL outputs that humans and CI both love.
  • Local & reproducible — runs entirely on your machine; deterministic reports.
  • CI/CD and Docker friendly — first-class snippets below.

Features

  • Secrets & credential patterns, policy rules, merge-marker detection
  • Formats: md, json, jsonl, optional pdf export
  • Full-context Markdown (optionally includes code blocks with masked secrets)
  • LRC bridge (Local Repo Compiler) — write .lrc-audit.json next to your build metadata for downstream packaging and provenance.

Quickstart

From source (recommended while 3.x is in flux)

git clone https://github.com/Outer-Void/dat.git
cd dat
chmod +x dat install_deps.sh
./install_deps.sh
./dat                  # default Markdown report in artifacts/report.md
# or run bootstrap direct
dat                    # default report.md generates audit report with main files code base print output (Entire project codebase located within a single document)

Make sure you’re using a venv, install_deps.sh should create/activate first; the script supports it. Permissions errors? chmod +x dat install_deps.sh.

Docker

FROM python:3.11-slim
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
RUN chmod +x dat install_deps.sh
ENTRYPOINT ["./dat"]

Build/run:

docker build -t dat .
docker run -v "$PWD":/scan dat /scan --deep --json report.json

Usage

Basic:

./dat                       # scan current repo → report.md
./dat --json report.json    # machine-readable
./dat --jsonl report.jsonl  # streaming-friendly lines

Signed/verbose runs and combined outputs:

./dat --deep --pdf audit.pdf --json scan.json --sign --verbose

Generate custom output location and doc type:

# From working Dir
dat -o /path/to/custom_label.md
# From any Dir
dat /path/to/project/ -o /path/to/custom_label.pdf
# From working Dir
dat -o /path/to/custom_label.json

Options

  • --report <path>/--json <path>/--jsonl <path> for output selection
  • Markdown can include full code context with masking when configured (default on).

CI/CD Example

- name: Install DAT
  run: |
    git clone https://github.com/Outer-Void/dat.git
    cd dat
    ./install_deps.sh

- name: Security Scan
  run: |
    cd dat
    ./dat --safe --json security-report.json

LRC Integration

LRC is the Local Repo Compiler — DAT can emit an audit next to your LRC build metadata for downstream tooling.

# Example: produce .lrc-audit.json with scan + findings + summary
./dat --from-lrc

Under the hood DAT loads .lrc-build.json and merges it with integration config, then writes .lrc-audit.json (metadata, scan, findings, summary, build context).

Repo link: LRC — Local Repo CompilerOuter-Void/lrc

There was an older README line implying “License & Regulatory Compliance.” That was incorrect; this section corrects it.


Output Formats

  • Markdown (report.md) — human-readable, can include per-file code sections with masked secrets.
  • JSON/JSONL — structured for pipelines; validated in tests via --report.
  • PDF — printable report (requires reportlab).

Troubleshooting

  • Permissions: chmod +x dat install_deps.sh bootstrap.sh
  • Missing deps: pip install --force-reinstall -r requirements.txt (Linux may need libmagic).
  • Termux: termux-setup-storage and clone into ~/storage/shared if needed.

Security & Telemetry

  • No outbound connections; deterministic local outputs.
  • Optional signing (--sign) and append-only audit logs are supported.

Roadmap

  • TUI explorer, richer rule packs, baseline diffs, repair suggestions.

(See docs/ROADMAP.md for the living plan.)


License

MIT — see LICENSE.

About

A cross-platform developer audit utility that prints the contents of all files in a directory and its subdirectories, with optional filters for code, documentation, media, or custom extensions. Includes configurable line limits, output-to-file options, top-file summaries, and first-run bootstrap installation for effortless setup.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project