A sleek, modern password generator with customizable options and public API
Live site: passgenfly.netlify.app
- Generate secure passwords with customizable length
- Select character types (uppercase, lowercase, numbers, symbols)
- Easy-to-say option (avoids confusing characters)
- Easy-to-read option (avoids similar-looking characters)
- Copy to clipboard functionality
- Password strength indicator
- Responsive design for all devices
- One-click password regeneration
- NEW: Public API for password generation
PassGenFly provides a public API that can be used to generate passwords programmatically:
GET https://passgenfly.netlify.app/api/generate
length
: Password length (number, default: 12)characterMode
: Character set mode ("all", "easyToSay", or "easyToRead", default: "all")- When
characterMode="all"
, you can also use:uppercase
: Include uppercase letters (boolean, default: true)lowercase
: Include lowercase letters (boolean, default: true)numbers
: Include numbers (boolean, default: true)symbols
: Include symbols (boolean, default: true)
Default password (12 characters):
https://passgenfly.netlify.app/api/generate
Custom 16-character password with all character types:
https://passgenfly.netlify.app/api/generate?length=16
Easy-to-say password:
https://passgenfly.netlify.app/api/generate?characterMode=easyToSay
Password with only lowercase and numbers:
https://passgenfly.netlify.app/api/generate?uppercase=false&symbols=false
{
"password": "X4$9aB!pR2@kL7",
"strength": {
"score": 85,
"label": "Strong"
},
"options": {
"length": 16,
"characterMode": "all",
"uppercase": true,
"lowercase": true,
"numbers": true,
"symbols": true
}
}
For different character modes, the response will reflect the appropriate settings. For example, with characterMode=easyToSay
:
{
"password": "bapoludefi",
"strength": {
"score": 75,
"label": "Good"
},
"options": {
"length": 12,
"characterMode": "easyToSay",
"uppercase": false,
"lowercase": true,
"numbers": false,
"symbols": false
}
}
To run the application locally:
# Clone the repository
git clone https://github.com/sanamhub/password-generator.git
# Navigate to the project directory
cd password-generator
# Install dependencies
npm install
# Start the development server
npm run dev
# Start the API server
npm run api
The application will be available at http://localhost:4176 (or another port if 4176 is in use). The API will be available at http://localhost:4174/api/generate.
- React
- TypeScript
- Tailwind CSS
- Vite
- shadcn/ui components
- Express.js (API server)
- Netlify Functions (for production API)
Contributions are welcome! Please feel free to submit a Pull Request.