
Security News
Socket Named a Supply Chain Innovator in Latio's 2026 Application Security Market Report
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.
@cube-dev/embed-sdk
Advanced tools
React SDK for embedding Cube analytics into your applications.
yarn add @cube-dev/embed-sdk
This package requires the following peer dependencies:
yarn add react react-dom @tanstack/react-query
import { EmbedProvider, useReportContext } from '@cube-dev/embed-sdk';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
const queryClient = new QueryClient();
function App() {
const [report, setReport] = useState(null);
return (
<QueryClientProvider client={queryClient}>
<EmbedProvider
token={cubeApiToken}
apiUrl={cubeApiUrl}
report={report}
onReportUpdate={(updates) => setReport((prev) => ({ ...prev, ...updates }))}
>
<YourAnalyticsComponent />
</EmbedProvider>
</QueryClientProvider>
);
}
EmbedProvider - Combined provider wrapping all contextsCubeApiContextProvider - Cube API client contextDataAssetsContextProvider - Data assets and semantic views contextReportProvider - Report state management contextChartBuilderProvider - Chart building utilities contextuseReportContext - Access report state and actionsuseChartBuilderContext - Access chart builder utilitiesuseDataAssetsContext - Access data assets and semantic viewsuseActiveCubeApi - Access the Cube API clientuseReport - Standalone report management hookparseSemanticSql - Parse semantic SQL queriesgenerateSemanticSql - Generate semantic SQL from logical queriesprepareTableData - Prepare data for table renderingprepareChartColumns - Prepare columns for chart renderingMIT
FAQs
React SDK for embedding Cube analytics
The npm package @cube-dev/embed-sdk receives a total of 361 weekly downloads. As such, @cube-dev/embed-sdk popularity was classified as not popular.
We found that @cube-dev/embed-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.