Skip to content

feat(cli): framework-aware init — detect Next.js/Vite, scaffold a passing flow (Roadmap Phase 5) #73

Closed

Description

@jyotir-aditya

From ROADMAP.md Phase 5 (Distribution):

Framework-aware verfix init: detect Next.js/Vite, scaffold a working flow against the dev server, so first success takes minutes.

Task

Extend the init flow (cli/src/init-wizard.ts / init-noninteractive.ts):

  • Detect the framework from the project (package.json deps/scripts: next, vite, etc.) — a lookup, not a plugin system.
  • Default the base URL to the framework's conventional dev-server URL (Next.js :3000, Vite :5173), still confirmable in the wizard / overridable via flags.
  • Scaffold a flow that passes against the framework's default starter page (e.g. assert the root route loads without console errors), instead of the generic SCAFFOLD_FLOWS placeholder (cli/src/constants.ts) that needs hand-editing before first success.
  • Unknown framework ⇒ exactly today's behavior.

Why it matters

Phase 5 rationale: with zero users, adoption risk beats any missing feature. Time-to-first-green-run is the top of that funnel — a scaffold that passes on npx verfix init && verfix run teaches the loop works before the user writes anything.

Acceptance criteria

  • Next.js and Vite detected; correct default URL and a passing starter-page flow scaffolded
  • Non-detected projects behave exactly as today
  • --yes / env-var path honors detection (see cli/test/noninteractive.test.ts)
  • Covered by the existing standalone CLI test pattern

Activity

  1. added
    enhancement
    on Jul 9, 2026
  2. jyotir-aditya commented on Jul 11, 2026

    @jyotir-aditya
    ContributorAuthor

    Sequencing note: blocked on #66/#71 outcomes — framework-aware onboarding is adoption surface; the core verify-fix loop gets measured and validated on real apps before we grow the funnel into it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions