Phantom Pals is an interactive React application that lets you explore, collect, and chat with imaginary friends from fantastical universes โ from phantoms ๐ป and mythical beasts ๐ to anime heroes ๐ and more!
Built as a fun and creative MVP to showcase imagination ๐ง , AI power ๐ค, and smooth user experience ๐จ.
- Browse characters from different worlds: Phantom, Mythical, Anime, and beyond ๐
- Each character appears as a beautiful card with name, image, and story ๐
- Use natural language to search:
- "anime fire" ๐ฅ
- "phantom water" ๐ง
- "mythical dragon" ๐ฒ
- ๐ค Voice-to-text for hands-free searching
- ๐ Listen to characters speak via text-to-speech
- Integrated with GPT/LLM APIs for:
- โจ Auto-generating character backstories
- ๐ฌ Chat with your favorite phantom
- ๐ Create a new character with just a prompt
- Example prompts:
"Make a water guardian from the forest ๐ณ""Design a ghost warrior with fire powers ๐ฅ๐ป"
- Save your favorite pals ๐
- Data stored locally using LocalStorage ๐พ
| Feature | Technology |
|---|---|
| Frontend UI | React + Vite โก |
| Styling | Tailwind CSS ๐จ |
| Routing | React Router ๐ |
| Voice Features | Web Speech API ๐ค๐ฃ๏ธ |
| NLP | Compromise.js / Natural.js ๐ง |
| AI / LLM | OpenAI API or HuggingFace ๐ค |
| State Management | useState / useContext ๐งฉ |
| Data Storage | LocalStorage ๐พ |
phantom-pals/
โโโ src/
โ โโโ components/ # UI Components ๐งฉ
โ โโโ pages/ # Pages (Home, Favorites, etc.) ๐
โ โโโ ai/ # LLM interaction logic ๐ค
โ โโโ nlp/ # Search intelligence (NLP) ๐ง
โ โโโ assets/ # Images, sounds, etc. ๐ผ๏ธ๐
โ โโโ App.jsx
โโโ public/
โโโ README.md
- Node.js (v16 or higher)
- npm or yarn package manager
# ๐ฅ Clone the repository
git clone https://github.com/yourusername/phantom-pals.git
cd phantom-pals
# ๐ฆ Install dependencies
npm install
# ๐ Set up environment variables
# Create a .env file in the root directory
echo "VITE_OPENAI_API_KEY=your_api_key_here" > .env
# ๐ Start development server
npm run dev# ๐๏ธ Build the project
npm run build
# ๐ Preview production build
npm run preview- Explore Characters: Browse through different universe categories
- Search: Use natural language to find specific character types
- Voice Commands: Click the microphone icon for voice search
- Chat with AI: Generate new characters or chat with existing ones
- Save Favorites: Click the heart icon to save your favorite pals
- ๐ง User-authored character creator
- ๐ Cloud sync with Firebase
- ๐ฎ Mini-games with your phantom pals
- ๐ More universe categories
- ๐ฑ Mobile app version
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- ๐ก New character ideas and universes
- ๐จ UI/UX improvements
- ๐ Bug fixes and optimizations
- ๐ Documentation improvements
This project is licensed under the MIT License - see the LICENSE file for details.
Built with โค๏ธ by Christopher Ade Wiyanto
- ๐ GitHub: @yourusername
- ๐ง Email: your.email@example.com
- ๐ผ LinkedIn: Your Profile
Open for collaboration, creativity, and coffee chats โโจ
- Thanks to the open-source community for the amazing tools
- Inspired by the creativity of anime, fantasy, and gaming communities
- Special thanks to all contributors and testers
Ready to meet your new phantom pals? Start exploring! ๐ปโจ