Skip to content

Add Opusify command to include plugins and features post-creation#55

Merged
Josephat-S merged 1 commit into
devfrom
feat/commands
May 25, 2026
Merged

Add Opusify command to include plugins and features post-creation#55
Josephat-S merged 1 commit into
devfrom
feat/commands

Conversation

@Josephat-S
Copy link
Copy Markdown
Contributor

This pull request introduces a new extensible plugin system for the Opusify CLI, allowing users to add feature plugins (authentication, dark mode, analytics) to existing projects via a new add command. It implements the command handler, plugin registry, and plugin logic for each feature, supporting both Next.js and Vite project architectures where appropriate.

New Plugin System and CLI Command:

  • Added a new add CLI command to Opusify, enabling users to add feature plugins (auth, dark-mode, analytics) to existing projects. The command validates the project context and plugin name, applies plugin logic, writes new files, and installs required dependencies. (index.js/src/commands/add.js) [1] [2] [3]

Feature Plugin Implementations:

Authentication Plugin (Next.js only):

  • Provides NextAuth.js configuration, API route, login page, and middleware for route protection. Adds the next-auth dependency and demo credentials for local development. (src/plugins/auth.js)

Dark Mode Plugin:

  • Adds a theme toggle component and theme provider for both Next.js and Vite projects, allowing users to switch between predefined themes. (src/plugins/dark-mode.js)

Analytics Plugin:

  • For Next.js, adds Vercel Analytics and Speed Insights integration with a reusable provider component and setup instructions. For Vite, adds a generic analytics component and documentation for integrating Plausible or Google Analytics. Installs necessary dependencies for Next.js. (src/plugins/analytics.js)…t has been created

Closes #41

@Josephat-S Josephat-S requested a review from a team May 25, 2026 18:48
@Josephat-S Josephat-S merged commit 062ed3b into dev May 25, 2026
1 check passed
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.

opusify add Command (Post-Scaffold Plugins)

1 participant