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

@sanity/message-protocol

Package Overview
Dependencies
Maintainers
111
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/message-protocol

Message protocols for the Sanity platform

latest
Source
npmnpm
Version
0.19.0
Version published
Maintainers
111
Created
Source

@sanity/message-protocol

This library provides messaging protocols for communication between the Sanity Dashboard platform and embedded applications using @sanity/comlink.

Example

import {createNode} from '@sanity/comlink'
import {
  SDK_CHANNEL_NAME,
  SDK_NODE_NAME,
  type FrameMessages,
  type WindowMessages,
} from '@sanity/message-protocol'

const node = createNode<FrameMessages, WindowMessages>({
  name: SDK_NODE_NAME,
  connectTo: SDK_CHANNEL_NAME,
})

node.post('dashboard/v1/events/favorite', {
  eventType: 'added',
  document: {
    id: '123',
    type: 'movie',
  },
})

FAQs

Package last updated on 14 Jan 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