
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
nextension
Advanced tools
Nextension is an advanced CLI (Command Line Interface) tool designed for developers proficient in Next.js to easily convert their Next.js applications into fully functional Chrome extensions. With Nextension, developers can rapidly create Chrome extensions from their Next.js projects, enabling them to leverage the power of Next.js for building progressive web applications and taking advantage of the Chrome extension ecosystem for distribution.
Nextension is equipped with a variety of features to simplify the process of transforming Next.js projects into Chrome extensions:
manifest.json
file, adhering to the Chrome Extension Manifest format. If a manifest.json
isn't found in your assets directory, it prompts you to generate a template.js-beautify
to enhance readability and maintainability of the HTML code.scripts
, styles
, and icons
, resulting in a clean directory structure.To install Nextension, ensure that you have Node.js version 14.0.0 or higher installed on your system.
For global installation, use the following command:
npm install -g nextension
This allows you to run nextension
from any directory:
nextension [options]
For local installation (specific to a project):
npm install --save-dev nextension
After you've installed Nextension, you can run it in your project using the following command:
npx nextension [options]
Option | Alias | Description |
---|---|---|
--help | -h | Run help command for options panel |
--verbose | -v | Run with verbose logging |
--generate-manifest | -m | Prompt to generate a manifest file if not present |
--generate-background | -b | Prompt to generate a background script if not present |
--generate-content | -c | Prompt to generate a content script if not present |
--generate-popup | -p | Prompt to generate a popup script and HTML if not present |
--generate-options | -o | Prompt to generate an options script and HTML if not present |
--generate-action | -a | Prompt to generate an action script if not present |
To use Nextension with verbose logging:
nextension --verbose
nextension -v
To generate a manifest file if not present:
nextension --generate-manifest
nextension -m
File / Directory | Description |
---|---|
dist/build.d.ts | TypeScript definition file for build.js |
dist/build.js | Transpiled JavaScript file of build.ts |
dist/build.js.map | Source map file for build.js |
dist/cli.d.ts | TypeScript definition file for cli.js |
dist/cli.js | Transpiled JavaScript file of cli.ts |
dist/cli.js.map | Source map file for cli.js |
dist/utils.d.ts | TypeScript definition file for utils.js |
dist/utils.js | Transpiled JavaScript file of utils.ts |
dist/utils.js.map | Source map file for utils.js |
src/build.ts | TypeScript source file for the build process |
src/cli.ts | TypeScript source file for the CLI |
src/utils.ts | TypeScript source file for utility functions |
package-lock.json | Automatically generated file for any operations where npm modifies node_modules or package.json |
package.json | File that lists the packages your project depends on |
README.md | The file that contains the documentation for your project |
tsconfig.json | The configuration file for the TypeScript compiler |
If you encounter any issues while using Nextension, please open an issue on GitHub.
We appreciate contributions from the developer community! To contribute:
If you have any questions or need assistance with the contribution process, feel free to reach out to us on GitHub.
Nextension is open-source software released under the MIT License. Feel free to use and modify Nextension as per the terms of the license.
Thank you for choosing Nextension! We hope you find it a valuable tool for building powerful Chrome extensions with the ease and flexibility of Next.js. Happy coding!
FAQs
A CLI tool to build Next.js applications as Chrome extensions
The npm package nextension receives a total of 1 weekly downloads. As such, nextension popularity was classified as not popular.
We found that nextension demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.