Skip to content

A daily fantasy sports platform inspired by DraftKings and FanDuel, where users draft memecoins, traders, and athletes to compete in skill-based leagues. Entry fees and prize pools are powered by USDC, combining fantasy competition with blockchain transparency and secure, instant payouts.

License

Notifications You must be signed in to change notification settings

Novus-Tech-LLC/Fanduel-Sports

Crypto Fantasy League

License Next.js React TypeScript Farcaster

A Farcaster Mini App for daily fantasy sports with crypto integration. Draft memecoins, traders, and athletes for crypto events and real sports. Compete in daily fantasy leagues with USDC entry fees, big prize pools, and live leaderboards.

Features โ€ข Getting Started โ€ข Documentation โ€ข Contributing

Contact

Platform Link
๐Ÿ“ฑ Telegram t.me/novustch
๐Ÿ“ฒ WhatsApp wa.me/14105015750
๐Ÿ’ฌ Discord discordapp.com/users/985432160498491473
Telegram WhatsApp Discord

Feel free to reach out for implementation assistance or integration support.

Overview

Crypto Fantasy League is a web-based mini application built for the Farcaster ecosystem. It runs seamlessly within Farcaster clients (such as Warpcast) on both mobile and desktop platforms, providing users with an engaging fantasy sports experience that combines traditional sports with cryptocurrency markets.

Features

  • ๐ŸŽฎ Daily Fantasy Leagues - Compete in daily fantasy competitions
  • ๐Ÿ’ฐ Crypto Integration - USDC entry fees and prize pools
  • ๐Ÿ“Š Live Leaderboards - Real-time competition tracking
  • ๐ŸŽฏ Multi-Asset Drafting - Draft memecoins, traders, and athletes
  • ๐Ÿ“ฑ Cross-Platform - Works on iOS, Android, and Web via Farcaster clients
  • ๐ŸŽจ Modern UI - Built with shadcn/ui and Tailwind CSS

Tech Stack

Frontend

  • Framework: Next.js 15.5.4
  • React: 19.2.0
  • TypeScript: 5.x
  • Styling: Tailwind CSS 4.x
  • UI Components: shadcn/ui (Radix UI primitives)
  • Form Handling: React Hook Form + Zod validation

Platform Integration

  • Farcaster SDK: @farcaster/miniapp-sdk v0.1.10
  • Deployment: Xnode (OpenxAI infrastructure)
  • Build System: Nix Flakes

Prerequisites

  • Node.js 18+ (or Bun)
  • npm, yarn, or pnpm
  • Git
  • Nix (for Nix-based builds, optional)

Getting Started

Installation

  1. Clone the repository

    git clone https://github.com/NovusTechLLC/Fanduel-Sports.git
    cd Fanduel-Sports
  2. Install dependencies

    cd mini-app
    npm install
  3. Set up environment variables Create a .env.local file in the mini-app directory (see .env.example for reference):

    NEXT_PUBLIC_URL=https://your-domain.com
    ACCOUNT_ASSOCIATION={"header":"","payload":"","signature":""}
    BASE_BUILDER={"allowedAddresses":[]}

Development

From the root directory (Nix build):

nix run

From the mini-app directory:

# Start development server
npm run dev

# Build for production
npm run build

# Start production server
npm run start

# Run linter
npm run lint

The development server will start at http://localhost:3000.

Project Structure

Fanduel-Sports/
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/            # GitHub Actions CI/CD workflows
โ”œโ”€โ”€ mini-app/                 # Next.js application
โ”‚   โ”œโ”€โ”€ app/                  # Next.js app directory
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx        # Root layout
โ”‚   โ”‚   โ”œโ”€โ”€ page.tsx          # Home page
โ”‚   โ”‚   โ””โ”€โ”€ .well-known/      # Farcaster manifest routes
โ”‚   โ”œโ”€โ”€ components/           # React components
โ”‚   โ”‚   โ”œโ”€โ”€ ui/               # shadcn/ui components
โ”‚   โ”‚   โ””โ”€โ”€ context/          # React context providers
โ”‚   โ”œโ”€โ”€ lib/                  # Utility functions and configs
โ”‚   โ””โ”€โ”€ public/               # Static assets
โ”œโ”€โ”€ documentation/            # Project documentation
โ”œโ”€โ”€ nix/                      # Nix package definitions
โ”œโ”€โ”€ .editorconfig             # Editor configuration
โ”œโ”€โ”€ .gitignore                # Git ignore rules
โ”œโ”€โ”€ CHANGELOG.md              # Version history
โ”œโ”€โ”€ CODE_OF_CONDUCT.md        # Community guidelines
โ”œโ”€โ”€ CONTRIBUTING.md           # Contribution guidelines
โ”œโ”€โ”€ flake.nix                 # Nix flake configuration
โ”œโ”€โ”€ LICENSE                   # MIT License
โ”œโ”€โ”€ README.md                 # This file
โ””โ”€โ”€ SECURITY.md               # Security policy

Farcaster Integration

This app is configured as a Farcaster Mini App, which means:

  • It can be discovered and launched within Farcaster clients
  • Users can authenticate using their Farcaster identity
  • The app can send notifications to users
  • Pages can be shared as rich cards in Farcaster feeds

The Farcaster manifest is served at /.well-known/farcaster.json and includes app metadata, icons, and configuration.

Deployment

This project is configured for deployment on Xnode (OpenxAI's infrastructure). The Nix-based build system ensures reproducible builds across different environments.

Build for Production

# Using Nix
nix build

# Using npm
cd mini-app
npm run build

Development Guidelines

  • All component files should start with "use client"; directive
  • Use existing shadcn/ui components when possible
  • Follow TypeScript best practices with explicit type annotations
  • Maintain the Farcaster metadata export on the home page
  • Use Tailwind CSS for styling (configured in globals.css)

Contributing

We welcome contributions! Please read our Contributing Guide and Code of Conduct before submitting pull requests.

Key guidelines:

  1. Code follows the existing style and conventions
  2. All components include proper TypeScript types
  3. The Farcaster manifest remains properly configured
  4. UI components maintain consistency with the design system
  5. All tests pass and linting checks succeed

See CONTRIBUTING.md for detailed information.

Documentation

Security

For security concerns, please see SECURITY.md. We take security seriously and appreciate responsible disclosure of vulnerabilities.

License

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

Acknowledgments


For more information about Farcaster Mini Apps, see the documentation.

About

A daily fantasy sports platform inspired by DraftKings and FanDuel, where users draft memecoins, traders, and athletes to compete in skill-based leagues. Entry fees and prize pools are powered by USDC, combining fantasy competition with blockchain transparency and secure, instant payouts.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published