How Are Chrome Extensions Developed?
Photo by Stefan Haderlein on Pexels

9 min read

From the studio

We build apps people actually keep.

Tinkrd is a small indie studio making focused, high-quality apps for everyday life. See what we're working on.

View our apps

Chrome extensions are built with the same core web technologies you already know: HTML, CSS, and JavaScript. The architecture is specific to Chrome, but the learning curve is shorter than most developers expect. Here is a genuinely thorough breakdown of how the development process works, from the first file to the published listing.

What a Chrome extension actually is

A Chrome extension is a small web application that runs inside the Chrome browser and interacts with browser features or web page content. Chrome extensions are packaged as a folder of files, compressed into a .crx archive when distributed, and described to the browser through a single configuration file called manifest.json.

Every extension, no matter how simple or complex, shares the same structural idea: a manifest file tells Chrome what the extension is, what permissions it needs, and which scripts and pages to load. Everything else, the logic, the UI, the background work, lives in ordinary web files.

If you want the full picture of the skills, tools, and trade-offs involved, the Chrome extension development overview we published covers the broader landscape well.

The manifest file: where every extension starts

The manifest file is the single required file in any Chrome extension. It is a JSON configuration file named manifest.json that sits at the root of your project folder.

Chrome currently requires Manifest V3, which replaced Manifest V2 and changed how background scripts work. The switch matters because V3 uses service workers instead of persistent background pages, which affects how you write long-running logic.

A minimal manifest.json looks like this:

{
  "manifest_version": 3,
  "name": "My Extension",
  "version": "1.0",
  "description": "Does one useful thing.",
  "action": {
    "default_popup": "popup.html",
    "default_icon": "icon.png"
  },
  "permissions": ["activeTab", "storage"]
}

The permissions array is important. Chrome will show users exactly what your extension can access during install. Requesting more permissions than you need raises suspicion during the review process and with users. Only ask for what you actually use.

The four main components of an extension

Chrome extensions are developed using four distinct component types. Each component runs in a different context and has a different job.

The popup

The popup is the small window that appears when a user clicks the extension icon in the toolbar. It is a standard HTML file with its own CSS and JavaScript. The popup closes and its state resets every time the user clicks away, so do not store important data only in popup memory.

Content scripts

Content scripts are JavaScript files that run directly inside a web page the user is visiting. They can read and modify the DOM of that page. Content scripts are isolated from the page’s own JavaScript for security, but they share the same HTML and CSS.

// content.js: change background of any page
document.body.style.backgroundColor = 'lightyellow';

You declare content scripts in the manifest like this:

"content_scripts": [
  {
    "matches": ["https://*.example.com/*"],
    "js": ["content.js"]
  }
]

The service worker (background script)

The service worker handles background logic: responding to browser events, managing state across sessions, and coordinating messages between other components. In Manifest V3, the background service worker is not persistent. It spins up when needed and shuts down when idle. This means you cannot rely on in-memory variables surviving between events.

// background.js: listen for extension install
chrome.runtime.onInstalled.addListener(() => {
  console.log('Extension installed.');
});

Options page

The options page is an optional HTML page where users can configure extension settings. It behaves like a normal webpage and is declared in the manifest under options_page or options_ui.

How extension components communicate

Extension components communicate using Chrome’s message passing API. Because the popup, content scripts, and service worker all run in separate contexts, they cannot directly share variables. They send messages instead.

Sending a message from a content script to the background service worker works like this:

// In content.js
chrome.runtime.sendMessage({ action: 'getData' }, (response) => {
  console.log(response.data);
});

And receiving it in the background:

// In background.js
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
  if (message.action === 'getData') {
    sendResponse({ data: 'Here is your data' });
  }
  return true; // keeps the channel open for async response
});

The return true at the end is a common gotcha. Without it, asynchronous responses fail silently. Getting message passing right is one of the trickier parts of Chrome extension development, especially when you are also managing state with the chrome.storage API.

Tools and stack options for building extensions

You can build a Chrome extension with nothing more than a text editor and a browser. That said, most developers reach for a build tool once the project grows past a few files.

Tool / Approach Best for Cost
Vanilla JS, no build step Simple utilities, quick prototypes Free
Vite + React or Vue Complex UI in the popup or options page Free
CRXJS (Vite plugin) Hot reload during development, MV3 support Free
TypeScript Any extension you plan to maintain long-term Free
Plasmo framework Teams wanting an opinionated full setup Free (open source)

At Tinkrd, we tend to start small and add tooling only when the pain is real. A vanilla JS extension with no bundler is surprisingly capable for a focused single-purpose tool.

If you are evaluating whether to build an extension yourself or hire it out, this breakdown of whether you can build your own Chrome extension is worth reading first.

Testing and loading your extension locally

You do not need to publish an extension to Chrome Web Store to test it. Chrome lets you load unpacked extensions directly from your local file system.

  1. Open Chrome and navigate to chrome://extensions.
  2. Enable Developer mode using the toggle in the top right corner.
  3. Click Load unpacked and select your extension’s root folder.
  4. Your extension appears in the list and installs immediately.

After any code change, click the refresh icon next to your extension on the extensions page. If your extension uses a service worker, you can inspect it by clicking the Service Worker link in the extension card, which opens a dedicated DevTools panel.

Content scripts are debuggable from the DevTools of whatever page they are injected into. The popup has its own DevTools window, accessible by right-clicking the popup and choosing Inspect.

Publishing to the Chrome Web Store

Publishing a Chrome extension requires a one-time $5 developer registration fee with Google. After that, publishing individual extensions is free.

The process works like this:

  1. Zip your extension folder (not the folder itself, just its contents).
  2. Sign in to the Chrome Web Store Developer Dashboard.
  3. Upload the ZIP file, add screenshots, a description, and a privacy policy.
  4. Submit for review. Review times typically range from a few days to a couple of weeks.

Google’s review process checks for policy violations, dangerous permissions, and obfuscated code. Keep your code readable and only request the permissions your extension genuinely needs. For a more detailed walkthrough of the full build-to-publish process, the guide on building and publishing a Chrome extension covers each stage in order.

Security and permissions: the part most guides skip

Chrome extension security deserves real attention because extensions run with elevated browser access. A poorly written extension can expose user data or become a vector for attacks.

A few practices that matter:

The official Chrome extension security guide is thorough and worth reading before you finalize your permissions list.

Frequently asked questions

Do I need to know a framework like React to build a Chrome extension?

No. Chrome extensions can be built with plain HTML, CSS, and JavaScript. Frameworks like React or Vue are useful if your popup or options page has complex UI, but many useful extensions are just a few vanilla JS files. Start without a framework and add one only if the complexity calls for it.

What is the difference between Manifest V2 and Manifest V3?

Manifest V3 is the current required version. The biggest change is that persistent background pages were replaced by service workers, which do not stay alive between events. V3 also restricts certain APIs previously used for ad blockers and imposes stricter content security policies. Google has phased out V2 support, so all new extensions should use V3.

How long does Chrome Web Store review take?

Review times vary. Most extensions are reviewed within a few days, but reviews can take up to a few weeks if your extension requests sensitive permissions or if there is a high submission volume. Submitting a clear privacy policy and a well-described extension speeds the process. Rejections are common on the first submission, and you can revise and resubmit.

Can a Chrome extension communicate with an external server?

Yes. You can make standard fetch requests from a service worker or content script to any external API. You will need to declare the host in the host_permissions field of your manifest. Be transparent in your privacy policy about what data you send and where.

How are Chrome extensions different from browser plugins?

The terms are often used interchangeably, but they are technically different. Older browser plugins like Flash used native code and a separate plugin API that is now deprecated. Modern Chrome extensions use web technologies and the Chrome Extensions API. When someone today says browser plugin, they almost always mean an extension in the modern sense.

Chrome extension development is genuinely accessible if you have basic web skills. The manifest, the component structure, and message passing are the parts worth spending time on early. Get those right and the rest tends to follow.

We’re building in the open

Tinkrd is a small studio making thoughtful apps for families. Our first app is launching soon.

See what we’re building

T
The Tinkrd Team

We are a small independent app studio in California. We write about what we are learning as we build and ship products, from first commit to first customer.