
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Minimal, zero-dependency, high-performance Discord HTTP REST client for Bun, written in NAPI-RS.
A small, ultra‑fast REST Client for Discord built with Rust using napi‑rs. Exposes a single Rest
class to JavaScript/TypeScript, with built‑in rate‑limit handling and optional file attachments.
# Using npm
npm install kodkord
# Or with Bun
bun add kodkord
import { Method, Rest } from "kodkord";
const rest = new Rest({
authorization: `Bot ${process.env.TOKEN}`,
user_agent : "DummyBot/1.0"
});
rest.start_scheduler();
const result = await rest.request({
method: Method.GET,
route : "/users/@me"
});
console.log(result);
await rest.stop_scheduler(); // this kill the scheduler
// and stops the runtime.
To send a file, include an attachments
array on your request:
await rest.request({
method: Method.POST,
route : "/channels/123/messages",
body : JSON.stringify({
content: "Here's my avatar",
embeds: [{
image: {
url: `attachment://avatar.png` // Must be the same as attachmen.name
}
}]
}),
attachments: [{
content_type: "image/png" ,
name : "avatar.png" ,
field : "file" ,
data : await Bun.file("avatar.png")
.arrayBuffer()
}]
});
Under the hood it uses multipart/form-data
and handles Discord’s rate limits for you.
MIT © Kodkord Team
FAQs
Minimal, zero-dependency, high-performance Discord HTTP REST client for Bun, written in NAPI-RS.
We found that kodkord demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.