
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
npm install offcircle
The offCircle function operates on the Canvas API (node & browser).
ctx = 2D canvas context to render onellipseCount = Number of ellipses to render on the canvas (defaults to 120)returns Void
offCircle(ctx,ellipseCount)
import fs from 'fs'
import path from 'path'
import Canvas from 'canvas'
import offCircle from 'offcircle'
// or common js
var fs = require('fs')
var path = require('path')
var Canvas = require('canvas')
var offCircle = require('offcircle')
var canvas = Canvas.createCanvas(500, 500)
var ctx = canvas.getContext('2d')
offCircle(ctx, 120)
var out = fs.createWriteStream(path.join(__dirname, '/example.png'))
var stream = canvas.createPNGStream()
stream.on('data', function (chunk) {
out.write(chunk)
})
import React, { useEffect } from 'react';
import './App.css';
import offCircle from "offcircle";
function App() {
const canvasRef = React.useRef(null);
useEffect(()=> {
const canvas = canvasRef.current
const ctx = canvas.getContext('2d')
offCircle(ctx,1000)
})
return (
<div className="App">
<canvas
ref={canvasRef}
width={window.innerWidth}
height={window.innerHeight}
/>
</div>
);
}
export default App;
MIT
FAQs
Recreation of Matplotlib ellipse demo
We found that offcircle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.