Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@axiomhq/axiom-elements
Advanced tools
Axiom Elements is a set of React components that can display charts for your Axiom Datasets.
Axiom Elements is a set of React components that can display charts for your Axiom Datasets.
npm install @axiomhq/axiom-elements
Visit your Axiom instance and go to Settings -> API Tokens
Add an API Token that has the "Query" permission for the Dataset you want to make charts for.
AxiomProvider
import { AxiomProvider } from '@axiomhq/axiom-elements';
import React from 'react';
function App({ children }) {
return (
<div className="App">
<header className="App-header">
<AxiomProvider apiKey="YOUR-API-KEY" apiDomain="cloud.axiom.co">
{children}
</AxiomProvider>
</header>
</div>
);
}
export default App;
import { Chart } from '@axiomhq/axiom-elements';
import React from 'react';
function MyCharts({ children }) {
return (
<div className="Charts">
<Chart
style={{ height: '90vh' }}
datasetId="hackernews"
name="Bitcoin Mentions"
type="TimeSeries"
query={
{
"aggregations": [
{
"argument": null,
"field": "*",
"op": "count"
}
],
"startTime": "datetime(2007-01-01T00:00:00.000Z)",
"endTime": "now()",
"groupBy": [
"has_bitcoin"
],
"virtualFields": [
{
"alias": "has_bitcoin",
"expr": "text contains \"bitcoin\" or title contains \"bitcoin\" or text contains_cs \" BTC \" or title contains_cs \" BTC \""
}
],
}
}
/>
</div>
);
}
export default MyCharts;
Checkout this repository and run Storybook to explore the docs and example use cases.
See CONTRIBUTING.md for details on running Storybook
FAQs
Axiom Elements is a set of React components that can display charts for your Axiom Datasets.
The npm package @axiomhq/axiom-elements receives a total of 0 weekly downloads. As such, @axiomhq/axiom-elements popularity was classified as not popular.
We found that @axiomhq/axiom-elements demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.