# 🦅 Namehawk

Hunt for the best domain deals across 7+ registrars in real-time.

## Features

- **7 Registrars** — Namecheap, Porkbun, GoDaddy, Cloudflare, Dynadot, Spaceship, Hover
- **Parallel Scraping** — All providers checked simultaneously
- **Price Sorting** — Results sorted lowest first
- **Smart Suggestions** — Alternative domains when your choice is taken
- **Debug Mode** — Screenshots and verbose logging

## Installation

```bash
npm install -g namehawk
```

Or use with npx:

```bash
npx namehawk search example.com
```

## Usage

```bash
# Search for a domain
namehawk search myawesome.app

# Show browsers (debug)
namehawk search myawesome.app --head

# Use specific providers
namehawk search myawesome.app -p namecheap,porkbun

# List providers
namehawk providers
```

## Example Output

```
🔍 Searching for domain: myawesome.app

✔ Domain myawesome.app is AVAILABLE! 🎉

💰 Price Comparison:

┌────┬────────────────────┬───────────────┐
│ #  │ Provider           │ Price         │
├────┼────────────────────┼───────────────┤
│ 🏆 │ Porkbun            │ $2.06         │
├────┼────────────────────┼───────────────┤
│ 2  │ Cloudflare         │ $9.77         │
├────┼────────────────────┼───────────────┤
│ 3  │ Namecheap          │ $12.98        │
└────┴────────────────────┴───────────────┘

🔗 Quick Links:
   Porkbun: https://porkbun.com/checkout/search?q=myawesome.app
   Cloudflare: https://cloudflare.com/products/registrar/
   Namecheap: https://namecheap.com/domains/registration/results/?domain=myawesome.app

✔ Best deal: Porkbun at $2.06, saving you $10.92 vs Namecheap
```

## Programmatic Usage

```typescript
import { checkAvailability, checkPricing, listProviders } from 'namehawk';

const available = await checkAvailability('example.com');
if (available) {
  const prices = await checkPricing('example.com');
  console.log('Cheapest:', prices[0]);
}
```

## Supported Registrars

| Registrar | Pricing | Suggestions |
|-----------|---------|-------------|
| Namecheap | ✅ | ✅ |
| Porkbun | ✅ | - |
| GoDaddy | ✅ | - |
| Cloudflare | ✅ | - |
| Dynadot | ✅ | - |
| Spaceship | ✅ | - |
| Hover | ✅ | - |

## Requirements

- Node.js >= 18.0.0
- Chrome (downloaded automatically)

## License

MIT © Mudit

---

Made with 🦅 for domain hunters
