{"id":31445102,"url":"https://github.com/zh/farm-wallet","last_synced_at":"2025-09-30T22:41:16.840Z","repository":{"id":313124413,"uuid":"1049784250","full_name":"zh/farm-wallet","owner":"zh","description":"Simple single-token eCash wallet with internationalization","archived":false,"fork":false,"pushed_at":"2025-09-11T11:29:42.000Z","size":131,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-11T14:10:17.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zh.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-03T13:44:28.000Z","updated_at":"2025-09-11T11:29:46.000Z","dependencies_parsed_at":"2025-09-04T04:39:36.327Z","dependency_job_id":null,"html_url":"https://github.com/zh/farm-wallet","commit_stats":null,"previous_names":["zh/farm-wallet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zh/farm-wallet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Ffarm-wallet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Ffarm-wallet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Ffarm-wallet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Ffarm-wallet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zh","download_url":"https://codeload.github.com/zh/farm-wallet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Ffarm-wallet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277767639,"owners_count":25873630,"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-09-30T02:00:09.208Z","response_time":75,"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-09-30T22:41:13.701Z","updated_at":"2025-09-30T22:41:16.834Z","avatar_url":"https://github.com/zh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Farm Wallet\n\nA simple, user-friendly single-token wallet for eCash (XEC) built with React and Vite. This wallet is designed to handle one specific token at a time, making it perfect for projects that need a focused, streamlined wallet experience.\n\n## Features\n\n- 🪙 **Single-token focus** - Configure for one specific token\n- 🌍 **Multi-language support** - Built-in internationalization\n- 📱 **Mobile-friendly** - Responsive design that works on all devices  \n- 📷 **QR code support** - Scan QR codes for easy transactions\n- ⚡ **Fast development** - Built with Vite for quick development cycles\n- 🔄 **Modern state management** - Uses Jotai for predictable state handling\n\n## Quick Start\n\n### 1. Clone and Install\n\n```bash\ngit clone https://github.com/zh/farm-wallet.git\ncd farm-wallet\nnpm install\n```\n\n### 2. Configure Your Token\nCopy the environment example file and set your token ID:\n\n```bash\ncp .env.example .env\n```\n\nEdit `.env` and set your token ID:\n\n```bash\nVITE_TOKEN_ID=your_token_id_here\n```\n\n### 3. Start Development\n\n```bash\nnpm run dev\n```\n\nYour wallet will be available at `http://localhost:5173`\n\n## Environment Configuration\n\n### Setting VITE_TOKEN_ID\n\nThe `VITE_TOKEN_ID` is the most important configuration. This determines which token your wallet will handle.\n\n1. **Find your token ID**: This is a long string (usually 64 characters) that uniquely identifies your token on the eCash network\n2. **Add it to .env**: Replace `your_token_id_here` with your actual token ID\n3. **Restart the dev server**: Environment changes require a restart\n\nExample:\n\n```bash\nVITE_TOKEN_ID=4bd147fc5d5ff26249a9299c46b80920c0b81f59a60895a2ca91a5a6fb9d8da1\n```\n\n### Other Configuration Options\n\nYou can add other environment variables to customize the wallet:\n\n```bash\n# Optional: Custom API endpoints\nVITE_API_BASE_URL=https://your-api.com\n\n# Optional: Network configuration  \nVITE_NETWORK=mainnet\n```\n\n## Development Commands\n\n```bash\n# Start development server\nnpm run dev\n\n# Build for production\nnpm run build\n\n# Preview production build\nnpm run preview\n\n# Run linting\nnpm run lint\n\n# Fix linting issues automatically\nnpm run lint:fix\n```\n\n## Repository Structure\n\n```\nfarm-wallet/\n├── src/\n│   ├── components/     # Reusable UI components\n│   ├── pages/          # Main wallet pages\n│   ├── hooks/          # Custom React hooks\n│   ├── utils/          # Helper functions\n│   ├── i18n/          # Translation files\n│   └── styles/        # Styling\n├── public/            # Static assets\n└── dist/             # Built files (after npm run build)\n```\n\n## Deployment\n\n### Deploy to Vercel\n1. Build your project: `npm run build`\n2. Install Vercel CLI: `npm i -g vercel`\n3. Deploy: `vercel --prod`\n4. Set `VITE_TOKEN_ID` environment variable in your Vercel dashboard\n\n### Deploy to Netlify\n1. Build your project: `npm run build`\n2. Upload the `dist/` folder to Netlify\n3. Set environment variables in your Netlify site settings\n\n### Deploy Anywhere\nThe wallet builds to static files, so you can deploy the `dist/` folder to any web server:\n\n```bash\nnpm run build\n# Upload everything in dist/ to your web server\n```\n\n## Customizing the Wallet\n\n### Adding New Languages\n1. Add translation files in `src/i18n/locales/`\n2. Import them in `src/i18n/index.js`\n3. The wallet will automatically detect user language\n\n### Styling\n- Global styles: `src/styles/`\n- Component styles: Each component has its own CSS file\n- The wallet uses modern CSS with CSS custom properties\n\n### Adding Features\n1. Create new components in `src/components/`\n2. Add new pages in `src/pages/`\n3. Use Jotai atoms in `src/atoms.js` for state management\n\n## Troubleshooting\n\n### Common Issues\n\n**Wallet won't start**: Make sure you've set `VITE_TOKEN_ID` in your `.env` file\n\n**Token not loading**: Verify your token ID is correct and the token exists on the eCash network\n\n**Build failing**: Run `npm run lint:fix` to fix common code issues\n\n**Dependencies issues**: Delete `node_modules` and `package-lock.json`, then run `npm install`\n\n## Contributing\n\nThis wallet is open source and welcomes contributions!\n\n1. Fork the repository: https://github.com/zh/farm-wallet\n2. Create a feature branch: `git checkout -b feature/amazing-feature`\n3. Make your changes and test them\n4. Run the linter: `npm run lint:fix`\n5. Commit your changes: `git commit -m 'Add amazing feature'`\n6. Push to your branch: `git push origin feature/amazing-feature`\n7. Open a Pull Request\n\n## Tech Stack\n\n- **Frontend**: React 19 + Vite 6\n- **State Management**: Jotai\n- **Styling**: Modern CSS\n- **Blockchain**: ecash-lib for eCash integration\n- **QR Codes**: Built-in QR code scanning and generation\n- **i18n**: react-i18next for translations\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Ffarm-wallet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzh%2Ffarm-wallet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Ffarm-wallet/lists"}