{"id":30341625,"url":"https://github.com/barkprotocol/nft-protocol-dev","last_synced_at":"2025-08-18T09:48:50.282Z","repository":{"id":306566571,"uuid":"1026609321","full_name":"barkprotocol/nft-protocol-dev","owner":"barkprotocol","description":"The BARK NFT Protocol enables exclusive access to a private Telegram community through the minting of Solana-based NFTs. It includes a Next.js minting portal, a Telegram verification bot, and an Admin Dashboard for analytics and moderation.","archived":false,"fork":false,"pushed_at":"2025-07-26T13:15:43.000Z","size":249,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-26T14:43:08.668Z","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":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-26T08:28:05.000Z","updated_at":"2025-07-26T13:15:47.000Z","dependencies_parsed_at":"2025-07-26T14:43:25.313Z","dependency_job_id":"31409481-5f7d-46f1-a69d-ea89d91c0004","html_url":"https://github.com/barkprotocol/nft-protocol-dev","commit_stats":null,"previous_names":["barkprotocol/nft-protocol-dev"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/barkprotocol/nft-protocol-dev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fnft-protocol-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fnft-protocol-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fnft-protocol-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fnft-protocol-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barkprotocol","download_url":"https://codeload.github.com/barkprotocol/nft-protocol-dev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkprotocol%2Fnft-protocol-dev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270975114,"owners_count":24678253,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-08-18T09:48:49.564Z","updated_at":"2025-08-18T09:48:50.253Z","avatar_url":"https://github.com/barkprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BARK NFT Protocol\n\nThe BARK NFT Protocol enables exclusive access to a private Telegram community through the minting of Solana-based NFTs. It includes a **Next.js minting portal**, a **Telegram verification bot**, and an **Admin Dashboard** for analytics and moderation.\n\n---\n\n## 🧩 System Components\n\n### 1. **Minting Portal (Next.js)**\n\n* Mint Standard or Premium BARK NFTs.\n* Connect Solana wallets (Phantom, Solflare, Backpack).\n* Show minting progress per collection.\n* Countdown to mint end time.\n\n### 2. **Telegram Bot (@BARKNFTBot)**\n\n* Validates Solana wallet ownership of a BARK NFT.\n* Sends invite link if the user owns at least 1 Standard or Premium NFT.\n* Logs all interactions to MongoDB.\n\n### 3. **Admin Dashboard**\n\n* View wallet verification logs.\n* Monitor minted NFT counts.\n* Filter by date, mint type, and outcome.\n\n---\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n* Node.js 20+\n* MongoDB (e.g., Atlas cluster) or Neon (Postgres)\n* Vercel + Render accounts\n* Phantom/Solflare Wallet\n\n---\n\n## 🔧 Setup Instructions\n\n### Monorepo\n\nInstall [pnpm](https://pnpm.io):\n\n```bash\nnpm install -g pnpm\n```\n\nInstall all packages:\n\n```bash\npnpm install\n```\n\nEach package lives in:\n\n```\n/apps/minting-portal\n/apps/telegram-bot\n/apps/dashboard\n```\n\n---\n\n## 📦 App: Minting Portal (`apps/minting-portal`)\n\n### Setup\n\n```bash\ncd apps/minting-portal ,\npnpm install\n```\n\nCreate `.env.local`:\n\n```env\nNEXT_PUBLIC_SOLANA_RPC_URL=https://api.mainnet-beta.solana.com\nNEXT_PUBLIC_BARK_STANDARD_MINT=\u003cSTANDARD_MINT_ADDRESS\u003e\nNEXT_PUBLIC_BARK_PREMIUM_MINT=\u003cPREMIUM_MINT_ADDRESS\u003e\nNEXT_PUBLIC_BARK_STANDARD_SUPPLY=1000\nNEXT_PUBLIC_BARK_PREMIUM_SUPPLY=500\n```\n\nRun:\n\n```bash\npnpm run dev\n```\n\nDeploy to Vercel:\n\n```bash\nvercel --prod\n```\n\n---\n\n## 🤖 App: Telegram Bot (`apps/telegram-bot`)\n\n### Setup\n\n```bash\ncd apps/telegram-bot\npnpm install\n```\n\nCreate `.env`:\n\n```env\nBOT_TOKEN=\u003cTELEGRAM_BOT_TOKEN\u003e\nSOLANA_RPC_URL=https://api.mainnet-beta.solana.com\nBARK_STANDARD_MINT=\u003cSTANDARD_MINT_ADDRESS\u003e\nBARK_PREMIUM_MINT=\u003cPREMIUM_MINT_ADDRESS\u003e\nTELEGRAM_GROUP_LINK=https://t.me/your_group\nMONGODB_URI=\u003cMONGODB_URI\u003e\n```\n\nRun:\n\n```bash\npnpm start\n```\n\nDeploy to Render (set env vars via dashboard).\n\n---\n\n## 🧑‍💼 App: Admin Dashboard (`apps/dashboard`)\n\n### Setup\n\n```bash\ncd apps/dashboard\npnpm install\n```\n\nCreate `.env.local`:\n\n```env\nNEXT_PUBLIC_SOLANA_RPC_URL=https://api.mainnet-beta.solana.com\nNEXT_PUBLIC_BARK_STANDARD_MINT=\u003cSTANDARD_MINT_ADDRESS\u003e\nNEXT_PUBLIC_BARK_PREMIUM_MINT=\u003cPREMIUM_MINT_ADDRESS\u003e\nMONGODB_URI=\u003cMONGODB_URI\u003e\nNEXT_PUBLIC_ADMIN_WALLETS=\u003cwallet1,wallet2,...\u003e\n```\n\nRun:\n\n```bash\npnpm run dev\n```\n\nDeploy to Vercel:\n\n```bash\nvercel --prod\n```\n\n---\n\n## 👥 User Instructions\n\n1. **Mint NFT**: Go to the [minting portal](https://bark-minting-portal.vercel.app), connect your wallet, and mint a Standard or Premium NFT.\n2. **Verify Ownership**: Send your wallet address to the bot [@BARKNFTBot](https://t.me/BARKNFTBot).\n3. **Join the Community**: If verified, you'll receive a Telegram invite link.\n\n---\n\n## 🧠 Developer Notes\n\n* Minting limited to 1 NFT per collection per wallet.\n* Mints are tracked using on-chain token account data.\n* Verification checks wallet’s token accounts for presence of eligible mints.\n* Minting fees are paid in SOL and sent to a configurable address.\n\n---\n\n## ✅ Security \u0026 Abuse Prevention\n\n* Telegram bot includes wallet validation.\n* MongoDB stores all verification attempts with user IDs and timestamps.\n* Prevent duplicate mints via token account checks.\n* Rate limiting to be implemented in the next update.\n\n---\n\n## 🛠 To Do (Next Milestones)\n\n* Add CAPTCHA to mint portal\n* Rate limiting on bot\n* Admin dashboard filters (date, success/failure)\n* NFT metadata rarity traits\n* Firebase push notifications for new mints (optional)\n\n---\n\n## 📫 Support\n\nJoin the BARK community on Telegram @bark\\_protocol or reach out via [support@barkprotocol.net](mailto:support@barkprotocol.net) for assistance.\n\n---\n\n## 📄 License\n\nMIT License. Copyright (c) 2025 BARK Protocol\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Fnft-protocol-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarkprotocol%2Fnft-protocol-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkprotocol%2Fnft-protocol-dev/lists"}