
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@sqd-pipes/delta-db
Advanced tools
Embedded rollback-aware computation engine for blockchain data. Routes raw events through reducers and materialized views, producing delta records (insert/update/delete) for downstream targets.
Requires Rust (stable) and Node.js >= 18.
cd packages/delta-db-node
npm install
# Debug build
npx napi build --cargo-cwd ../.. --features napi
# Release build
npx napi build --cargo-cwd ../.. --features napi --release
This produces delta-db.node (native binary) and regenerates index.d.ts.
If index.js is missing after build, create it:
const { DeltaDb } = require('./delta-db.node')
module.exports.DeltaDb = DeltaDb
npm test
import { DeltaDb } from '@subsquid/delta-db'
const db = DeltaDb.open({
schema: `
CREATE TABLE swaps (
block_number UInt64,
pool String,
amount Float64
);
CREATE MATERIALIZED VIEW volume AS
SELECT pool, sum(amount) AS total, count() AS cnt
FROM swaps GROUP BY pool;
`,
dataDir: './data', // optional, enables persistence
})
const batch = db.ingest({
data: {
swaps: [
{ block_number: 1000, pool: 'ETH/USDC', amount: 100 },
],
},
rollbackChain: [{ number: 1000, hash: '0x...' }],
finalizedHead: { number: 999, hash: '0x...' },
})
// batch.records → [{ table: 'swaps', op: 'insert', ... }, { table: 'volume', op: 'insert', ... }]
import { deltaDbTarget } from '@subsquid/delta-db/pipes'
await source
.pipe(decoder)
.pipeTo(deltaDbTarget({
schema: '...',
dataDir: './data',
transform: (data) => ({ transfers: data.transfers.map(formatRow) }),
onDelta: async ({ batch }) => {
await clickhouse.insert(batch.records)
},
}))
FAQs
Embedded rollback-aware computation engine for blockchain data
We found that @sqd-pipes/delta-db 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
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.