Skip to content

AdiPat/tiratana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

84 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tiratana πŸ’Ž

Tiratana is a powerful and simple commandline tool (CLI) that generates useful codebase reports in a single command! Designed to save time and effort, Tiratana helps you uncover architectural insights, design patterns, potential vulnerabilities, and more, all in a minimal and elegant way.


Why Tiratana?

Manually analyzing a codebase is often time-consuming and requires a high level of engineering proficiency. Tiratana streamlines this process by leveraging the power of modern programming and AI advancements to:

  • Provide a quick overview of the codebase.
  • Highlight architectural and design patterns.
  • Detect potential vulnerabilities.
  • Save time for developers, consultants, and teams.
  • Whether you’re reviewing your codebase or analyzing one for a client, Tiratana offers actionable insights in a compact, easy-to-understand markdown report.

Installation

Install Tiratana using npm:

npm install tiratana -g

Custom Environment Variables

If you want to use custom environment variables, you can create a file with the name env in the root directory of your project. The file should contain OPENAI_API_KEY=<your_api_key>.

tiratana -d ./my-codebase --env ./path/to/env/file.env

Usage

Run Tiratana on a codebase:

tiratana -d ./my-project -o report.md -v

Options

  • --directory, -d: The directory to process (required).
  • --outputFile, -o: Specify a file to save the generated report (optional).
  • --verbose, -v: Print verbose logs (default: false).
  • --performanceStats, -p: Display performance statistics (optional).
  • --writePreliminaryAnalysis, -z: Save preliminary analysis to a file (optional).
  • --standardize, -s: Generate a standardized report (optional).
  • --standardizationFile, -f: Use a file for report standardization (optional).
  • --env, -e: Specify an environment file to load (optional).
  • --version: Show the current version of Tiratana.
  • --help: Show help.

Examples

Generate a basic report (output file is autogenerated):

tiratana -d ./my-codebase

Generate a report and save it to a named file:

tiratana -d ./my-codebase -o report.md

Enable verbose logging:

tiratana -d ./my-codebase -v

Generate performance statistics:

tiratana -d ./my-codebase -p

Using custom environment variables:

tiratana -d ./my-codebase --env ./path/to/env/file.env

For Contributors

We welcome contributions! Follow these steps to get started:

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/yourusername/tiratana.git
    cd tiratana
  2. Install dependencies:

    npm install
  3. Build the package:

    npm run build
  4. Start the application:

    npm run start
  5. Run tests:

    npm run test

Contribution Guidelines

  • Fork the repository and create a new branch for your feature or fix.
  • Make your changes and ensure they pass all tests.
  • Submit a pull request with a clear description of your changes.

License

Tiratana is licensed under the MIT License. See the LICENSE file for more details.


Start generating smarter codebase reports with Tiratana today! πŸŽ‰

"I don't configure what I can't figure" 🦹🏼 β€” Aditya Patange (AdiPat)