Skip to main content

Rohkun - Code analysis tool for detecting endpoints, API calls, and connections

Project description

Rohkun CLI

Rohkun is a code analysis tool for detecting endpoints, API calls, and connections in your codebase.

Installation

pip install rohkun

Quick Start

  1. Login:

    rohkun login --token <your-api-token>
    
  2. Analyze a project:

    rohkun run ./your-project
    

Features

  • 🔍 Endpoint Detection: Automatically detects backend endpoints
  • 📡 API Call Analysis: Identifies frontend API calls
  • 🔗 Connection Mapping: Maps frontend calls to backend endpoints
  • 💥 Blast Radius Analysis: Understand impact of code changes
  • 🔒 Security Scanning: Detects common security issues
  • 📊 Confidence Levels: Shows detection confidence (CERTAIN, HIGH, MEDIUM, LOW)

Usage

# Analyze current directory
rohkun run

# Analyze specific directory
rohkun run ./path/to/project

# Use different output formats
rohkun run ./project --format rich    # Colored output (default)
rohkun run ./project --format plain   # Plain text
rohkun run ./project --format json    # JSON output

# Don't copy report to clipboard
rohkun run ./project --no-copy

Authentication

Get your API token from https://rohkun.com and login:

rohkun login --token rk_live_...

Or use interactive login:

rohkun login

Configuration

Set environment variables to customize behavior:

  • ROHKUN_API_URL: API server URL (default: https://rohkun.com)
  • ROHKUN_LOG_LEVEL: Logging level (default: INFO)
  • ROHKUN_MAX_DEPTH: Max directory depth (default: 50)
  • ROHKUN_MAX_FILE_SIZE_MB: Max file size in MB (default: 100)
  • ROHKUN_MAX_FILES: Max files to analyze (default: 10000)

Output Formats

  • rich (default): Colored terminal output with Rich markup
  • plain: Plain text output, no colors
  • json: Machine-readable JSON format

Requirements

  • Python 3.8+
  • Valid API token from rohkun.com

License

MIT

Support

For issues and questions, visit https://rohkun.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rohkun-1.0.5.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rohkun-1.0.5-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file rohkun-1.0.5.tar.gz.

File metadata

  • Download URL: rohkun-1.0.5.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for rohkun-1.0.5.tar.gz
Algorithm Hash digest
SHA256 6a4e4ce1c602438737877aa457f3d71051383d5c8fe5bf7cc44a2c0ca72aa9cf
MD5 3b3b0e1a00f86d7bcf1700a1e85a13cc
BLAKE2b-256 7365ad7fb1d8c2d500f5c0edc9a52a6ee875b69e9aaafbabf89b5a48d01b79a6

See more details on using hashes here.

File details

Details for the file rohkun-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: rohkun-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for rohkun-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c43c3fddff8a81e6090c7b55c620fa46e05d33a61cfed0f122a40498a7888e29
MD5 d3f9ada2f01d1b9f517272de5c8f496e
BLAKE2b-256 2f92a601ebfc7522bd83afa23fe4658cf587461f60b471f99b7deca3c9bb7247

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page