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.3.tar.gz (22.3 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.3-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rohkun-1.0.3.tar.gz
  • Upload date:
  • Size: 22.3 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.3.tar.gz
Algorithm Hash digest
SHA256 7de2caefc3b5eb344f8e7e3d600f53e38b96dcd78d296ced806e88ea3abecfbd
MD5 9f9a2954b44fc38c1998da624da19bb7
BLAKE2b-256 d81a4e7486a618d60cb7f6d9fdf3b758a2e843365ee4414841f0379a78cc5548

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rohkun-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 22.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f149a0f4caf02d2385600265de5c302a9711bc186458499117212be47ebf5c87
MD5 959b12124d3e964ca7909bdb4d127c28
BLAKE2b-256 28c6e224878c7b3571c410f5431765823e40fc5a8da1b9f9734c99197b8cc08f

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