
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
[](https://www.npmjs.org/package/deepai)
Simple Javascript Client Library for Deep AI's APIs from Browser and Node.js
Node.js or other environments using npm:
npm install --save deepai
Browser:
<script src="https://cdnjs.deepai.org/deepai.min.js"></script>
Most examples are for Content Moderation, but you can subsitute any model name available at DeepAI.
Ensure that you pass the correct input names. Not all model input names are "image". You can find the correct input name on the page for each model at DeepAI.org
All examples use Async-Await syntax, so ensure you run the code in an async function.
// Ensure you load deepai with one of the methods in "Installation"
deepai.setApiKey('YOUR_API_KEY'); // get your free API key at https://deepai.org
Pass URL:
var result = await deepai.callStandardApi("content-moderation", {
image: "https://YOUR_IMAGE_URL"
});
Pass Literal Text:
var result = await deepai.callStandardApi("sentiment-analysis", {
text: "I am very happy to play with the newest APIs!"
});
Pass Image DOM Element:
var result = await deepai.callStandardApi("content-moderation", {
image: document.getElementById('yourImageId')
});
Pass File Picker Element:
var result = await deepai.callStandardApi("content-moderation", {
image: document.getElementById('yourFilePickerId')
});
const deepai = require('deepai');
deepai.setApiKey('YOUR_API_KEY'); // get your free API key at https://deepai.org
Pass URL:
var result = await deepai.callStandardApi("content-moderation", {
image: "https://YOUR_IMAGE_URL"
});
Pass Literal Text:
var result = await deepai.callStandardApi("sentiment-analysis", {
text: "I am very happy to play with the newest APIs!"
});
Pass File Upload:
const fs = require('fs');
<...>
var result = await deepai.callStandardApi("content-moderation", {
image: fs.createReadStream('/path/to/your/file.jpg')
});
npm install
npm run-script build
FAQs
[](https://www.npmjs.org/package/deepai) [](https://github.com/deepai-org/deepai-js-cl
The npm package deepai receives a total of 2,351 weekly downloads. As such, deepai popularity was classified as popular.
We found that deepai 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.