templates icon indicating copy to clipboard operation
templates copied to clipboard

add coingecko-ai-plugin template

Open Markeljan opened this issue 6 months ago • 1 comments

User description

  • new Agent Plugins template coingecko-ai-plugin

  • demo-api will migrate domain coingecko-ai-vercel.app post deployment.

  • demo-playground


PR Type

enhancement, documentation


Description

  • Added API reference configuration for CoinGecko AI Plugin with metadata and server URLs.
  • Implemented proxy route for CoinGecko API with error handling and request forwarding.
  • Configured TailwindCSS, TypeScript, and Next.js for the project.
  • Added README with project description, usage instructions, and deployment steps.
  • Initialized package.json with project metadata, scripts, and dependencies.
  • Configured PostCSS with TailwindCSS plugin.
  • Added example environment variable for CoinGecko API key.

Changes walkthrough 📝

Relevant files
Enhancement
2 files
route.ts
Add API reference configuration for CoinGecko AI Plugin   

coingecko-ai-plugin/app/route.ts

  • Added API reference configuration for CoinGecko AI Plugin.
  • Configured metadata and server URLs.
  • Exported GET handler using ApiReference.
  • +27/-0   
    route.ts
    Implement proxy route for CoinGecko API                                   

    coingecko-ai-plugin/app/api/[...proxy]/route.ts

  • Implemented proxy route for CoinGecko API.
  • Added error handling for missing API key.
  • Configured request forwarding with API key.
  • +27/-0   
    Configuration changes
    6 files
    tailwind.config.ts
    Configure TailwindCSS for CoinGecko AI Plugin                       

    coingecko-ai-plugin/tailwind.config.ts

  • Configured TailwindCSS for the project.
  • Extended theme with custom gradients.
  • Specified content paths for TailwindCSS.
  • +20/-0   
    package.json
    Initialize package.json with project metadata and dependencies

    coingecko-ai-plugin/package.json

  • Initialized package.json with project metadata.
  • Added scripts for development and build.
  • Specified dependencies and devDependencies.
  • +37/-0   
    tsconfig.json
    Configure TypeScript for CoinGecko AI Plugin                         

    coingecko-ai-plugin/tsconfig.json

  • Configured TypeScript compiler options.
  • Included paths and plugins for Next.js.
  • Specified files to include and exclude.
  • +39/-0   
    next.config.mjs
    Configure Next.js headers for API routes                                 

    coingecko-ai-plugin/next.config.mjs

  • Configured Next.js headers for API routes.
  • Allowed CORS for all origins and methods.
  • +25/-0   
    postcss.config.mjs
    Configure PostCSS with TailwindCSS plugin                               

    coingecko-ai-plugin/postcss.config.mjs

    • Configured PostCSS with TailwindCSS plugin.
    +8/-0     
    .env.example
    Add example environment variable for CoinGecko API key     

    coingecko-ai-plugin/.env.example

    • Added example environment variable for CoinGecko API key.
    +1/-0     
    Documentation
    1 files
    README.md
    Add README with project description and deployment instructions

    coingecko-ai-plugin/README.md

  • Added project description and usage instructions.
  • Included deployment steps for Vercel.
  • Provided links to demo and deployment.
  • +50/-0   
    Additional files (token-limit)
    2 files
    pnpm-lock.yaml
    ...                                                                                                           

    coingecko-ai-plugin/pnpm-lock.yaml

    ...

    +7666/-1
    ai-plugin.json
    ...                                                                                                           

    coingecko-ai-plugin/public/.well-known/ai-plugin.json

    ...

    +9992/-1

    💡 PR-Agent usage: Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    Markeljan avatar Aug 13 '24 21:08 Markeljan