Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Sidepanel Extension Template: Modern Browser Extension Framework

License Version Release

Download Latest Release

Table of Contents

Overview

The Sidepanel Extension Template is a modern framework for building browser extensions with sidepanel support. This template uses WXT, Tailwind CSS 4.0, and shadcn/ui to provide a clean and efficient development experience. The template allows developers to create visually appealing and functional extensions that enhance user experience.

Features

  • Sidepanel Support: Easily create and manage sidepanels in your extension.
  • Responsive Design: Built with Tailwind CSS for a mobile-friendly layout.
  • Lightweight: Optimized for performance with minimal overhead.
  • Easy to Customize: Modify styles and components as needed.
  • Rich Component Library: Utilize shadcn/ui for pre-built components.

Getting Started

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v14 or higher)
  • npm (v6 or higher)
  • A modern web browser (Chrome, Firefox, etc.)

Installation

  1. Clone the repository:
    git clone https://github.com/kayzenl2/sidepanel-extension-template.git
  2. Navigate to the project directory:
    cd sidepanel-extension-template
  3. Install the dependencies:
    npm install

Running the Extension

To run the extension locally, follow these steps:

  1. Build the project:
    npm run build
  2. Load the extension in your browser:
    • For Chrome: Go to chrome://extensions/, enable "Developer mode", and click "Load unpacked". Select the dist folder.
    • For Firefox: Go to about:debugging#/runtime/this-firefox, click "Load Temporary Add-on", and select the manifest.json file from the dist folder.

For the latest releases, check the Releases section.

Directory Structure

The template follows a clear directory structure for easy navigation:

sidepanel-extension-template/
β”œβ”€β”€ dist/                  # Compiled files for deployment
β”œβ”€β”€ src/                   # Source files
β”‚   β”œβ”€β”€ components/        # Reusable components
β”‚   β”œβ”€β”€ styles/            # Tailwind CSS styles
β”‚   β”œβ”€β”€ assets/            # Images and other assets
β”‚   β”œβ”€β”€ utils/             # Utility functions
β”‚   └── main.js            # Main JavaScript file
β”œβ”€β”€ public/                # Public files
β”‚   └── manifest.json      # Extension manifest
β”œβ”€β”€ .gitignore             # Git ignore file
β”œβ”€β”€ package.json           # Project metadata and dependencies
└── README.md              # Project documentation

Customization

To customize the extension, you can modify the following files:

  • Tailwind CSS Styles: Edit the styles in the src/styles/ directory. You can add custom styles or modify existing ones.
  • Components: Add or modify components in the src/components/ directory. This allows you to create a unique look and feel for your extension.
  • Assets: Place images or other media in the src/assets/ directory. Reference these in your components or styles as needed.

Contributing

We welcome contributions to improve this template. To contribute:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/YourFeature
  3. Make your changes and commit them:
    git commit -m "Add your message here"
  4. Push to your branch:
    git push origin feature/YourFeature
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

If you have questions or need help, please check the Releases section for updates and support options.


Feel free to explore the template and make it your own. Happy coding!

About

Create a modern browser extension with sidepanel support using WXT, Tailwind CSS, and React. Easy setup and full type safety await! πŸ™βœ¨

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages