What problem does it solve?
This Skill automates the process of extracting reusable core logic from a web application into a standalone, publishable npm package, making it available for both the original application and external developers.
Core Features & Use Cases
- Logic Extraction: Identifies and separates framework-agnostic business logic from web application code.
- Package Creation: Generates a complete npm package structure with
package.json, tsconfig.json, and build configurations.
- Dual Build: Supports both CommonJS (CJS) and ECMAScript Modules (ESM) formats with TypeScript declarations.
- CLI Integration: Optionally includes a command-line interface for the extracted SDK.
- Self-Consumption: Ensures the web application consumes the newly created package, validating the extraction.
- Use Case: You have a complex data validation and transformation module within your Next.js application that you want to share with other projects or offer as a public library. This skill will help you package it correctly.
Quick Start
Use the sdk-beside-app skill to extract the core business logic from the current web application into a new npm package named 'my-utility-sdk'.