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.6.tar.gz (23.4 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.6-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rohkun-1.0.6.tar.gz
  • Upload date:
  • Size: 23.4 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.6.tar.gz
Algorithm Hash digest
SHA256 a66d84ccd30369e8e5711962fda07d6170021d7bd975249d538c582dfc64d850
MD5 cf29b1ab27ee281dd1e3c58909690ae3
BLAKE2b-256 d8a08a06704ae3163ec19a0ccc51f04802302f9cdb1fdb90e5c8aa1c5a61b3fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rohkun-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 23.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 11e77f1d5c7500b450bfa4251d41026a60060dcff5f427c0727b0f92e2f96f82
MD5 7bb2461f8ae2292630b57b18d2d58347
BLAKE2b-256 e1de4e94449f0d4b70bfbffc0c54c3cac713fee7bd44e9866dbd88df99d8c5df

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