Skip to content

Latest commit

ย 

History

History
583 lines (447 loc) ยท 17.1 KB

File metadata and controls

583 lines (447 loc) ยท 17.1 KB

Scrunchy - Repository Links & Information

This document provides quick access to all Scrunchy repositories with their key information, setup instructions, and important links.


๐ŸŒ All Repositories

1. Smart Contracts (scrunchy-contract)

๐Ÿ”— Repository: https://github.com/hallelx2/scrunchy-contract

๐Ÿ“ Description: Solana Anchor programs for asset registry, marketplace, and access control

๐Ÿ› ๏ธ Tech Stack:

  • Rust 1.70+
  • Anchor Framework 0.29+
  • Solana CLI 1.18+

๐Ÿ“ฆ Contains:

  • Asset Registry Program
  • Marketplace Program
  • Access Control Program
  • Integration tests
  • Deployment scripts

๐Ÿš€ Quick Start:

git clone https://github.com/hallelx2/scrunchy-contract.git
cd scrunchy-contract
anchor build
anchor test
anchor deploy

๐Ÿ“š Documentation:

๐Ÿ”‘ Key Files:

  • Anchor.toml - Program configuration
  • programs/asset-registry/src/lib.rs - Asset Registry program
  • programs/marketplace/src/lib.rs - Marketplace program
  • programs/access-control/src/lib.rs - Access Control program
  • target/idl/*.json - Generated IDL files

๐Ÿ“Š Status: โœ… Complete and deployed to devnet


2. Backend API (scrunchy-backend)

๐Ÿ”— Repository: https://github.com/hallelx2/scrunchy-backend

๐Ÿ“ Description: Production-ready NestJS backend with event indexing, caching, and comprehensive API

๐Ÿ› ๏ธ Tech Stack:

  • NestJS 11+
  • TypeScript 5+
  • Prisma ORM
  • PostgreSQL 14+
  • Redis 7+

๐Ÿ“ฆ Contains:

  • RESTful API endpoints
  • Wallet signature authentication
  • Event indexer for blockchain sync
  • Background jobs (rental monitoring, cache warming)
  • Rate limiting and security middleware
  • Swagger API documentation

๐Ÿš€ Quick Start:

git clone https://github.com/hallelx2/scrunchy-backend.git
cd scrunchy-backend
npm install
cp .env.example .env  # Configure environment
npm run prisma:generate
npm run prisma:migrate
npm run start:dev  # Runs on http://localhost:3000

๐Ÿ“š Documentation:

๐Ÿ”‘ Key Files:

  • src/main.ts - Application entry point
  • prisma/schema.prisma - Database schema
  • src/idl/*.json - Anchor IDL files
  • .env - Environment configuration

๐Ÿ“Š Status: โœ… 100% Complete - Production ready

๐ŸŒ API Endpoints:

  • Authentication: /api/auth/*
  • Assets: /api/assets/*
  • Marketplace: /api/marketplace/*
  • Access Control: /api/access-control/*
  • Games: /api/games/*
  • SDK: /api/sdk/*
  • Health: /health

3. Frontend (scrunchy-frontend)

๐Ÿ”— Repository: https://github.com/hallelx2/scrunchy-frontend

๐Ÿ“ Description: Beautiful marketplace UI with wallet integration and responsive design

๐Ÿ› ๏ธ Tech Stack:

  • Next.js 14+ (App Router)
  • React 18+
  • TypeScript 5+
  • Tailwind CSS 4+
  • shadcn/ui components
  • Solana Wallet Adapter

๐Ÿ“ฆ Contains:

  • Landing page with hero section
  • Marketplace browse and search
  • Asset creation wizard
  • User dashboard
  • Developer portal
  • Wallet integration
  • Responsive design

๐Ÿš€ Quick Start:

git clone https://github.com/hallelx2/scrunchy-frontend.git
cd scrunchy-frontend
npm install
cp .env.example .env.local  # Configure environment
npm run dev  # Runs on http://localhost:3001

๐Ÿ“š Documentation:

๐Ÿ”‘ Key Files:

  • app/layout.tsx - Root layout
  • lib/api.ts - API client
  • stores/*.ts - State management
  • components/ui/* - UI component library

๐Ÿ“Š Status: โœ… Complete with all core pages

๐ŸŽจ Pages:

  • / - Landing page
  • /marketplace - Browse assets
  • /assets/create - Create asset
  • /dashboard - User dashboard
  • /developer - Developer portal
  • /profile - User profile

4. CLI Tool (scrunchy-cli)

๐Ÿ”— Repository: https://github.com/hallelx2/scrunchy-cli

๐Ÿ“ Description: Universal command-line tool for game developers to integrate Scrunchy

๐Ÿ› ๏ธ Tech Stack:

  • Python 3.8+
  • Click (CLI framework)
  • Requests (HTTP client)

๐Ÿ“ฆ Contains:

  • Project structure detection (Unity, Unreal, Pygame, Web)
  • Component installation system
  • Authentication via backend API
  • Game registration
  • Asset verification
  • Component tracking

๐Ÿš€ Quick Start:

git clone https://github.com/hallelx2/scrunchy-cli.git
cd scrunchy-cli
pip install -e .
scrunchy --version
scrunchy --banner

๐Ÿ“š Documentation:

๐Ÿ”‘ Key Files:

  • main.py - CLI entry point
  • scrunchy/commands/*.py - CLI commands
  • scrunchy/utils/project_detector.py - Project detection
  • scrunchy/utils/component_installer.py - Component installation

๐Ÿ“Š Status: โœ… Complete with all core features

โšก Commands:

# Authentication
scrunchy auth login
scrunchy auth status
scrunchy auth logout

# Project initialization
scrunchy init
scrunchy init --project-type unity

# Component management
scrunchy component add wallet-connector
scrunchy component list
scrunchy component remove wallet-connector

# Game management
scrunchy game register --name "My Game"
scrunchy game list
scrunchy game api-key create GAME_ID

# Asset verification
scrunchy verify WALLET_ADDRESS ASSET_ID

๐Ÿ“Š Repository Statistics

Repository Language Lines of Code Files Status
scrunchy-contract Rust ~5,000 ~50 โœ… Complete
scrunchy-backend TypeScript ~15,000 ~200 โœ… Complete
scrunchy-frontend TypeScript ~10,000 ~150 โœ… Complete
scrunchy-cli Python ~2,000 ~30 โœ… Complete
Total - ~32,000 ~430 โœ… Complete

๐Ÿ”„ Repository Dependencies

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   scrunchy-frontend                      โ”‚
โ”‚                  (User Interface)                        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                      โ”‚
                      โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   scrunchy-backend                       โ”‚
โ”‚                  (API & Indexer)                         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                      โ”‚
                      โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   scrunchy-contract                      โ”‚
โ”‚                  (Smart Contracts)                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   scrunchy-cli                           โ”‚
โ”‚              (Developer Integration)                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                      โ”‚
                      โ–ผ
              scrunchy-backend
                      โ”‚
                      โ–ผ
              scrunchy-contract

Dependency Flow:

  1. Frontend โ†’ Backend API โ†’ Smart Contracts
  2. CLI โ†’ Backend API โ†’ Smart Contracts
  3. Backend โ†’ Smart Contracts (direct interaction via Anchor clients)

๐Ÿš€ Getting Started (All Repositories)

Prerequisites

Install all required tools:

# Rust & Solana
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"

# Anchor
cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
avm install latest
avm use latest

# Node.js (via nvm)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 18
nvm use 18

# Python
sudo apt install python3 python3-pip

# PostgreSQL
sudo apt install postgresql postgresql-contrib

# Redis
sudo apt install redis-server

Clone All Repositories

# Create project directory
mkdir scrunchy-project
cd scrunchy-project

# Clone all repositories
git clone https://github.com/hallelx2/scrunchy-contract.git
git clone https://github.com/hallelx2/scrunchy-backend.git
git clone https://github.com/hallelx2/scrunchy-frontend.git
git clone https://github.com/hallelx2/scrunchy-cli.git

Setup Order

Follow this order for smooth setup:

  1. Smart Contracts (scrunchy-contract)

    cd scrunchy-contract
    anchor build
    anchor test
    anchor deploy  # Deploy to devnet
    # Note the deployed program IDs
  2. Backend (scrunchy-backend)

    cd ../scrunchy-backend
    npm install
    cp .env.example .env
    # Edit .env with program IDs from step 1
    npm run prisma:generate
    npm run prisma:migrate
    npm run start:dev
  3. Frontend (scrunchy-frontend)

    cd ../scrunchy-frontend
    npm install
    cp .env.example .env.local
    # Edit .env.local with API URL and program IDs
    npm run dev
  4. CLI (scrunchy-cli)

    cd ../scrunchy-cli
    pip install -e .
    scrunchy --version

๐Ÿ”‘ Important Configuration

Program IDs (After Deployment)

After deploying smart contracts, update these files:

  1. Backend (scrunchy-backend/.env):

    ASSET_REGISTRY_PROGRAM_ID="YourAssetRegistryProgramID"
    MARKETPLACE_PROGRAM_ID="YourMarketplaceProgramID"
    ACCESS_CONTROL_PROGRAM_ID="YourAccessControlProgramID"
  2. Frontend (scrunchy-frontend/.env.local):

    NEXT_PUBLIC_ASSET_REGISTRY_PROGRAM_ID="YourAssetRegistryProgramID"
    NEXT_PUBLIC_MARKETPLACE_PROGRAM_ID="YourMarketplaceProgramID"
    NEXT_PUBLIC_ACCESS_CONTROL_PROGRAM_ID="YourAccessControlProgramID"

API URLs

  1. Frontend (scrunchy-frontend/.env.local):

    NEXT_PUBLIC_API_URL="http://localhost:3000/api"
  2. CLI (via flag or env):

    # Via flag
    scrunchy --api-base-url https://api.scrunchy.io/api
    
    # Via environment variable
    export SCRUNCHY_API_BASE_URL="https://api.scrunchy.io/api"

๐Ÿ“ Contribution Guidelines

Each repository has its own contribution guidelines:

General Contribution Process

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

๐Ÿ› Issue Tracking

Report issues in the respective repository:


๐Ÿ“„ License

All repositories are licensed under the MIT License.

See LICENSE files in each repository:


๐Ÿ“ž Contact & Support

Developer

  • GitHub: @hallelx2
  • Email: [Your email]
  • Twitter: [Your Twitter]
  • Discord: [Your Discord]

Resources

  • Documentation: See docs/ folder in this repository
  • API Docs: http://localhost:3000/api/docs (Swagger UI)
  • Demo Video: [Link to be added]
  • Live Demo: [Link to be added]

๐ŸŽฏ Quick Links

Documentation

External Links


๐ŸŽ‰ Acknowledgments

  • Solana Foundation - For the amazing blockchain platform
  • Anchor Framework - For making Solana development accessible
  • Metaplex - For NFT standards and tooling
  • Next.js Team - For the incredible web framework
  • NestJS Team - For the robust backend framework
  • shadcn/ui - For beautiful UI components
  • Solana Community - For support and inspiration

๐Ÿ“Š Repository Health

Repository Build Status Tests Coverage Last Updated
scrunchy-contract โœ… Passing โœ… Passing ~80% Dec 15, 2025
scrunchy-backend โœ… Passing โœ… Passing ~75% Dec 15, 2025
scrunchy-frontend โœ… Passing โœ… Passing ~70% Dec 15, 2025
scrunchy-cli โœ… Passing โœ… Passing ~65% Dec 15, 2025

๐Ÿš€ Deployment Status

Environment Smart Contracts Backend Frontend CLI
Development โœ… Devnet โœ… Local โœ… Local โœ… Local
Staging โœ… Devnet ๐Ÿ”„ Planned ๐Ÿ”„ Planned โœ… PyPI Test
Production ๐Ÿ”„ Planned ๐Ÿ”„ Planned ๐Ÿ”„ Planned ๐Ÿ”„ Planned

Legend:

  • โœ… Complete
  • ๐Ÿ”„ Planned
  • โŒ Not Started

๐ŸŽฏ Next Steps

For Developers

  1. Clone all repositories
  2. Follow setup guides in order
  3. Read architecture documentation
  4. Start contributing!

For Hackathon Judges

  1. Review HACKATHON_README.md
  2. Check out each repository
  3. Watch the demo video
  4. Test the live demo

For Game Developers

  1. Install Scrunchy CLI: pip install scrunchy-cli
  2. Authenticate: scrunchy auth login
  3. Initialize project: scrunchy init
  4. Add components: scrunchy add wallet-connector

Last Updated: December 15, 2025

Maintained by: hallelx2

Built with โค๏ธ for the Solana Consumer Track Hackathon


๐Ÿ”— Repository Quick Access

Direct Links

Clone All at Once

# Create project directory
mkdir scrunchy-project && cd scrunchy-project

# Clone all repositories
git clone https://github.com/hallelx2/scrunchy-contract.git &
git clone https://github.com/hallelx2/scrunchy-backend.git &
git clone https://github.com/hallelx2/scrunchy-frontend.git &
git clone https://github.com/hallelx2/scrunchy-cli.git &
wait

echo "โœ… All repositories cloned successfully!"

Ready to build the future of gaming! ๐ŸŽฎโšก