Skip to content

Latest commit

ย 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

Phantom Pals

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 ๐ŸŽจ.


๐Ÿš€ MVP Features

๐ŸŒŒ Explore Universes

  • Browse characters from different worlds: Phantom, Mythical, Anime, and beyond ๐ŸŒ
  • Each character appears as a beautiful card with name, image, and story ๐Ÿ“‡

๐Ÿ” Smart Search (NLP-enhanced)

  • Use natural language to search:
    • "anime fire" ๐Ÿ”ฅ
    • "phantom water" ๐Ÿ’ง
    • "mythical dragon" ๐Ÿฒ

๐ŸŽ™๏ธ Voice Interaction

  • ๐ŸŽค Voice-to-text for hands-free searching
  • ๐Ÿ”Š Listen to characters speak via text-to-speech

๐Ÿค– LLM-Powered Assistant (NEW!)

  • 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 ๐Ÿ”ฅ๐Ÿ‘ป"

โญ Favorites Collection

  • Save your favorite pals ๐Ÿ’–
  • Data stored locally using LocalStorage ๐Ÿ’พ

๐Ÿ› ๏ธ Tech Stack

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 ๐Ÿ’พ

๐Ÿงญ Project Structure

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

๐Ÿ“ฆ Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn package manager

Installation

# ๐Ÿ“ฅ 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 for Production

# ๐Ÿ—๏ธ Build the project
npm run build

# ๐ŸŒ Preview production build
npm run preview

๐ŸŽฏ Usage

  1. Explore Characters: Browse through different universe categories
  2. Search: Use natural language to find specific character types
  3. Voice Commands: Click the microphone icon for voice search
  4. Chat with AI: Generate new characters or chat with existing ones
  5. Save Favorites: Click the heart icon to save your favorite pals

โœจ Coming Soon

  • ๐Ÿง  User-authored character creator
  • ๐ŸŒ Cloud sync with Firebase
  • ๐ŸŽฎ Mini-games with your phantom pals
  • ๐ŸŒˆ More universe categories
  • ๐Ÿ“ฑ Mobile app version

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Ideas for Contributions

  • ๐Ÿ’ก New character ideas and universes
  • ๐ŸŽจ UI/UX improvements
  • ๐Ÿ› Bug fixes and optimizations
  • ๐Ÿ“š Documentation improvements

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ“ซ Contact & Support

Built with โค๏ธ by Christopher Ade Wiyanto

Open for collaboration, creativity, and coffee chats โ˜•โœจ


๐Ÿ™ Acknowledgments

  • 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! ๐Ÿ‘ปโœจ

About

๐Ÿ‘ป Phantom Pals Creator | ๐ŸŒŸ Imaginary Friend Explorer โœจ Building magical worlds with code ๐Ÿง™โ€โ™‚๏ธ From phantom pals to fantasy tales ๐Ÿ“ฑ React โ€ข Vite โ€ข Interactive UI ๐Ÿ’ก Bringing imagination to life one friend at a time ๐Ÿค Open for ideas, collabs & creative chats ๐ŸŽจ

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors