# 🚀 Code Mantras

<div align="center">

**💡 Daily dose of motivation for developers who code, create, and conquer!**

*Transform your terminal into a source of inspiration with powerful mantras crafted for the modern developer.*

</div>

---

## ✨ What is Code Mantras?

Code Mantras delivers **100+ insperitional quotes** designed specifically for developers, programmers, and tech enthusiasts. Whether you're debugging at 3 AM, pushing through a challenging feature, or just need that extra spark of motivation, Code Mantras has got your back!

## 🎯 Features

- 🎲 **100+ Unique Messages** - Never see the same motivation twice
- 🎨 **Personalized Greetings** - Add your name for a personal touch
- ⚡ **Lightning Fast** - Zero dependencies, pure JavaScript magic
- 🌍 **Universal** - Works everywhere: Node.js, browsers, terminals
- 🎭 **Smart Capitalization** - Automatically formats names beautifully
- 📦 **Tiny Bundle** - Lightweight and efficient

## 🚀 Quick Start

### Installation

```bash
# Or install from npm
npm install code-mantras
```

### Usage

```javascript
import { greetings } from 'code-mantras';

// Get a random motivational message
console.log(greetings());
// Output: "Code is poetry written in logic. Make yours a masterpiece!"

// Add your name for personalization
console.log(greetings('Alice'));
// Output: "Every expert was once a beginner. Every pro was once an amateur. — Alice"

// Perfect for CLI tools
console.log(greetings('john doe'));
// Output: "Think twice, code once. Debug never! — John Doe"
```

## 🎪 Real-World Examples

### 🖥️ Terminal Greeting
```javascript
// Add to your .zshrc or .bashrc
import { greetings } from 'code-mantras';
console.log(`\n${greetings('YourName')}\n`);
```

### 🤖 CLI Tool Integration
```javascript
#!/usr/bin/env node
import { greetings } from 'code-mantras';

console.log('🚀 Starting development server...');
console.log(`💭 ${greetings()}`);
// Your CLI logic here
```

### 🎯 Build Scripts
```javascript
// package.json
{
  "scripts": {
    "start": "node -e \"import('code-mantras').then(m => console.log(m.greetings()))\" && your-start-command",
    "build": "node -e \"import('code-mantras').then(m => console.log(m.greetings()))\" && your-build-command"
  }
}
```

### 🎨 React/Vue Apps
```javascript
import { greetings } from 'code-mantras';

function WelcomeComponent() {
  const motivation = greetings('Developer');
  
  return (
    <div className="welcome-banner">
      <h2>🎯 Daily Motivation</h2>
      <p>{motivation}</p>
    </div>
  );
}
```

## 🎭 Sample Messages

Here's a taste of what Code Mantras delivers:

> **"Code is poetry written in logic. Make yours a masterpiece!"**

> **"Think twice, code once. Debug never!"**

> **"Every expert was once a beginner. Every pro was once an amateur."**

> **"Your code today is someone's inspiration tomorrow."**

> **"Bugs are just features in disguise waiting to be discovered!"**

*...and 95+ more inspiring messages!*

## 🛠️ API Reference

### `greetings(userName?)`

Returns a random motivational message with optional name personalization.

**Parameters:**
- `userName` (optional): String - Your name or any name to personalize the message

**Returns:**
- `String` - A formatted motivational message

**Examples:**
```javascript
greetings()           // Returns: "Code is art. Make it beautiful!"
greetings('Alice')    // Returns: "Debug with patience, code with passion! — Alice"
greetings('bob joe')  // Returns: "Think like a computer, dream like a human! — Bob Joe"
```

## 🎯 Use Cases

- **🖥️ Terminal Startup Messages** - Motivate yourself every time you open the terminal
- **🤖 CLI Tool Enhancement** - Add inspiration to your command-line applications  
- **📱 Development Dashboards** - Display motivational quotes in your dev environment
- **🎮 Coding Practice Apps** - Encourage learners with positive reinforcement
- **🚀 Build Scripts** - Make your build process more enjoyable
- **💼 Team Tools** - Boost team morale in internal tools

## 🧪 Testing

Code Mantras comes with comprehensive tests to ensure reliability:

```bash
# Run tests
npm test

# Expected output
✅ Returns a string
✅ Includes name when provided  
✅ Returns greeting without name
✅ Capitalizes names properly
✅ Returns different messages (randomness check)
```

## 🤝 Contributing

We love contributions! Whether it's:

- 💡 **New motivational messages** - Add your favorite coding mantras
- 🐛 **Bug fixes** - Help us squash those pesky bugs
- 📚 **Documentation** - Improve our docs and examples
- ✨ **Features** - Suggest new ways to motivate developers

### Quick Contribution Guide:

1. **Fork** the repository
2. **Create** a feature branch: `git checkout -b feature/amazing-mantras`
3. **Add** your motivational messages to `src/greetings.js`
4. **Test** your changes: `npm test`
5. **Commit** your changes: `git commit -m "Add amazing new mantras"`
6. **Push** to the branch: `git push origin feature/amazing-mantras`
7. **Open** a Pull Request

## 📊 Stats & Performance

- **⚡ Bundle Size**: < 5KB minified
- **🚀 Load Time**: < 1ms average execution
- **🎯 Zero Dependencies**: Pure JavaScript, no external deps
- **🌍 Cross-Platform**: Works on Node.js 14+, all modern browsers
- **💾 Memory Usage**: < 1MB RAM footprint

## 🗺️ Roadmap

- [ ] 🌐 **Multi-language Support** - Mantras in different languages
- [ ] 🎨 **Themed Collections** - Frontend, Backend, DevOps specific mantras
- [ ] 📅 **Daily Mantra API** - Get date-specific motivational messages

## 📜 License

MIT License - feel free to use Code Mantras in your projects, commercial or personal!

## 🙏 Acknowledgments

- Inspired by developers worldwide who turn coffee into code ☕
- Built with ❤️ for the coding community
- Special thanks to all contributors who make this project awesome

---

<div align="center">

**🌟 If Code Mantras inspired you, give it a star! 🌟**

Made with 💻 and ☕ for developers by developers

[Report Bug](https://github.com/viveksojitra/code-mantras/issues) • [Request Feature](https://github.com/viveksojitra/code-mantras/issues) • [Documentation](https://github.com/viveksojitra/code-mantras#readme)

</div>
