Rohkun - Code analysis tool for detecting endpoints, API calls, and connections
Project description
Rohkun
Stop wasting tokens. Start fixing.
Rohkun maps your entire codebase structure so AI knows exactly what's where. No more guessing, no more hallucinations, no more burning through API credits on wrong fixes.
What It Does
Rohkun analyzes your codebase and generates a comprehensive report showing:
- 🎯 All API Endpoints - Every route, handler, and HTTP method
- 📡 All API Calls - Every fetch, axios, HTTP request in your frontend
- 📊 Change Tracking - See what changed between snapshots
- 📈 Drift Analysis - Monitor structural changes over time
- 🔍 Exact Locations - File paths and line numbers for everything
Give this report to your AI-powered IDE (Cursor, Windsurf, etc.) and watch it fix bugs on the first try instead of the tenth.
Installation
pip install rohkun
Quick Start
1. Login
rohkun login
Enter your API key from rohkun.com
2. Analyze Your Codebase
cd /path/to/your/project
rohkun run
That's it! Rohkun will:
- Zip your codebase
- Upload to Rohkun servers for analysis
- Generate a comprehensive report
- Copy the report link to your clipboard
3. Use With AI
Paste the report link into your AI-powered IDE:
Here's my codebase structure: https://rohkun.com/reports/abc123
Now fix the bug where...
Your AI now knows:
- Every endpoint and where it's defined
- Every API call and where it's made
- How everything connects
- What changed recently
Result: First-try fixes instead of 10 failed attempts.
Features
🚀 Server-Side Analysis
All heavy lifting happens on Rohkun servers:
- AST parsing for 10+ languages
- Pattern matching for frameworks
- Connection detection
- Report generation
Your CLI just uploads and displays results. Fast, lightweight, no heavy dependencies.
📊 Local Tracking (Optional)
Track changes over time with local .rohkun/ snapshots:
# View snapshot history
rohkun history
# Compare two snapshots
rohkun compare snapshot-1 snapshot-2
# Pause tracking
rohkun pause
# Resume tracking
rohkun track
Snapshots are stored locally in .rohkun/ directory. Optionally sync to server for backup.
🎯 What Gets Analyzed
Backend:
- Express, Fastify (Node.js)
- FastAPI, Flask, Django (Python)
- Laravel (PHP)
- Spring Boot (Java)
- Gin (Go)
- Rails (Ruby)
- ASP.NET (C#)
Frontend:
- React, Vue, Angular
- Vanilla JavaScript/TypeScript
- fetch(), axios, HTTP clients
Other:
- GraphQL endpoints and queries
- WebSocket connections
- REST APIs
Commands
# Authentication
rohkun login # Login with API key
rohkun logout # Logout
# Analysis
rohkun run [directory] # Analyze codebase (default: current dir)
rohkun run --no-copy # Don't copy link to clipboard
rohkun run --format plain # Plain text output (no colors)
# Local Tracking
rohkun history # View snapshot history
rohkun compare <id1> <id2> # Compare two snapshots
rohkun track # Resume tracking
rohkun pause # Pause tracking
rohkun delete # Delete local project data
# Utility
rohkun --version # Show version
rohkun --help # Show help
How It Saves You Money
Without Rohkun:
You: "Fix the bug where users can't login"
AI: *tries random fix* ❌
You: "That didn't work, here's more context..."
AI: *tries another fix* ❌
You: "Still broken, let me explain the structure..."
AI: *tries again* ❌
...10 iterations later...
AI: *finally works* ✅
Cost: 10 API calls × 1000 tokens = 10,000 tokens
Time: 2-3 hours
With Rohkun:
You: "Here's my codebase: [rohkun link]. Fix the bug where users can't login"
AI: *sees entire structure, fixes precisely* ✅
Cost: 1 API call × 1000 tokens = 1,000 tokens
Time: 5 minutes
Savings: 90% fewer tokens, 95% less time
Privacy & Security
- ✅ Your code is uploaded to Rohkun servers for analysis
- ✅ Stored securely during processing
- ✅ You control data retention in your dashboard
- ✅ Delete projects anytime
- ✅ All communication over HTTPS
- ✅ API keys are encrypted
Pricing
- Free Tier: 5 analyses/month
- Pro Plan: $12.42/month (100 credits/month)
- Premium Plan: $19.08/month (400 credits/month)
See rohkun.com/pricing for details.
Requirements
- Python 3.8 or higher
- Internet connection (for server communication)
- Rohkun account (free at rohkun.com)
Troubleshooting
"Command not found: rohkun"
Make sure Python's bin directory is in your PATH:
# On macOS/Linux
export PATH="$HOME/.local/bin:$PATH"
# On Windows
# Add %APPDATA%\Python\Scripts to your PATH
"Clipboard not working"
On Linux, install xclip:
# Ubuntu/Debian
sudo apt-get install xclip
# Fedora/RHEL
sudo dnf install xclip
"Analysis failed"
Check:
- You're logged in:
rohkun login - You have credits remaining (check dashboard)
- Directory contains code files
- You have internet connection
Support
- 📧 Email: support@rohkun.com
- 🌐 Website: rohkun.com
- 📚 Docs: docs.rohkun.com
License
Copyright (c) 2025 Rohkun. All rights reserved.
This software is proprietary. You may use it to access Rohkun services at rohkun.com, but you may not:
- Modify or reverse engineer the software
- Use it to create competing services
- Redistribute or resell the software
See LICENSE file for full terms.
What's Next?
- Install:
pip install rohkun - Sign up: rohkun.com
- Analyze:
rohkun run - Save tokens: Give report to your AI
Stop guessing. Start fixing. 🚀
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rohkun-1.0.0.tar.gz.
File metadata
- Download URL: rohkun-1.0.0.tar.gz
- Upload date:
- Size: 66.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74b2a2b38dcbf28196c79f6fe917fdec913120b7afdbf3b1b927afe5707778db
|
|
| MD5 |
cde8853002317d4bc537fec8fbb06486
|
|
| BLAKE2b-256 |
dfc20f0d1d377089b77c26748ca5fad9f1821a077dfdf67db54211d788b24264
|
File details
Details for the file rohkun-1.0.0-py3-none-any.whl.
File metadata
- Download URL: rohkun-1.0.0-py3-none-any.whl
- Upload date:
- Size: 77.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02199a49241b735b77de56646486ab7b1297d8c0526317623d02e5e116fd0b03
|
|
| MD5 |
e6751bf520833817ef0216f82e1ec1fe
|
|
| BLAKE2b-256 |
0c6fc37774a1434ac64ca8f8b91cdd77bb57fc59d4e2ee0e779506f3595a4f7b
|