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.4.tar.gz (22.5 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.4-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rohkun-1.0.4.tar.gz
  • Upload date:
  • Size: 22.5 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.4.tar.gz
Algorithm Hash digest
SHA256 9da5feea40d4ab68131b559af94f7a160fbae04a185ff1af90ef3f001bb1d59a
MD5 6bad9715b259cf285fe16b0e56f6fc25
BLAKE2b-256 58b5de9fe683d2165e793fdd94a1fd31b536fc73e12d43194cf8d590533edcf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rohkun-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 22.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 35e40876def376df7d144acf7d848285fd7187a710860b70d572ac6c8005456a
MD5 a3cf7db2ba6420d8aa4854b43242a53e
BLAKE2b-256 aeda1d2df1073ebda0c1fa17d651b4a22d0681040ca58065ab6570c6f9cb4a87

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