A modern Next.js application that generates short, easy-to-spell domain names and checks their availability using the Namecheap API.
- Smart Word Generation: Uses the
EnglishLikeWordGeneratorclass to create pronounceable, English-like words - Real-time Availability Checking: Integrates with Namecheap API to check domain availability
- Multiple TLD Support: Generate domains with various top-level domains (.com, .net, .org, .io, etc.)
- Customizable Parameters: Control word length, count, and filtering options
- Modern UI: Beautiful, responsive interface built with Tailwind CSS
- Loading States: Real-time feedback during domain availability checking
npm installCreate a .env.local file with your Namecheap API credentials:
NAMECHEAP_API_USER=your_api_username
NAMECHEAP_API_KEY=your_api_key
NAMECHEAP_CLIENT_IP=your_client_ipNote: You need to whitelist your server's IP address in your Namecheap account for the API to work. The application will not function without these credentials.
npm run devOpen http://localhost:3000 in your browser.
-
Configure Generation Settings:
- Set minimum and maximum word length
- Choose how many domains to generate
- Select your preferred TLD (top-level domain)
-
Generate Domains: Click the "Generate Domain Names" button
-
Check Availability: The app will automatically check each domain's availability
-
Filter Results: Use the "Show only available domains" checkbox to filter results
The application includes a complete Namecheap API integration:
- Required Credentials: The application requires valid Namecheap API credentials to function
- XML Parsing: Properly parses Namecheap's XML responses
- Error Handling: Robust error handling for API failures with user-friendly error messages
- Next.js 14: React framework with App Router
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first CSS framework
- Namecheap API: Domain availability checking
- xml2js: XML response parsing
src/
├── app/
│ ├── api/
│ │ └── check-availability/
│ │ └── route.ts # API endpoint for domain checking
│ ├── page.tsx # Main application page
│ └── layout.tsx # App layout
├── lib/
│ └── generatewords.js # EnglishLikeWordGenerator class
└── ...
- EnglishLikeWordGenerator: Core word generation algorithm
- Domain Availability API: Handles Namecheap API integration
- Responsive UI: Modern interface with real-time updates
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - see LICENSE file for details.