{"id":23557471,"url":"https://github.com/barkprotocol/stake-to-earn-ui","last_synced_at":"2025-06-17T02:34:09.441Z","repository":{"id":269150355,"uuid":"906485092","full_name":"barkprotocol/stake-to-earn-ui","owner":"barkprotocol","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-21T09:31:50.000Z","size":46100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T14:45:22.615Z","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":"2024-12-21T03:21:23.000Z","updated_at":"2024-12-21T09:31:55.000Z","dependencies_parsed_at":"2024-12-21T10:37:06.770Z","dependency_job_id":null,"html_url":"https://github.com/barkprotocol/stake-to-earn-ui","commit_stats":null,"previous_names":["barkprotocol/stake-to-earn-ui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fstake-to-earn-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fstake-to-earn-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fstake-to-earn-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fstake-to-earn-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barkprotocol","download_url":"https://codeload.github.com/barkprotocol/stake-to-earn-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442229,"owners_count":22071860,"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":"2024-12-26T14:30:56.431Z","updated_at":"2025-05-15T23:31:14.727Z","avatar_url":"https://github.com/barkprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BARK | Stake to Earn WebUI/UX\n\n**Project Repository**: [BARK Airdrop Launchpad](https://github.com/barkprotocol/airdrop-launchpad)\n\n## Overview\n\nStake your BARK tokens and earn BARK Protocol tokens through our intuitive platform. The easy-to-use interface helps you securely stake your tokens and start earning rewards today!\n\n### Tech Stack\n\n- **Frontend**: \n  - **Next.js**: For server-side rendering and static site generation, enabling fast and optimized delivery of content.\n  - **React**: A component-based library for building dynamic user interfaces.\n  - **Shadcn/UI**: A set of reusable UI components to speed up development and improve UX consistency.\n  - **Tailwind CSS**: A utility-first CSS framework for rapid and customizable UI design.\n  - **Solana Wallet Adapter**: Supports integration with popular Solana wallets like Phantom, Backpack, and Solflare.\n\n- **Backend**:\n  - **Admin Dashboard**: A powerful dashboard for managing staking operations, users, and rewards.\n  - **Solana Blockchain**: The backbone of the application, ensuring decentralized and secure transactions for token staking and rewards.\n  - **Prisma ORM**: An advanced database tool for seamless data management and interactions with the backend.\n  - **Helius API**: A reliable API for blockchain interaction, fetching transaction data, and processing eligibility checks.\n\n- **Deployment**:\n  - **Vercel**: Platform for deploying the dApp with automatic CI/CD workflows for efficient updates and scalability.\n\n## Features\n\n- **Wallet Connection**: Securely connects with popular Solana wallets such as Phantom, Backpack, and Solflare.\n- **Staking \u0026 Rewards**: Users can stake their BARK tokens and earn rewards in the form of BARK Protocol tokens.\n- **Multiple Transfers**: Transactions are split into the main claim, operational fees, and community fees for transparency and efficiency.\n- **Responsive Design**: Optimized for both mobile and desktop devices, ensuring a seamless experience for all users.\n- **Blockchain Integration**: Direct interaction with the Solana blockchain ensures transparent and secure operations.\n- **Shadcn/UI**: A set of prebuilt UI components that improve development speed while enhancing the user experience.\n- **Secure Transactions**: Implements strong security protocols for all sensitive operations.\n- **Prisma Integration**: Simplifies database management and ensures efficient handling of data.\n- **Comprehensive API**: Well-documented API endpoints for developers to integrate and interact with the platform.\n- **Documentation**: In-depth technical documentation available for better understanding and integration.\n\n## How it Works\n\nThe BARK Stake to Earn dApp allows users to stake BARK tokens and earn BARK Protocol tokens as rewards. The process involves:\n\n1. **Wallet Connection**: Users connect their Solana wallets (Phantom, Backpack, Solflare) to the dApp.\n2. **Staking**: After connecting their wallet, users can stake their BARK tokens directly through the UI.\n3. **Rewards**: Upon successful staking, users will start earning BARK Protocol tokens as rewards based on their stake and the current reward rate.\n4. **Fee Breakdown**: The claim process includes separate transfers for the main claim, operational fees, and community fees, ensuring transparency and efficiency.\n\n## Prerequisites\n\nBefore setting up the project, ensure you have the following requirements:\n\n- **Node.js**: Version 20.0.0 or later.\n- **pnpm**: Version 9.15.0 or later.\n- **Solana.web3.js**: For blockchain interactions with the Solana network.\n- **Prisma ORM**: Configured for efficient database management.\n- **Solana Wallet**: A supported wallet (e.g., Phantom, Backpack, Solflare).\n- **Shadcn/UI**: A UI component framework for building reusable and consistent components.\n\n### Installing Dependencies\n\nTo set up the required packages and libraries:\n\n```bash\npnpm add crypto-browserify stream-browserify url browserify-zlib stream-http https-browserify assert os-browserify path-browserify\n```\n\n## Installation\n\nTo install and run the BARK Stake to Earn dApp, follow these steps:\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/bark-protocol/stake-to-earn-web-ui.git\n   ```\n\n2. **Navigate to the project directory**:\n\n   ```bash\n   cd stake-to-earn-web-ui\n   ```\n\n3. **Install dependencies**:\n\n   ```bash\n   pnpm install\n   ```\n\n4. **Set up environment variables**:\n\n   Create a `.env.local` file in the root directory and populate it with the required and optional environment variables. Example:\n\n   ```env\n   NEXT_PUBLIC_SUPABASE_URL=your-supabase-url\n   NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key\n   NEXT_PUBLIC_SOLANA_NETWORK=devnet\n   NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com\n   SECRET_KEY=your-secret-key-here\n   JWT_SECRET=your-jwt-secret-key-here\n   NODE_ENV=development\n   ```\n\n5. **Run the development server**:\n\n   ```bash\n   pnpm dev\n   ```\n\n   Open [http://localhost:3000](http://localhost:3000) in your browser to view the dApp.\n\n## Deployment\n\nThe Stake to Earn dApp is optimized for deployment on Vercel. To deploy:\n\n1. Link your GitHub repository to your Vercel account.\n2. Add the required environment variables in the Vercel project settings.\n3. Deploy your application with a single click.\n\n## API\n\nThe application provides several API endpoints for interacting with the backend:\n\n- **`/api/stake`**: Endpoint for staking tokens.\n- **`/api/unstake`**: Endpoint for unstaking tokens.\n- **`/api/status`**: Endpoint for checking the staking status.\n  \nFor full API documentation and usage, refer to the `/docs` route of the application or [API Docs](/document).\n\n## Future Enhancements\n\n- **Gamification**: Introducing a rewards system with badges and achievements for staking milestones.\n- **Advanced Analytics**: Incorporating real-time analytics for users to track their staking progress and rewards.\n- **Mobile App**: Creating a dedicated mobile app for more accessible staking and reward tracking.\n- **Community Engagement**: Adding more features to enhance community involvement, such as governance or voting on future changes.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n## Contributing\n\nWe welcome contributions! Please fork the repository, make your changes, and submit a pull request with your improvements. All contributions are reviewed before merging.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Fstake-to-earn-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarkprotocol%2Fstake-to-earn-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Fstake-to-earn-ui/lists"}