Skip to content

forkZoo/Fork2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿต ForkMonkey

Your digital pet that lives forever on GitHub and evolves with AI

ForkMonkey is an autonomous, self-evolving digital collectible that combines:

  • ๐ŸŽฎ Tamagotchi-style digital pets
  • ๐ŸŽจ CryptoKitties genetic breeding
  • ๐Ÿต Bored Ape collectible traits
  • ๐Ÿค– AI-powered daily evolution

What is ForkMonkey?

Each ForkMonkey is a unique digital creature that:

  • Lives on GitHub as a repository
  • Evolves daily through AI-powered mutations
  • Changes appearance based on its DNA
  • Breeds through forks - create new generations
  • Grows a family tree across the GitHub network

The Magic

  1. Your Monkey: The owner of the GitHub repo owns the monkey
  2. Fork to Breed: Fork the repo to create a child monkey with inherited + mutated traits
  3. AI Evolution: Every day, an AI agent slightly modifies your monkey's appearance
  4. Secret DNA: Monkey traits are stored as GitHub Secrets (only you can see them)
  5. Public Art: The monkey's visual representation updates daily in the README
  6. Network Effect: All monkeys form a family tree across GitHub

How It Works

Day 1: ๐Ÿต Born with random DNA
Day 2: ๐Ÿต AI mutates color slightly
Day 3: ๐Ÿต Grows a hat
Day 4: ๐Ÿต Expression changes
...
Day 365: ๐Ÿต Completely unique creature

Fork it: ๐Ÿ‘ถ Child inherits 50% parent DNA + 50% random + daily mutations

Features

๐Ÿงฌ Genetics System

  • DNA Traits: Color, size, accessories, expressions, patterns
  • Inheritance: Children inherit traits from parents with mutations
  • Rarity System: Some traits are rarer than others
  • Generation Tracking: Know your monkey's lineage

๐Ÿค– AI Evolution

  • Daily Mutations: Claude AI subtly evolves your monkey
  • Smart Changes: AI understands aesthetics and makes coherent changes
  • Personality Development: Monkeys develop unique personalities over time

๐ŸŽจ Visual System

  • SVG Generation: Procedurally generated monkey art
  • Real-time Updates: README shows current monkey state
  • History Tracking: See how your monkey evolved over time

๐ŸŒณ Network

  • Family Trees: Visualize monkey genealogy
  • Rarity Rankings: See the rarest monkeys in the network
  • Discovery: Find and follow other monkeys

Quick Start

1. Use This Template

Click "Use this template" โ†’ "Create a new repository" to create your own monkey!

Why template? Actions work immediately! Forks require manual enablement.

2. Set Up Secrets

Go to Settings โ†’ Secrets and variables โ†’ Actions โ†’ New repository secret:

ANTHROPIC_API_KEY: your_claude_api_key

3. Enable GitHub Actions

Go to Actions tab โ†’ Enable workflows

4. Watch Your Monkey Grow!

Every day at midnight UTC, your monkey evolves automatically.

5. View Your Monkey (Live)

Your monkey is automatically deployed to GitHub Pages after each evolution!

๐ŸŒ Live Demo: https://<username>.github.io/<repo-name>/

Note: To enable GitHub Pages, go to Settings โ†’ Pages and select GitHub Actions as the source.

6. View Your Monkey (Local)

# Start the beautiful web interface
./start_web.sh

# Or manually:
python web/serve.py

Then open http://localhost:8000/web/index.html in your browser!

Your Monkey

Your Monkey

Monkey Stats

  • Generation: 1
  • Age: 45 days
  • Mutations: 28
  • Rarity Score: 51.7/100

Family Tree

Fork this repo to create children!

Development

Local Setup

# Install dependencies
pip install -r requirements.txt

# Initialize your monkey
python src/cli.py init

# View in web interface
./start_web.sh

# Evolve monkey manually
python src/cli.py evolve --ai

# Show monkey stats
python src/cli.py show

# Run tests
pytest tests/

Project Structure

forkMonkey/
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/
โ”‚       โ”œโ”€โ”€ daily-evolution.yml    # Daily AI evolution
โ”‚       โ”œโ”€โ”€ deploy-pages.yml       # Deploy to GitHub Pages
โ”‚       โ””โ”€โ”€ on-create.yml          # Initialize new monkey (template/fork)
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ genetics.py                # DNA and trait system
โ”‚   โ”œโ”€โ”€ evolution.py               # AI-powered evolution
โ”‚   โ”œโ”€โ”€ visualizer.py              # SVG monkey generator
โ”‚   โ”œโ”€โ”€ storage.py                 # Data persistence
โ”‚   โ””โ”€โ”€ cli.py                     # Command-line interface
โ”œโ”€โ”€ web/
โ”‚   โ”œโ”€โ”€ index.html                 # Web interface
โ”‚   โ”œโ”€โ”€ style.css                  # Modern blocky design
โ”‚   โ”œโ”€โ”€ script.js                  # Interactive features
โ”‚   โ””โ”€โ”€ serve.py                   # Local web server
โ”œโ”€โ”€ tests/                         # Comprehensive tests
โ”œโ”€โ”€ monkey_data/
โ”‚   โ”œโ”€โ”€ dna.json                   # Monkey DNA
โ”‚   โ”œโ”€โ”€ history.json               # Evolution history
โ”‚   โ”œโ”€โ”€ stats.json                 # Monkey statistics
โ”‚   โ””โ”€โ”€ monkey.svg                 # Visual representation
โ””โ”€โ”€ README.md                      # This file (auto-updated)

How to Breed

  1. Fork this repository - Creates a child monkey
  2. Child inherits traits - 50% from parent, 50% random
  3. Set up your API key - Add ANTHROPIC_API_KEY secret
  4. Enable Actions - Let your child evolve
  5. Watch it grow - Different from parent, but related

Rarity System

Traits have different rarity levels:

  • Common (60%): Basic colors, simple patterns
  • Uncommon (25%): Special colors, accessories
  • Rare (10%): Unique patterns, special features
  • Legendary (5%): Ultra-rare combinations

Network Stats

  • Total Monkeys: Calculating...
  • Generations: Calculating...
  • Rarest Trait: Calculating...

API

View Your Monkey's DNA

# DNA is stored in GitHub Secrets (private)
# Only the owner can see the full DNA

Get Monkey Stats

curl https://api.github.com/repos/{owner}/forkMonkey/contents/monkey_data/stats.json

View Family Tree

python src/cli.py family-tree

Contributing

Want to improve ForkMonkey?

  1. Fork this repo
  2. Create a feature branch
  3. Make your changes
  4. Submit a PR to the main ForkMonkey repo

Inspiration

  • ๐ŸŽฎ Tamagotchi: Virtual pets that need care
  • ๐Ÿฑ CryptoKitties: Genetic breeding on blockchain
  • ๐Ÿต Bored Ape Yacht Club: Collectible traits
  • ๐ŸŒฑ SeedGPT: AI-powered autonomous growth

License

MIT License - Fork, breed, and evolve freely!


Your monkey is unique. Your monkey is alive. Your monkey is forever on GitHub. ๐Ÿตโœจ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •