{"id":24884217,"url":"https://github.com/barkprotocol/ai-dashboard","last_synced_at":"2025-03-27T09:25:15.601Z","repository":{"id":274274213,"uuid":"922003621","full_name":"barkprotocol/ai-dashboard","owner":"barkprotocol","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-08T06:15:31.000Z","size":2034,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T07:20:28.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barkprotocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-25T04:11:12.000Z","updated_at":"2025-02-08T06:15:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"62b239ef-5ffb-4916-b5bf-352d748aab9b","html_url":"https://github.com/barkprotocol/ai-dashboard","commit_stats":null,"previous_names":["barkprotocol/ai-dashboard-dev"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fai-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fai-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fai-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fai-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barkprotocol","download_url":"https://codeload.github.com/barkprotocol/ai-dashboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245815858,"owners_count":20676983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-01T14:20:10.552Z","updated_at":"2025-03-27T09:25:15.594Z","avatar_url":"https://github.com/barkprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BARK Dashboard and Chat Application  \n**v0.1.0-beta**\n\nBARK is a Next.js–based dashboard and chat application built for the Solana blockchain. It combines real-time portfolio tracking, interactive charts, and AI-powered insights to elevate your decentralized finance (DeFi) experience.\n\n---\n\n## Overview\n\nBARK transforms how you interact with the Solana ecosystem by offering:\n\n- **AI-Driven Assistance \u0026 Chat**: Communicate with our AI agent to get instant insights and smart trade recommendations.\n- **Seamless Token Trading**: Execute token trades with confidence using AI-powered analysis that fetches and compares real-time data from Jupiter and Raydium decentralized exchanges.\n- **Comprehensive Dashboard**: Monitor your portfolio and market trends with an intuitive, responsive interface built with Next.js and Shadcn UI.\n\n*Note: All API endpoints—including those for add API functions, cron jobs, chat interactions, and wallet/portfolio operations—are organized as `route.ts` files within their respective directories for consistency and maintainability.*\n\n---\n\n## Features\n\n- **Real-Time Portfolio Tracking**  \n  Stay up-to-date with live data and interactive charts displaying your Solana assets.\n\n- **AI-Powered Insights**  \n  Leverage our integrated chat interface to receive actionable market insights and trading advice.\n\n- **Intuitive Token Trading**  \n  Select tokens easily from a dynamically populated dropdown and execute trades backed by real-time price analysis from both Jupiter and Raydium.\n\n- **Responsive \u0026 User-Friendly Design**  \n  Enjoy a seamless experience on any device, enhanced by robust user authentication and a clean, modern UI.\n\n- **Secure Integration**  \n  Protect your data with enhanced security features powered by Privy.\n\n---\n\n## Prerequisites\n\nBefore getting started, ensure you have the following installed:\n\n- **Node.js** (v20 or later)\n- A package manager such as **npm**, **pnpm**, or **yarn**\n- **Solana CLI** (optional, for advanced blockchain interactions)\n\n---\n\n## Environment Configuration\n\nCreate a `.env.local` file in the project root and add the following variables:\n\n```env\nNEXT_PUBLIC_API_URL=\u003cyour-api-url\u003e\nNEXT_PUBLIC_SOLANA_NETWORK=devnet\nNEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com\nNEXT_PUBLIC_PRIVY_API_KEY=\u003cyour-privy-api-key\u003e\nOPENAI_API_KEY=\u003cyour-openai-api-key\u003e\n```\n\n---\n\n## Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/bark-protocol/ai-agent-dashboard.git\n   cd ai-agent-dashboard\n   ```\n\n2. **Install dependencies:**\n\n   ```bash\n   pnpm install\n   # or\n   yarn install\n   ```\n\n3. **Start the development server:**\n\n   ```bash\n   pnpm run dev\n   # or\n   yarn dev\n   ```\n\n4. **Open your browser:**\n\n   Visit [http://localhost:3000](http://localhost:3000) to see the application in action.\n\n---\n\n## API Endpoints \u0026 Project Structure\n\nThe application interacts with key endpoints such as:\n\n- **`/api/jupiter`**: Retrieves price data from the Jupiter DEX.\n- **`/api/raydium`**: Retrieves price data from the Raydium DEX.\n\nIn addition, all other API functionalities (including add API functions, cron jobs, chat, and wallet/portfolio operations) are implemented via a standardized `route.ts` file in their respective directories. This unified approach simplifies maintenance and enhances consistency across the project.\n\n---\n\n## Technologies Used\n\n- **React**: For building the user interface.\n- **Next.js**: For server-side rendering and routing.\n- **Shadcn UI**: For a modern, component-based design.\n- **Tailwind CSS**: For utility-first styling.\n- **Sonner**: For toast notifications.\n- **Lucide Icons**: For contemporary UI icons.\n- **Privy**: For enhanced security and data privacy.\n- **OpenAI**: For AI-powered insights and recommendations.\n\n---\n\n## How It Works\n\n1. **Token Selection**:  \n   Choose input and output tokens from a dropdown populated with up-to-date token metadata.\n\n2. **Price Fetching**:  \n   Retrieve real-time pricing data from Jupiter and Raydium APIs.\n\n3. **AI Analysis**:  \n   The integrated AI analyzes the price data to determine the most favorable trading option.\n\n4. **Trade Execution**:  \n   Execute the trade with a single click, receiving immediate feedback through user notifications.\n\n---\n\n## Contributing\n\nContributions are welcome! To get involved:\n\n1. **Fork the repository.**\n2. **Create a new branch:**\n\n   ```bash\n   git checkout -b feature/your-feature\n   ```\n\n3. **Commit your changes:**\n\n   ```bash\n   git commit -m \"Describe your feature or fix\"\n   ```\n\n4. **Push your branch:**\n\n   ```bash\n   git push origin feature/your-feature\n   ```\n\n5. **Open a pull request** with a clear description of your changes.\n\n---\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Fai-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarkprotocol%2Fai-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Fai-dashboard/lists"}