{"id":49927308,"url":"https://github.com/chubes4/wp-native","last_synced_at":"2026-05-17T01:00:09.593Z","repository":{"id":355275272,"uuid":"1227457354","full_name":"chubes4/wp-native","owner":"chubes4","description":"Turn any WordPress site into a real native app. Open source. Token auth. No WebViews.","archived":false,"fork":false,"pushed_at":"2026-05-10T20:20:55.000Z","size":305,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T00:59:57.509Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chubes4.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":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-02T17:57:19.000Z","updated_at":"2026-05-10T20:21:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chubes4/wp-native","commit_stats":null,"previous_names":["chubes4/wp-native"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chubes4/wp-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fwp-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fwp-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fwp-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fwp-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chubes4","download_url":"https://codeload.github.com/chubes4/wp-native/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fwp-native/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33124143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: 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":"2026-05-17T01:00:04.028Z","updated_at":"2026-05-17T01:00:09.576Z","avatar_url":"https://github.com/chubes4.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-native\n\n**Turn any WordPress site into a real native app.** An open-source React Native app shell + WordPress plugin pair built on the [Abilities API](https://make.wordpress.org/core/). Drop in a config, point it at a WordPress site running the `wp-native-auth` plugin, and get a real native iOS/Android app — drawer navigation, token-based auth, browser handoff, design tokens, ability-driven screens. Not a WebView wrapper. Not a SaaS. Not a no-code builder. A **framework** for WordPress mobile apps.\n\n## Status\n\n**Pre-alpha.** Single consumer: [extrachill-app](https://github.com/Extra-Chill/extrachill-app). The v0.1.0 surface (`wp-native-shell@0.1.0`, `wp-native-client@0.0.1`) is feature-complete for its scope but has not been verified on a real device yet. The API is not stable — expect breaking changes before 1.0.\n\n## Quick install\n\n```bash\n# React Native app (the common case)\nnpm install wp-native-shell wp-native-client\n\n# Gutenberg blocks or Node scripts (no React Native)\nnpm install wp-native-client\n```\n\n**Peer dependencies** (for `wp-native-shell`):\n\n- `react` \u003e= 19\n- `react-native` \u003e= 0.80\n- `expo-router` \u003e= 6\n- `react-native-gesture-handler` \u003e= 2\n\nYour WordPress site needs the **wp-native-auth** plugin installed and the Abilities API available (WordPress 7.0+).\n\n## Hello world\n\n`wp-native-shell` provides context providers and an auth gate. Your consumer app owns the navigation via expo-router's filesystem routing.\n\n```tsx\n// app/_layout.tsx\nimport { Slot } from 'expo-router';\nimport { WPNativeApp } from 'wp-native-shell';\nimport type { WPNativeConfig } from 'wp-native-shell';\n\nconst config: WPNativeConfig = {\n  api: {\n    baseUrl: 'https://example.com/wp-json',\n  },\n  tokenStorage: {\n    // Plug in your RN storage adapter (expo-secure-store, MMKV, etc.)\n    load: async () =\u003e null,\n    save: async () =\u003e {},\n    clear: async () =\u003e {},\n    getDeviceId: async () =\u003e 'your-uuid-v4',\n  },\n  navigation: {\n    sections: [\n      { id: 'feed', label: 'Feed', ability: 'wp/post.list' },\n    ],\n  },\n};\n\nexport default function RootLayout() {\n  return (\n    \u003cWPNativeApp config={config} loginScreen={LoginScreen}\u003e\n      \u003cSlot /\u003e\n    \u003c/WPNativeApp\u003e\n  );\n}\n```\n\n`\u003cWPNativeApp\u003e` composes (outer to inner): `ThemeProvider` \u003e `AuthProvider` \u003e `NavigationConfigProvider` \u003e `BrowserHandoffProvider` \u003e `AuthGate` \u003e `{children}`. The auth gate renders your `loginScreen` when logged out, a loading fallback during token initialization, and `children` (your expo-router `\u003cSlot/\u003e`) when authenticated.\n\nThe consumer mounts the drawer and section screens via expo-router's filesystem — see the [shell contract](https://github.com/chubes4/wp-native/blob/main/packages/shell/SHELL.md) for the full pattern.\n\n## Architecture\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│              Consumer App (React Native + expo-router)      │\n│                                                             │\n│   \u003cWPNativeApp config={...}\u003e{\u003cSlot/\u003e}\u003c/WPNativeApp\u003e         │\n│   Consumer owns routes, drawer layout, screens              │\n└────────────────────┬────────────────────────────────────────┘\n                     │\n                     ▼\n┌─────────────────────────────────────────────────────────────┐\n│                  wp-native-shell                            │\n│   Context providers (auth, theme, navigation, handoff),     │\n│   AuthGate, DrawerContent slot, generic ability-driven      │\n│   screens (AbilityList, AbilityDetail, SectionScreen)       │\n└─────┬───────────────────────────────────────┬───────────────┘\n      │                                       │\n      ▼                                       ▼\n┌──────────────────┐               ┌──────────────────────────┐\n│ wp-native-client │               │   wp-native-auth         │\n│                  │ ◄── talks to ─►   (WordPress plugin)     │\n│ Universal client │   WordPress   │                          │\n│   • discover()   │               │   8 abilities:           │\n│   • execute()    │               │   auth-login, register,  │\n│   • auth         │               │   refresh, logout, me,   │\n│                  │               │   sessions, revoke,      │\n│ Three transports │               │   browser-handoff        │\n│   • FetchTransport               │                          │\n│   • AuthFetchTransport           │   Token lifecycle,       │\n│   • WpApiFetchTransport          │   device sessions,       │\n│     (Gutenberg)  │               │   refresh rotation       │\n└──────────────────┘               └──────────────────────────┘\n```\n\nThe client doesn't know what abilities exist on a given WordPress site — **it asks.** `client.discover()` fetches the site's ability catalog. `client.execute('ability-name', args)` invokes any ability by name. Adding a new ability on the server makes it instantly available in the app, zero client changes.\n\n## Project layout\n\n```\nwp-native/\n├── packages/\n│   ├── shell/          wp-native-shell — React Native app shell\n│   ├── api-client/     wp-native-client — universal abilities client\n│   ├── meta/           wp-native — meta package (redirects to the real ones)\n│   └── theme/          Design token primitives\n├── plugins/\n│   └── wp-native-auth/ WordPress plugin — token auth (8 abilities)\n└── docs/               Roadmap + audit docs\n```\n\n## Documentation\n\nThe in-repo contract files are the deep-dive material for each topic:\n\n| Document | What it covers |\n|---|---|\n| [SHELL.md](https://github.com/chubes4/wp-native/blob/main/packages/shell/SHELL.md) | Full shell surface — auth, theme, navigation, app composition, browser handoff |\n| [SCREENS.md](https://github.com/chubes4/wp-native/blob/main/packages/shell/SCREENS.md) | Generic ability-driven screens — `AbilityList`, `AbilityDetail`, adapters |\n| [EXPO-ROUTER-REBASE.md](https://github.com/chubes4/wp-native/blob/main/packages/shell/EXPO-ROUTER-REBASE.md) | Architecture decision record for the expo-router migration |\n| [SCHEMAS.md](https://github.com/chubes4/wp-native/blob/main/plugins/wp-native-auth/SCHEMAS.md) | All 8 auth abilities — input/output schemas, error codes, extension hooks |\n| [ROADMAP.md](https://github.com/chubes4/wp-native/blob/main/docs/ROADMAP.md) | Milestone tracking + architectural principles |\n| [EC-ABILITIES-AUDIT.md](https://github.com/chubes4/wp-native/blob/main/docs/EC-ABILITIES-AUDIT.md) | Extra Chill dogfood audit — ability inventory + migration plan |\n\n## Compatibility\n\n| Dependency | Minimum version |\n|---|---|\n| WordPress | 7.0+ (Abilities API) |\n| React | \u003e= 19 |\n| React Native | \u003e= 0.80 |\n| expo-router | \u003e= 6 |\n| react-native-gesture-handler | \u003e= 2 |\n\n## License\n\nGPL-2.0-or-later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubes4%2Fwp-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchubes4%2Fwp-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubes4%2Fwp-native/lists"}