
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
A powerful, type-safe job queue system for Node.js and Bun.js. Duron provides a robust foundation for executing asynchronous tasks with built-in retry logic, concurrency control, step-based execution, and comprehensive observability.
# Using bun
bun add duron postgres drizzle-orm@beta
# Using npm
npm install duron postgres drizzle-orm@beta
# Using pnpm
pnpm add duron postgres drizzle-orm@beta
# Using yarn
yarn add duron postgres drizzle-orm@beta
Actions are the building blocks of Duron. They define what work needs to be done:
import { defineAction } from 'duron'
import { z } from 'zod'
const sendEmail = defineAction()({
name: 'send-email',
input: z.object({
to: z.string().email(),
subject: z.string(),
body: z.string(),
}),
output: z.object({
success: z.boolean(),
}),
handler: async (ctx) => {
const { to, subject, body } = ctx.input
// Use steps to break down work into retryable units
const result = await ctx.step('send-email', async ({ signal }) => {
const response = await fetch('https://api.email.com/send', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ to, subject, body }),
signal, // Pass signal to enable cancellation
})
if (!response.ok) {
throw new Error('Failed to send email')
}
return await response.json()
})
return { success: result.success ?? true }
},
})
import { duron } from 'duron'
import { postgresAdapter } from 'duron/adapters/postgres'
const client = duron({
database: postgresAdapter({
connection: process.env.DATABASE_URL,
}),
actions: {
sendEmail,
},
logger: 'info',
})
await client.start()
// Run an action
const jobId = await client.runAction('send-email', {
to: 'user@example.com',
subject: 'Hello',
body: 'Welcome!',
})
// Wait for the job to complete
const job = await client.waitForJob(jobId)
console.log('Job completed:', job?.output)
# Install dependencies
bun install
# Run tests
bun test
# Build
bun run build
# Type check
bun run typecheck
MIT
FAQs
Unknown package
We found that duron demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.