Inspiration
My journey to create phonenumbergenerator.my began from a common developer's need: to quickly generate large quantities of valid, virtual phone numbers for software testing, form validation, or data anonymization. Current online tools often felt clunky or raised privacy concerns. I envisioned a smarter, privacy-first solution that's intuitive and efficient, leading to this purely client-side, AI-powered tool.
What it does
phonenumbergenerator.my is a free, smart online utility that generates random virtual phone numbers for various countries. Its key features include:
Natural Language Processing (NLP): Users can simply type their request (e.g., "Generate 10 US phone numbers"), and the AI understands to provide the desired numbers.
Global Format Compliance: Powered by libphonenumber-js, all generated numbers adhere to real-world country-specific phone number formats.
Ultimate Privacy: All processing happens entirely in your web browser. No user input or generated numbers ever leave your device, ensuring complete data privacy.
Non-Malicious Use: The tool is explicitly for ethical purposes like development, testing, learning, and data anonymization.
How I built it
The project leverages a modern web stack to deliver a fast, secure, and intuitive experience:
Frontend: Built with HTML5, styled using Tailwind CSS for a clean, responsive interface, and driven by vanilla JavaScript for all client-side logic.
Number Generation: The robust libphonenumber-js library ensures that all virtual numbers generated are formatted correctly for their respective countries.
AI Integration: OpenRouter's Mistral Small large language model powers the natural language understandings.
Infrastructure: Hosted on Vercel for seamless deployment, with Cloudflare managing DNS for fast and reliable access to phonenumbergenerator.my.
Community Support: Integrated Ko-fi allows users to support the project, helping to keep it free and ad-free.
Challenges I ran into
Building this tool presented valuable learning opportunities, particularly in:
Complex DNS & Hosting Integration: Configuring custom domains with Vercel and Cloudflare involved careful management of DNS records (A, CNAME, MX) and understanding Cloudflare's proxy behavior to ensure seamless connectivity. Integrating third-party email forwarding (Porkbun) with Cloudflare's DNS required precise MX record setup.
AI Prompt Engineering: Crafting effective prompts for the large language model to accurately extract parameters (country, quantity) from natural language and return consistent, parsable JSON was an iterative refinement process.
Ensuring True Privacy: The commitment to 100% client-side processing required meticulous JavaScript architecture to prevent any sensitive data from touching server infrastructure.
Accomplishments that I'm proud of
I'm particularly proud of:
Intuitive AI Interaction: Successfully implementing a natural language interface that makes the tool incredibly user-friendly and efficient.
Robust Privacy Model: Delivering on the promise of complete client-side data processing, a critical feature for a tool handling sensitive-like data.
Seamless Tech Stack Integration: Bringing together various powerful platforms (Vercel, Cloudflare, OpenRouter) to create a cohesive and high-performing web application.
Solving a Real-World Problem: Providing developers and testers with a reliable, free, and privacy-conscious resource for their everyday needs.
What I learned
This project significantly deepened my understanding of:
Advanced DNS Management: Gaining practical experience with name servers, diverse DNS record types (A, CNAME, MX, TXT), and the intricacies of DNS propagation across different services.
Vercel Ecosystem: Mastering Vercel's deployment pipelines, custom domain configurations, and leveraging serverless functions for secure API interactions.
Practical AI Integration: Learning the nuances of integrating large language models via APIs, including prompt design and secure proxying.
Privacy-by-Design Principles: Reinforcing the importance of building applications with privacy as a foundational element, especially when dealing with user-generated content.
What's next for smart-phone-number-generator
Looking ahead, I plan to:
Expand Country Coverage: Continuously add support for more countries and specific regions.
Refine AI Precision: Further enhance the AI's understanding of complex or nuanced natural language requests.
Explore New Number Types: Potentially add options for generating fixed-line, toll-free, or other specialized number formats.
Foster Community: Actively incorporate user feedback to guide future features and improvements.


Log in or sign up for Devpost to join the conversation.