GhostMsg is a Next.js application that allows users to receive anonymous messages. Share your unique profile link and let others send you messages without revealing their identity.
- 🔐 User authentication with email/password
- 🌐 Public profile URLs for receiving anonymous messages
- 🤖 AI-powered message suggestions (using Google AI Studio)
- 📧 Email notifications (via Resend)
- 💬 Anonymous messaging system
- 📱 Responsive design
Before running this application, make sure you have:
- Node.js (v18 or higher)
- MongoDB database
- Resend account for email functionality
- Google AI Studio API key
Create a .env.local file in the root directory with the following variables:
MONGODB_URI=your_mongodb_connection_string
RESEND_API_KEY=your_resend_api_key
NEXT_AUTH_SECRET=your_nextauth_secret
GOOGLE_AI_STUDIO_SECRET=your_google_ai_studio_api_key
GOOGLE_OAUTH_CLIENT_ID=your_google_oauth_client_id
GOOGLE_OAUTH_CLIENT_SECRET=your_google_oauth_client_secret
GOOGLE_OAUTH_CALLBACK_URL=your_google_oauth_callback_url-
MongoDB URI: Create a database at MongoDB Atlas and get the connection string.
-
Resend API Key: Sign up at Resend and get your API key from the dashboard.
-
NextAuth Secret: Generate a secure random string for NextAuth.js (can use
openssl rand -base64 32). -
Google AI Studio Secret: Get your API key from Google AI Studio.
-
Google Cloud Console: Get you Client ID and Client for OAuth
- Clone the repository:
git clone <your-repo-url>
cd ghostmsg- Install dependencies:
npm install-
Set up environment variables as described above.
-
Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
-
Sign Up: Create an account with your email, username, and password.
-
Get Your Profile Link: After logging in, you'll receive a unique profile URL (e.g.,
ghostmsg.com/yourusername). -
Share Your Link: Share this link with others to receive anonymous messages.
-
View Messages: Check your dashboard to read anonymous messages sent to you.
Sample User
Username = Test
Password = Abbas@123- Frontend: Next.js, React, Tailwind CSS
- Backend: Next.js API Routes
- Database: MongoDB with Mongoose
- Authentication: NextAuth.js
- Email: Resend
- AI Features: Google AI Studio
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
If you have any questions or issues, please open an issue on GitHub or contact us at abbas4engg@gmail.com.
Note: This application is designed for positive and constructive anonymous messaging. Please use responsibly and respect others' privacy.