{"id":48647906,"url":"https://github.com/cxa/yifan","last_synced_at":"2026-04-19T07:10:35.302Z","repository":{"id":348045011,"uuid":"1191414751","full_name":"cxa/yifan","owner":"cxa","description":"Mobile client for Fanfou/饭否.","archived":false,"fork":false,"pushed_at":"2026-04-11T11:08:53.000Z","size":59168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-11T12:08:48.679Z","etag":null,"topics":[],"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/cxa.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-25T08:11:41.000Z","updated_at":"2026-04-11T11:09:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cxa/yifan","commit_stats":null,"previous_names":["cxa/gohan-src","cxa/yifan"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cxa/yifan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fyifan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fyifan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fyifan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fyifan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cxa","download_url":"https://codeload.github.com/cxa/yifan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2Fyifan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31825515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","response_time":63,"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":"2026-04-10T07:59:06.764Z","updated_at":"2026-04-15T04:01:41.147Z","avatar_url":"https://github.com/cxa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 一饭\n\nA React Native client for [Fanfou](https://fanfou.com), the Chinese microblogging platform.\n\n## Requirements\n\n- Node \u003e= 22.11.0\n- React Native development environment — see [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment)\n\n## Getting Started\n\n### Configure credentials\n\nThe app uses Fanfou's OAuth 1.0a API. You need a consumer key and secret from [Fanfou's developer platform](https://fanfou.com/apps).\n\nCreate a `.env` file in the repo root:\n\n```sh\nFANFOU_CONSUMER_KEY=your_consumer_key\nFANFOU_CONSUMER_SECRET=your_consumer_secret\n```\n\nThis file is gitignored. The `env:generate` script reads it and produces obfuscated native source files (`EnvSecrets.kt` for Android, `EnvSecrets.h`/`EnvSecrets.m` for iOS) that are also gitignored. The script runs automatically before `start`, `test`, `android`, and `ios` — you only need to run it manually if you change `.env` without triggering those commands:\n\n```sh\nnpm run env:generate\n```\n\n### Install dependencies\n\n```sh\nnpm install\n```\n\nFor iOS, also install CocoaPods dependencies:\n\n```sh\nbundle install          # once\nbundle exec pod install # in ios/ when native deps change\n```\n\n### Run\n\n```sh\nnpm start              # Metro bundler\nnpm run android        # Build \u0026 run Android\nnpm run ios            # Build \u0026 run iOS\n```\n\n## Development\n\n```sh\nnpm test               # Jest\nnpm run lint           # ESLint\nnpm run typecheck      # TypeScript + deprecation checks\nnpm run env:generate   # Generate obfuscated native secrets (runs automatically before start/test/android/ios)\n```\n\nRun a single test file:\n\n```sh\nnpm test -- __tests__/App.test.tsx\n```\n\n## Architecture\n\n**Monorepo**: app at repo root + `packages/rn-fanfou-client/` (OAuth 1.0a \u0026 Fanfou API client with native modules for iOS/Android).\n\n**Tech stack**:\n- React Native 0.84 with React 19 and React Compiler\n- TanStack Query v5 for data fetching\n- React Navigation (bottom tabs + native stack)\n- HeroUI Native + Tailwind CSS via Uniwind for styling\n- Keychain for auth state and user preferences persistence\n- i18next for internationalization\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Fyifan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxa%2Fyifan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Fyifan/lists"}