Skip to content

olegam/any-web-app-cli-template

Repository files navigation

Any Web App CLI Template

Discovery-first Bun + Playwright CLI template for web apps that require interactive browser login and 2FA.

What You Get

  • packages/any-web-app-api-client: session persistence, login capture, endpoint discovery, generic authenticated fetch client
  • packages/any-web-app-cli: Commander-based CLI with login, discover, fetch, and schema
  • TEMPLATE_INSTRUCTIONS.md: rename checklist, auth bootstrap workflow, and endpoint promotion guide

Quick Start

  1. Replace the placeholder name any-web-app everywhere it should become your product/app name.
  2. Update the URLs in packages/any-web-app-api-client/src/constants.ts.
  3. Run bun install.
  4. Run bun run any-web-app-cli login.
  5. Run bun run any-web-app-cli discover.
  6. Promote useful discovered endpoints into typed client methods and first-class CLI commands.

Commands

bun run any-web-app-cli login
bun run any-web-app-cli discover
bun run any-web-app-cli fetch /api/example --output json
bun run any-web-app-cli schema

Notes

  • The template is intentionally generic. It does not guess your domain-specific commands.
  • The login auto-save heuristics are conservative; adjust packages/any-web-app-api-client/src/login.ts for the target app if needed.
  • If the target app stores auth in indexedDB or service workers instead of cookies/storage, extend the session/bootstrap helpers before building typed commands.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors