{"id":18780523,"url":"https://github.com/barkprotocol/blink-e-commerce-demo","last_synced_at":"2026-03-01T14:02:28.679Z","repository":{"id":257056543,"uuid":"850920699","full_name":"barkprotocol/blink-e-commerce-demo","owner":"barkprotocol","description":"Solana Blink is part of BARK Protocol's broader efforts to create decentralized finance (DeFi) and SocialFi solutions that empower communities and facilitate impactful charity initiatives. It integrates advanced blockchain features to offer a seamless, fast, and secure e-commerce experience. ","archived":false,"fork":false,"pushed_at":"2025-04-02T15:37:26.000Z","size":258265,"stargazers_count":0,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T11:52:17.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blink-e-commerce.vercel.app/","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,"zenodo":null}},"created_at":"2024-09-02T04:58:09.000Z","updated_at":"2024-10-08T12:35:26.000Z","dependencies_parsed_at":"2025-04-13T11:50:40.598Z","dependency_job_id":null,"html_url":"https://github.com/barkprotocol/blink-e-commerce-demo","commit_stats":null,"previous_names":["barkprotocol/blink-e-commerce","barkprotocol/blink-e-commerce-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/barkprotocol/blink-e-commerce-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fblink-e-commerce-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fblink-e-commerce-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fblink-e-commerce-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fblink-e-commerce-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barkprotocol","download_url":"https://codeload.github.com/barkprotocol/blink-e-commerce-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fblink-e-commerce-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29970543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T13:32:00.443Z","status":"ssl_error","status_checked_at":"2026-03-01T13:32:00.084Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-07T20:26:55.003Z","updated_at":"2026-03-01T14:02:28.656Z","avatar_url":"https://github.com/barkprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BARK E-Commerce Platform\n\n## Overview\n\nThe BARK E-Commerce Platform offers a seamless way to create and manage online stores with integrated Solana wallet connections. Our platform ensures secure payments, dynamic previews, and smooth store setup for merchants, leveraging the power of blockchain technology.\n\n![BARK Commerce Web UI](.github/assets/webui.png)\n\n![Merchant - Create Shop](.github/assets/create-shop.png)!\n\n## Features\n\n- **Store Setup**: Easily set up and manage your store, add products, and configure payment and shipping settings.\n- **Sharing Store Links**: Generate custom links and share them on social media with dynamic previews.\n- **Solana Wallet Integration**: Securely connect Solana wallets like Phantom, Solflare, and Backpack to make payments and manage digital assets.\n- **Dynamic Store Links**: Share unique store links on social media with previews for a streamlined shopping experience.\n- **Payment Handling**: Secure payments via an escrow system with automatic refunds in case of disputes or cancellations.\n\n```commerce\nsrc/\n├── app/\n│   ├── (auth)/\n│   │   ├── login/\n│   │   │   └── page.tsx\n│   │   ├── register/\n│   │   │   └── page.tsx\n│   │   └── layout.tsx\n│   ├── (shop)/\n│   │   ├── products/\n│   │   │   ├── [id]/\n│   │   │   │   └── page.tsx\n│   │   │   └── page.tsx\n│   │   ├── categories/\n│   │   │   ├── [category]/\n│   │   │   │   └── page.tsx\n│   │   │   └── page.tsx\n│   │   ├── cart/\n│   │   │   └── page.tsx\n│   │   ├── checkout/\n│   │   │   └── page.tsx\n│   │   └── layout.tsx\n│   ├── (merchant)/\n│   │   ├── dashboard/\n│   │   │   └── page.tsx\n│   │   ├── products/\n│   │   │   ├── create/\n│   │   │   │   └── page.tsx\n│   │   │   ├── edit/\n│   │   │   │   ├── [id]/\n│   │   │   │   │   └── page.tsx\n│   │   │   │   └── page.tsx\n│   │   │   └── page.tsx\n│   │   ├── orders/\n│   │   │   └── page.tsx\n│   │   ├── settings/\n│   │   │   └── page.tsx\n│   │   └── layout.tsx\n│   ├── api/\n│   │   ├── auth/\n│   │   │   └── [...nextauth].ts\n│   │   ├── products/\n│   │   │   └── route.ts\n│   │   ├── orders/\n│   │   │   └── route.ts\n│   │   └── webhook/\n│   │       └── route.ts\n│   ├── about/\n│   │   └── page.tsx\n│   ├── contact/\n│   │   └── page.tsx\n│   ├── page.tsx\n│   └── layout.tsx\n├── components/\n│   ├── ui/\n│   │   ├── button.tsx\n│   │   ├── input.tsx\n│   │   ├── card.tsx\n│   │   └── ...\n│   ├── layout/\n│   │   ├── header.tsx\n│   │   ├── footer.tsx\n│   │   ├── main-header.tsx\n│   │   └── shop-header.tsx\n│   ├── products/\n│   │   ├── product-card.tsx\n│   │   ├── product-list.tsx\n│   │   └── product-details.tsx\n│   ├── cart/\n│   │   ├── cart-item.tsx\n│   │   └── cart-summary.tsx\n│   ├── checkout/\n│   │   ├── checkout-form.tsx\n│   │   └── payment-methods.tsx\n│   └── merchant/\n│       ├── product-form.tsx\n│       └── order-list.tsx\n├── lib/\n│   ├── utils.ts\n│   ├── api.ts\n│   └── db.ts\n├── hooks/\n│   ├── use-cart.ts\n│   ├── use-auth.ts\n│   └── use-products.ts\n├── styles/\n│   └── globals.css\n├── types/\n│   ├── product.ts\n│   ├── order.ts\n│   └── user.ts\n└── config/\n    └── site.ts\n```\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v14 or later)\n- npm (v6 or later) or yarn (v1.22 or later)\n- Prisma CLI\n- Solana wallet (Phantom, Solflare, or Backpack)\n\n### Installation\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/barkprotocol/blink-commerce.git\n   cd blink-commerce\n   ```\n\n2. **Install Dependencies**:\n   ```bash\n   pnpm install\n   # or\n   yarn install\n   ```\n\n3. **Configure Environment Variables**:\n   Create a `.env` file in the root directory and add the following:\n   ```env\n   DATABASE_URL=your-database-url\n   NEXT_PUBLIC_SOLANA_NETWORK=devnet\n   NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com\n   NEXT_PUBLIC_PAYMENT_GATEWAY_API_KEY=your-payment-gateway-api-key\n   ```\n\n4. **Run Migrations**:\n   ```bash\n   npx prisma migrate dev\n   ```\n\n5. **Start the Development Server**:\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n   ```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Usage Guide\n\n### 1. Store Setup\n\n#### Sign Up\n1. Navigate to the registration page and provide your email, password, and store name.\n2. Verify your email address to activate your account.\n\n#### Add Products\n1. Log in to your dashboard.\n2. Click on \"Add Product\" and fill in the details:\n   - Upload product images\n   - Enter product titles and descriptions\n   - Set prices and manage stock quantities\n   - Assign products to categories\n\n#### Configure Settings\n1. Go to the \"Store Settings\" section.\n2. Set up payment options, shipping methods, and tax settings.\n\n#### Publish Your Store\n1. Review your store setup.\n2. Click \"Publish\" to make your store live.\n\n### 2. Sharing Store Links\n\n1. From your dashboard, click on \"Generate Store Link\".\n2. Customize your store URL if desired.\n3. Use the provided social media buttons to share your store link on various platforms.\n\n### 3. Payment Handling\n\n- Payments are automatically processed through our secure escrow system.\n- Funds are held until the order is confirmed as completed.\n- In case of disputes or cancellations, refunds are processed automatically.\n\n## Development\n\n### Tech Stack\n\n- Next.js 13+\n- TypeScript\n- Prisma (ORM)\n- Tailwind CSS\n- Solana Web3.js\n\n### API Routes\n\nOur API routes are defined in `app/actions.json/route.ts`. They handle:\n\n- Store creation and management\n- Product CRUD operations\n- Custom link generation\n- Payment processing\n\nFor detailed API documentation, please refer to our [API Documentation](docs/API.md).\n\n## Contributing\n\nWe welcome contributions to the BARK E-Commerce Platform! Please follow these steps:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## ToDo\n\n- Modular and need to refactored\n- Merchant Dashboard\n- User Account\n- Solana wallet login\n- Hide main-navbar when create shop is activated\n\n## Acknowledgements\n\n- [Solana](https://solana.com/) for providing the blockchain infrastructure\n- [Next.js](https://nextjs.org/) for the fantastic React framework\n- [Prisma](https://www.prisma.io/) for the powerful ORM","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Fblink-e-commerce-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarkprotocol%2Fblink-e-commerce-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Fblink-e-commerce-demo/lists"}