API Reference
Complete reference documentation for all Replit extension APIs, including authentication, commands, filesystem access, and workspace integration.
Manifest
The extension.json file contains the manifest for an Extension and is required for publishing to the Extensions Store.
Authentication API
Allows secure authentication of Replit users when they use your extension.
Background Script API
Scripts loaded when the Replit App opens, remaining active until uninstalled or workspace closure.
Commands API
Register commands that can be run from the CLUI command bar and other contribution points.
Data API
Get information and metadata exposed from Replit’s GraphQL API.
Debug API
Log data to the Extension Devtools.
Editor API
Get the current user’s editor preferences.
Exec API
Execute arbitrary shell commands.
Filesystem API
Create, read, and modify files on the replit app’s filesystem.
Initialization API
Initialize the Extension and establish a handshake with the Replit App, and adds an event listener to the window object. It takes as an argument an object containing optional parameters for the initialization process. It returns a function that removes the event listener added to the window object.
Me API
Exposes information specific to the current extension.
Messages API
Allows you to send custom notices in the Replit workspace.
ReplDB API
Simple key-value store for storing replit app specific data.
Session API
Provides information on the current user’s coding session in the workspace.
Themes API
Allows access to the current user’s theme and color tokens.