Chrome browser extension side panel implementation

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1212
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Implementation of Side Panel for Browser Extension (Chrome)

Side Panel is a Chrome sidebar that appeared in Chrome 114. It works as a persistent panel beside page content, doesn't close when switching tabs, and has significantly more space than Popup. This is the first native mechanism for "pinned" interfaces in Chrome.

Side Panel vs Popup differences

Characteristic Popup Side Panel
Width 800 px max ~400 px (fixed by Chrome)
Lifetime Until focus loss Persistent, survives tab switches
Tab context Bound to active Can be global or per-tab
Availability Since Chrome 4 Since Chrome 114
Firefox/Safari No analog No analog

Connection in Manifest V3

{
  "manifest_version": 3,
  "name": "My Side Panel Extension",
  "version": "1.0.0",
  "permissions": ["storage", "tabs", "activeTab", "scripting", "sidePanel"],
  "background": {
    "service_worker": "background.js"
  },
  "action": {
    "default_icon": "icons/icon48.png",
    "default_title": "Open panel"
  },
  "side_panel": {
    "default_path": "panel/panel.html"
  }
}

Opening panel on icon click

By default, clicking the extension icon doesn't do anything with Side Panel. Must explicitly configure behavior:

// background.js (Service Worker)

// Option 1: open panel on every icon click
chrome.sidePanel
  .setPanelBehavior({ openPanelOnActionClick: true })
  .catch(console.error);

// Option 2: open programmatically (requires user gesture)
chrome.action.onClicked.addListener(async (tab) => {
  await chrome.sidePanel.open({ tabId: tab.id });
});

Per-tab vs global panel

Panel can be different for each tab or shared across all:

// background.js

// Different panel depending on site
chrome.tabs.onUpdated.addListener(async (tabId, info, tab) => {
  if (info.status !== 'complete') return;

  if (tab.url?.includes('github.com')) {
    await chrome.sidePanel.setOptions({
      tabId,
      path: 'panel/github-panel.html',
      enabled: true,
    });
  } else if (tab.url?.includes('figma.com')) {
    await chrome.sidePanel.setOptions({
      tabId,
      path: 'panel/design-panel.html',
      enabled: true,
    });
  } else {
    // Disable panel for regular pages
    await chrome.sidePanel.setOptions({ tabId, enabled: false });
  }
});

React app in Side Panel

Structure of panel/panel.html is similar to Popup, but has more space:

// panel/App.tsx
import { useEffect, useState, useRef } from 'react';
import browser from 'webextension-polyfill';

export function SidePanel() {
  const [notes, setNotes] = useState<string[]>([]);
  const [currentUrl, setCurrentUrl] = useState('');
  const portRef = useRef<browser.Runtime.Port | null>(null);

  useEffect(() => {
    // Persistent connection with background for data streaming
    portRef.current = browser.runtime.connect({ name: 'side-panel' });

    portRef.current.onMessage.addListener((msg) => {
      if (msg.type === 'PAGE_CHANGED') {
        setCurrentUrl(msg.url);
        loadNotesForUrl(msg.url);
      }
    });

    return () => portRef.current?.disconnect();
  }, []);

  return (
    <div className="side-panel">
      <header className="side-panel__header">
        <h2>Notes</h2>
      </header>
      {/* Panel content */}
    </div>
  );
}

Timeline

Basic side panel with notes: 2–3 days. Complex with sync and per-tab logic: 5–7 days.