New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@firebase-studio/open-sdk

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase-studio/open-sdk

A TypeScript SDK for opening workspaces in Firebase Studio from a browser.

latest
npmnpm
Version
0.1.2
Version published
Maintainers
2
Created
Source

Open in Firebase Studio SDK

A JS library for opening workspaces in Firebase Studio.

Installation

npm install @firebase-studio/open-sdk

Usage

For all the examples below, after installing the SDK, import the package:

import * as FirebaseStudio from '@firebase-studio/open-sdk';

Button images

Get a URL to a CDN-hosted "Open in Firebase Studio" button image:

img.src = FirebaseStudio.getButtonImageUrl({
  // optional config
});

Example:

Open in Firebase Studio button

You can get a deep link into Firebase Studio for a variety of destinations, e.g.:

link.href = FirebaseStudio.getOpenUrl({
  type: 'named-template', // or 'git', etc
  templateId: 'gemini'
});

Ad-hoc workspaces

In a browser environment, you can create an ad-hoc workspace from an arbitrary set of project files like so:

button.onclick = () => {
  FirebaseStudio.newAdhocWorkspace({
    files: {
      'index.html': '<h1>hello world</h1>',
      '.idx/dev.nix': '...',
    }
  });
};

Keywords

firebase

FAQs

Package last updated on 27 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts