Skip to content

feat: add examples folder with local testing app for catalyst-core#246

Open
mayankmahavar1mg wants to merge 2 commits into
mainfrom
example/test_universal_app
Open

feat: add examples folder with local testing app for catalyst-core#246
mayankmahavar1mg wants to merge 2 commits into
mainfrom
example/test_universal_app

Conversation

@mayankmahavar1mg
Copy link
Copy Markdown
Collaborator

Summary

  • Introduces examples/ — a directory for local test apps that live in the repo but are never npm-published or included in workspaces
  • Adds examples/sync-core.js: shared script that clears stale artifacts, rebuilds packages/catalyst-core from source, and injects the full package into the example's node_modules. Any future example app can wire it up with one line in package.json
  • Adds examples/test-video-hook-poc/: a full Catalyst app covering 12 hooks (camera, video stream, file picker, haptics, notifications, device info, safe area, network, intent, Google Sign-In, data protection, camera permission). Tested locally via Antigravity
  • Includes prompt.txt — paste into Claude Code (with catalyst_mcp) to auto-generate the three gitignored config files for any machine
  • Includes README.md with full setup steps and catalyst_mcp as a documented prerequisite

Test plan

  • Run npx create-catalyst-app@latest catalyst-mcp to set up catalyst_mcp
  • npm install from inside examples/test-video-hook-poc/
  • Run prompt.txt via Claude Code to generate config files
  • npm run sync-core — verify it cleans, builds, and copies catalyst-core into node_modules
  • npm start — verify app boots
  • npm run buildApp:ios / buildApp:android — verify native build works
  • Confirm config/config.json, google-services.json, GoogleService-Info.plist are not tracked by git

🤖 Generated with Claude Code

mayankmahavar1mg and others added 2 commits May 19, 2026 16:34
Introduces an examples/ directory for local testing of catalyst-core changes before release. Each example app is self-contained, lives outside npm workspaces, and is never published.

- examples/sync-core.js: shared script that clears stale dist + node_modules/catalyst-core, rebuilds catalyst-core fresh, and copies the full package into the example's node_modules. Reusable by any future example app via `npm run sync-core`.
- examples/test-video-hook-poc/: full Catalyst app covering camera, video stream, file picker, haptics, notifications, device info, and more. Used to validate hook behaviour against a real app before cutting a release.
- prompt.txt: paste into Claude Code (with catalyst_mcp) to auto-generate the three gitignored config files (config.json, google-services.json, GoogleService-Info.plist) for any machine.
- README.md: step-by-step setup guide — generate configs, npm install, sync-core, run.
- .gitignore updated to exclude examples/*/build, examples/*/logs, and the three generated config files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Added a Prerequisites section to README.md and a header comment in prompt.txt — both point to `npx create-catalyst-app@latest catalyst-mcp` as the required setup step before running the config generation prompt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@deputydev-agent
Copy link
Copy Markdown

DeputyDev will no longer review pull requests automatically.To request a review, simply comment #review on your pull request—this will trigger an on-demand review whenever you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant