{"id":20736809,"url":"https://github.com/nishantcoder108/solcapita","last_synced_at":"2026-04-14T04:31:21.135Z","repository":{"id":262501772,"uuid":"887432860","full_name":"NishantCoder108/solcapita","owner":"NishantCoder108","description":"Building a staking token platform where users can connect their wallets, mint and burn tokens, with live communication enabled through WebSocket.","archived":false,"fork":false,"pushed_at":"2024-11-12T18:35:26.000Z","size":580,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T16:16:49.383Z","etag":null,"topics":["blockchain","burning","express","minting","nodejs","reactjs","solana","token","typescript","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NishantCoder108.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-12T18:27:44.000Z","updated_at":"2024-11-13T18:03:32.000Z","dependencies_parsed_at":"2024-11-12T19:43:03.375Z","dependency_job_id":null,"html_url":"https://github.com/NishantCoder108/solcapita","commit_stats":null,"previous_names":["nishantcoder108/solcapita"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishantCoder108%2Fsolcapita","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishantCoder108%2Fsolcapita/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishantCoder108%2Fsolcapita/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishantCoder108%2Fsolcapita/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NishantCoder108","download_url":"https://codeload.github.com/NishantCoder108/solcapita/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243023277,"owners_count":20223386,"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":["blockchain","burning","express","minting","nodejs","reactjs","solana","token","typescript","web3"],"created_at":"2024-11-17T06:11:53.083Z","updated_at":"2025-12-25T04:53:00.386Z","avatar_url":"https://github.com/NishantCoder108.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SolCapita\n\n## Overview\n\nThis SolCapita App is a decentralized application (dApp) that allows users to stake their Solana tokens and earn rewards. Built on the Solana blockchain, this app provides a seamless and efficient staking experience with real-time updates and secure transactions.\n\n## Demo \u0026 Screenshots\n\n### Video Demo\n\n[![SolCapita Demo](https://img.youtube.com/vi/FVNFxiO6NXU/0.jpg)](https://www.youtube.com/watch?v=FVNFxiO6NXU)\n\nClick the image above to watch the demo video on YouTube.\n\n### Screenshots\n\n#### Home Page\n\n![Home Page](./screenshots/home.png)\n_Main dashboard showing staking interface_\n\n#### Staking Process\n\n![Staking Process](./screenshots/depositSol.png)\n_Real-time staking transaction flow_\n\n#### Staking Complete\n\n![Staking Complete](./screenshots/finalcode.png)\n_Staking complete_\n\n## Features\n\n-   User-friendly interface for staking and burning staking tokens\n-   Real-time reward calculation and distribution\n-   Secure wallet integration\n-   Transaction history\n-   Mobile-responsive design\n\n## Technology Stack\n\n-   **Frontend**: React.js, TypeScript, Tailwind CSS , shadcn/ui\n-   **Backend**: Node.js, Express.js, TypeScript , Mongoose\n-   **Blockchain**: Solana , Web3.js\n-   **Database**: MongoDB\n-   **State Management**: Context API\n-   **API**: RESTful API, WebSocket for real-time updates (socket.io)\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n-   Node.js (v14.x or later)\n-   npm (v6.x or later)\n-   Solana CLI tools\n\n## Setup and Installation\n\n1. Clone the repository:\n\n    ```\n    git clone https://github.com/nishantcoder108/solcapita.git\n    cd solcapita\n    ```\n\n2. Install dependencies:\n\n    ```\n    # Install frontend dependencies\n    cd client\n    npm install\n\n    # Install backend dependencies\n    cd ../backend\n    npm install\n    ```\n\n3. Set up environment variables:\n\n    - Copy `.env.example` to `.env` in the `backend` and in client directory\n    - Fill in the required environment variables\n\n4. Set up the database:\n\n    ```\n    docker pull mongo\n    docker run --name mongodb -d -p 27017:27017 -v mongo-data:/data/db mongo\n    ```\n\n## Running the Application\n\n1. Start the backend server:\n\n    ```\n    cd backend\n    npm run dev\n    ```\n\n2. Start the frontend development server:\n\n    ```\n    cd client\n    npm start\n    ```\n\n3. Access the application at `http://localhost:5173` for frontend and `http://localhost:5000` for backend\n\n## Application Flow\n\n### User Interaction Flow\n\n1. **Initial Connection**\n\n    - User connects their Solana wallet (e.g., Phantom)\n    - Application establishes WebSocket connection for real-time updates\n\n2. **Deposit Process**\n    - User inputs desired SOL amount for staking\n    - Clicks \"Deposit Sol Securely\" to initiate transaction\n    - Phantom wallet prompts for transaction approval\n\n### Backend Processing Flow\n\n1. **Transaction Verification**\n\n    - Helius webhook triggers upon successful transaction\n    - Backend validates:\n        - Transaction type\n        - Authorization parameters\n        - Transaction signature uniqueness in database\n\n2. **Token Processing**\n    - System checks/creates Associated Token Account (ATA)\n    - Initiates minting process for staking tokens\n    - Real-time status updates via WebSocket\n\n### Technical Implementation Details\n\n```mermaid\ngraph TD\n    A[User Interface] --\u003e|1. Deposit SOL| B[Solana Network]\n    B --\u003e|2. Transaction Confirmation| C[Helius Webhook]\n    C --\u003e|3. Trigger| D[Backend Server]\n    D --\u003e|4. Verify Transaction| E[Database Check]\n    E --\u003e|5. Process Token| F[Token Minting]\n    F --\u003e|6. Status Update| G[WebSocket]\n    G --\u003e|7. Notification| A\n```\n\n1. **Frontend Layer**\n\n    - React/TypeScript interface for user interactions\n    - Real-time WebSocket listeners for transaction updates\n    - Phantom wallet integration for secure transactions\n\n2. **Blockchain Layer**\n\n    - Solana network transaction processing\n    - Web3.js for blockchain interactions\n    - Associated Token Account management\n\n3. **Backend Layer**\n\n    - Express.js server handling webhook events\n    - MongoDB for transaction signature verification\n    - Socket.io for real-time client communication\n\n4. **Monitoring Layer**\n    - Helius webhook integration for transaction monitoring\n    - Real-time status tracking and notifications\n    - Transaction verification and validation\n\n### Security Measures\n\n-   Transaction signature verification\n-   Duplicate transaction prevention\n-   Secure WebSocket connections\n-   Environment variable protection\n-   Wallet authorization checks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishantcoder108%2Fsolcapita","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnishantcoder108%2Fsolcapita","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishantcoder108%2Fsolcapita/lists"}