🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@openfin/workspace-platform

Package Overview
Dependencies
Maintainers
65
Versions
646
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfin/workspace-platform

An API for creating your own Workspace platform.

latest
npmnpm
Version
23.0.22
Version published
Weekly downloads
3.1K
116.74%
Maintainers
65
Weekly downloads
 
Created
Source

Workspace Platform API

The Workspace Platform Client APIs allow integrators to create their own Workspace platforms.

Installation

Run npm i -E @openfin/workspace-platform.

Workspace Platform API documentation

  • Overview
  • API Reference
  • Example projects using Workspace Platform

Code examples

Initialize a Workspace Platform

import * as WorkspacePlatform from '@openfin/workspace-platform';

const customThemes: WorkspacePlatform.CustomThemes = [
    {
        label: "OpenFin's Custom Theme",
        palette: {
            brandPrimary: '#F51F63', // required
            brandSecondary: '#1FF58A', // required
            backgroundPrimary: '#F8E71C', // required - hex, rgb/rgba, hsl/hsla only - no string colors: ‘red’
            background2: '#7D808A' // any of the optional colors
        }
    }
];

const overrideCallback: WorkspacePlatform.WorkspacePlatformOverrideCallback = async (WorkspacePlatformProvider) => {
    class Override extends WorkspacePlatformProvider {
        async quit(payload, callerIdentity) {
            return super.quit(payload, callerIdentity);
        }
    }
    return new Override();
};

await WorkspacePlatform.init({
    browser: {
        title: 'My Browser'
    },
    overrideCallback,
    theme: customThemes
});

Keywords

client

FAQs

Package last updated on 01 May 2026

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