Plasmo Framework CLI

0.90.5 · active · verified Tue Apr 21

The Plasmo Framework is a comprehensive Software Development Kit (SDK) designed for building browser extensions with a focus on developer experience, akin to Next.js for web applications. It abstracts away complex configuration, offering first-class support for React and TypeScript. Key features include declarative development, Content Scripts UI, Tab Pages, live-reloading with React HMR, environment file support, and built-in Storage and Messaging APIs. The framework simplifies targeting multiple browsers and manifest versions, and supports automated deployment via Browser Publish Protocol (BPP). It is currently in a stable state with version `0.90.5`, maintaining a rapid release cadence with frequent minor updates and patch fixes. Its differentiators lie in its 'batteries-included' approach, robust tooling, and focus on streamlining the extension development workflow.

Common errors

Warnings

Install

Imports

Quickstart

Initializes a new Plasmo extension project, installs dependencies, and demonstrates how to start the development server and build for production.

npx plasmo init my-extension
cd my-extension
pnpm install # Or npm install / yarn install

# Start development server with live-reloading
plasmo dev

# Build for production, e.g., for Chrome, Manifest V3, and create a zip file
plasmo build --target=chrome-mv3 --zip

view raw JSON →