Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
chat-engine-open-graph
Advanced tools
Identify if **message.data.text** contains an URL, send it to your server or a third party service and get the data collected into **message.data.metadata** which you can use in order to transform a plain message in a thumbnail.
Identify if message.data.text contains an URL, send it to your server or a third party service and get the data collected into message.data.metadata which you can use in order to transform a plain message in a thumbnail.
npm install chat-engine-open-graph
const ChatEngine = ChatEngineCore.create({
publishKey: 'pub-key-here',
subscribeKey: 'sub-key-here'
});
ChatEngine.connect('Username');
ChatEngine.on('$ready', () = { ... });
const apiKey = "xxxxxxxxxxxxxxx";
You have to inject a function to the attribute api which receive as a parameter the URL detected inside of message and arrange it into a query parameter to the API endpoint of the server side.
ChatEngine.global.plugin(ChatEngineCore.plugin['chat-engine-open-graph']({
api: (url) => `https://opengraph.io/api/1.1/site/${encodeURI(url)}?app_id=${apiKey}`
}));
or
const opengraph = require('chat-engine-open-graph');
ChatEngine.global.plugin(opengraph({ api: (url) => `https://opengraph.io/api/1.1/site/${encodeURI(url)}?app_id=${apiKey}` }));
FAQs
Identify if **message.data.text** contains an URL, send it to your server or a third party service and get the data collected into **message.data.metadata** which you can use in order to transform a plain message in a thumbnail.
The npm package chat-engine-open-graph receives a total of 0 weekly downloads. As such, chat-engine-open-graph popularity was classified as not popular.
We found that chat-engine-open-graph demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.