kafkacode
Version:
AI-powered privacy and compliance scanner by KafkaLabs - identify PII leaks, secrets, and compliance violations
98 lines (71 loc) ⢠2.92 kB
Markdown
# KafkaCode Privacy Scanner
<div align="center">
<h3>by <a href="https://kafkalabs.com">KafkaLabs</a></h3>
<p>š <strong>Shift-left privacy and compliance scanner for source code</strong></p>
<p>
<a href="https://kafkalabs.com/kafka-code">Website</a> ā¢
<a href="https://github.com/nikhil-kapu/KafkacodeFnpm">GitHub</a> ā¢
<a href="https://www.npmjs.com/package/kafkacode">npm</a>
</p>
</div>
---
KafkaCode is an AI-powered privacy scanner by **KafkaLabs** that helps developers identify potential privacy issues, PII leaks, and compliance violations in their source code before they reach production.
## Features
- š **Pattern-based Detection**: Identifies hardcoded secrets, API keys, and sensitive data
- š¤ **AI-powered Analysis**: Uses advanced LLM analysis for contextual privacy issues
- ā” **Fast & Efficient**: Scans entire codebases in seconds
- šÆ **Multiple File Types**: Supports Python, JavaScript, TypeScript, Java, Go, Ruby, PHP
- š **Detailed Reports**: Beautiful console reports with severity levels
- š **CI/CD Ready**: Easy integration with build pipelines
## Installation
```bash
npm install -g kafkacode
```
Or using npx (no installation required):
```bash
npx kafkacode scan /path/to/your/project
```
## Usage
**Basic Scan:**
```bash
kafkacode scan /path/to/your/project
```
**Verbose Output:**
```bash
kafkacode scan /path/to/your/project --verbose
```
## What it detects
- **Critical Issues**: AWS keys, Stripe keys, Private keys
- **High Severity**: Sensitive keywords in assignment context
- **Medium Severity**: Email addresses, Phone numbers, High entropy strings
- **Low Severity**: IP addresses, URLs
## Privacy Grade
KafkaCode assigns a privacy grade (A+ to F) based on the severity and number of issues found:
- **A+/A/A-**: Excellent privacy practices
- **B+/B/B-**: Good privacy practices with minor issues
- **C+/C/C-**: Moderate privacy issues that should be addressed
- **D**: Multiple high-severity privacy issues
- **F**: Critical privacy vulnerabilities detected
## Example Output
```
šÆ PRIVACY SCAN REPORT
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š SCAN SUMMARY
š Directory: ./src
ā° Timestamp: 2024-01-15 10:30:45
š Files Scanned: 25
š Total Issues: 3
š Privacy Grade: š”B-
```
## License
MIT License - Copyright (c) 2025 KafkaLabs
See [LICENSE](LICENSE) file for details.
## About KafkaLabs
KafkaCode is built by [KafkaLabs](https://kafkalabs.com), helping developers build privacy-first applications.
- š **Website**: [kafkalabs.com/kafka-code](https://kafkalabs.com/kafka-code)
- š§ **Contact**: contact@kafkalabs.com
- š¬ **Issues**: [GitHub Issues](https://github.com/nikhil-kapu/KafkacodeFnpm/issues)
---
<div align="center">
Made with ā¤ļø by <a href="https://kafkalabs.com">KafkaLabs</a>
</div>