
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@useorbital/client-sdk
Advanced tools
This package enables in-app recruitment for your discoveries via Orbital
You can find the SDK documentation in the Orbital Docs
In order to initialize the Orbital SDK you'll need to provide your Space ID. You can find your specific Space ID within Orbital under Settings > Installation
import orbital from '@useorbital/client-sdk'
const orbitalSdk = await orbital('your-space-id')
import orbital, { OrbitalSdk } from '@useorbtial/client-sdk'
import { createContext, useContext, useState, useEffect, PropsWithChildren } from 'react'
const OrbitalContext = createContext<OrbitalSdk | undefined>(undefined)
function OrbitalProvider({ children, spaceId }: PropsWithChildren<{ spaceId: string }>) {
const [sdk, setSdk] = useState<OrbitalSdk | undefined>(undefined)
useEffect(() => {
orbital(spaceId).then(setSdk)
}, [spaceId])
return (
<OrbitalContext.Provider value={sdk} >
{children}
</OrbitalContext.Provider>
)
}
function useOrbital(): OrbitalSdk | undefined {
return useContext(OrbitalContext)
}
The Orbital SDK requires access to the window object on import. If server side rendering (SSR) is used this is usually only
possible on the client. If you are using, you'll need to make sure to only import the Orbital SDK in client code.
import { OrbitalSdk } from '@useorbtial/client-sdk'
import { createContext, useContext, useState, useEffect, PropsWithChildren } from 'react'
const OrbitalContext = createContext<OrbitalSdk | undefined>(undefined)
function OrbitalProvider({ children, spaceId }: PropsWithChildren<{ spaceId: string }>) {
const [sdk, setSdk] = useState<OrbitalSdk | undefined>(undefined)
useEffect(() => {
import('@useorbtial/client-sdk')
.then(({ default: orbital }) => orbital(spaceId))
.then(setSdk)
}, [spaceId])
return (
<OrbitalContext.Provider value={sdk} >
{children}
</OrbitalContext.Provider>
)
}
function useOrbital(): OrbitalSdk | undefined {
return useContext(OrbitalContext)
}
FAQs
SDK for in-app user interview recruitment via orbital
The npm package @useorbital/client-sdk receives a total of 3 weekly downloads. As such, @useorbital/client-sdk popularity was classified as not popular.
We found that @useorbital/client-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.