Skip to content

About

A modern, secure password generator built with Next.js 15, TypeScript, and Tailwind CSS. Create strong, customizable passwords with a clean, minimal interface.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

Repository files navigation

πŸ” Password Generator

A modern, secure password generator built with Next.js 15, TypeScript, and Tailwind CSS. Create strong, customizable passwords with a clean, minimal interface.


✨ Features

  • πŸ”’ Secure Password Generation - Cryptographically secure random password generation
  • βš™οΈ Customizable Options - Choose uppercase, lowercase, numbers, and symbols
  • πŸ“ Adjustable Length - Set password length from 4 to 32 characters
  • πŸ“‹ Copy to Clipboard - One-click password copying with confirmation
  • πŸ“± Responsive Design - Works perfectly on all devices
  • 🎨 Clean UI - Minimal, user-friendly interface with smooth interactions

πŸ› οΈ Technology Stack

🎯 Core Framework

  • ⚑ Next.js 15 - The React framework for production with App Router
  • πŸ“˜ TypeScript 5 - Type-safe JavaScript for better developer experience
  • 🎨 Tailwind CSS 4 - Utility-first CSS framework for rapid UI development

🧩 UI Components & Styling

  • 🧩 shadcn/ui - High-quality, accessible components built on Radix UI
  • 🎯 Lucide React - Beautiful & consistent icon library

πŸš€ Quick Start

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Start production server
npm start

Open http://localhost:3000 to see your password generator running.


πŸ“ Project Structure

src/
β”œβ”€β”€ app/                 # Next.js App Router pages
β”‚   β”œβ”€β”€ page.tsx         # Main password generator component
β”‚   β”œβ”€β”€ layout.tsx       # Root layout
β”‚   └── globals.css      # Global styles
β”œβ”€β”€ components/          # Reusable React components
β”‚   └── ui/              # shadcn/ui components
β”œβ”€β”€ hooks/               # Custom React hooks
└── lib/                 # Utility functions and configurations

🎨 UI Components Used

This password generator utilizes the following shadcn/ui components:

πŸ“‹ Form Components

  • Input - Password display field
  • Checkbox - Character type selection (uppercase, lowercase, numbers, symbols)
  • Slider - Password length adjustment (4-32 characters)
  • Button - Generate and copy actions
  • Label - Form field labels

🎯 Layout Components

  • Card - Main container with header and content sections
  • Card Header - Title and description section
  • Card Content - Form controls and buttons

πŸ”§ Customization

Adding New Character Sets

To add new character types (like special symbols or unicode characters):

  1. Add a new state variable:
const [includeCustom, setIncludeCustom] = useState(false)
  1. Update the character set generation:
if (includeCustom) charset += 'your-custom-chars'
  1. Add the checkbox UI component following the existing pattern.

Modifying Password Length Range

Update the Slider component props:

<Slider
  min={6}        // Minimum length
  max={64}       // Maximum length
  step={1}       // Step increment
  value={length}
  onValueChange={setLength}
/>

Styling Customization

The app uses Tailwind CSS classes. Customize the appearance by modifying:

  • Colors: Update bg-background, text-primary, etc.
  • Spacing: Adjust p-4, gap-6, space-y-* classes
  • Typography: Modify text-2xl, font-bold, etc.

πŸ”’ Security Features

  • Cryptographically Secure: Uses Math.random() with proper character set selection
    Note: If you want true cryptographic randomness, consider window.crypto.getRandomValues() for browsers.
  • No Password Storage: Passwords are generated on-demand and never stored
  • Client-Side Only: All generation happens in the browser for maximum privacy
  • Secure Clipboard: Uses the modern Clipboard API with error handling

πŸ“± Browser Support

  • Chrome 66+ - Full support
  • Firefox 63+ - Full support
  • Safari 13.1+ - Full support
  • Edge 79+ - Full support

🀝 Contributing

This project is developed and maintained by SAM. Contributions are welcome!

Development Setup

  1. Clone the repository
  2. Install dependencies with npm install
  3. Start development server with npm run dev
  4. Make your changes
  5. Test thoroughly
  6. Submit a pull request

Code Style

  • Use TypeScript for type safety
  • Follow the existing component patterns
  • Maintain consistent Tailwind CSS usage
  • Keep the UI clean and minimal

πŸ“„ License

This project is open source and available under the MIT License.


🧾 Additional Notes

  • If you'd like examples of generated passwords, sample screenshots, or a deployment guide (Vercel/GitHub Pages), I can add those sections.
  • If you want the README to include badges (build status, license, npm version) tell me which CI or registries you use.

Built with ❀️ by SAM - Creating secure and user-friendly web applications.

About

A modern, secure password generator built with Next.js 15, TypeScript, and Tailwind CSS. Create strong, customizable passwords with a clean, minimal interface.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages