Giter Club home page Giter Club logo

next-chrome's Introduction

nextjs-chrome-extension

An unopiniated starter for developing Chrome extensions using Next.js

Screenshot of nextjs-chrome-extension

Getting Started

First, install dependencies and build the project:

npm install && npm run build

This will create an /out directory that can you can add to Chrome as an extension. The manifest.json links pages/index.js to the generated index.html. On top of that, the /public/inject.js script is configured to run on any host url.

Second, start developing:

npm run dev

You can start editing the extension by modifying pages/index.js or any file in /public. The extension will automatically re-build as you make changes.

๐Ÿšฉ Note: gsed is used during build and development steps to bundle the project in a Chrome extension. Therefore, you will need to have this CLI installed on your development machine.

brew install gsed // homebrew installation

Add extension to chrome

Open the Extension Management page by navigating to chrome://extensions. Enable Developer Mode by clicking the toggle switch next to Developer mode. Click the Load unpacked button and select the /out directory.

Screenshot of chrome://extensions page

Learn More

To learn more about Next.js or extensions, take a look at the following resources:

This template was originally inspired by the following article, Creating a Chrome Extension with NextJS.

next-chrome's People

Contributors

thewallandus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.