Skip to content

Sanity helps you review AI-generated code, restructure vibe-coded apps, and navigate unfamiliar codebases with confidence.

License

Notifications You must be signed in to change notification settings

LegacyCodeHQ/sanity

Repository files navigation

Sanity (experimental)

License Release

Sanity helps you review AI-generated code, restructure vibe-coded apps, and navigate unfamiliar codebases with confidence.

Visuals

Go Fig. 1: Relationships between impacted files are shown and tests are highlighted in green.

Kotlin Fig. 2: New files are marked with a 🪴 emoji.

Supported Languages

  • Dart
  • Go
  • Kotlin
  • TypeScript

Quick Start

Installation

Install on Linux and Mac using Homebrew:

brew install LegacyCodeHQ/tap/sanity

For other installation methods (pre-built binaries, build from source, Go install), see the Installation Guide.

Usage

Commands

sanity graph

Generate dependency graphs for Dart and Go files.

Flags:

Flag Description Notes
--repo, -r Git repository path Default: "."
--commit, -c Git commit to analyze
--format, -f Output format (dot, json) Default: "dot"

Examples:

# Analyze uncommitted files in current repository (most common use case)
sanity graph

# Output dependency graph in JSON format
sanity graph --format=json

# Analyze files changed in a specific commit
sanity graph --commit 8d4f78

# Analyze uncommitted files in a different repository
sanity graph --repo /path/to/repo --commit HEAD~1

# Analyze specific files directly
sanity graph --input file1.dart,file2.dart,file3.dart

Help

  • List all commands: sanity --help
  • Command-specific help: sanity <command> --help
  • Help command alias: sanity help <command>

About

Sanity helps you review AI-generated code, restructure vibe-coded apps, and navigate unfamiliar codebases with confidence.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •