
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Data plays a critical role in any computational process, including the emerging Web3 era. In order to successfully transition to Web3, it is imperative to enhance accessibility and accuracy of data. The zkDatabase use a distributed storage engine that improves the availability of data. It utilizes Zero-Knowledge Proof to ensuring the correctness of data in verifiable manner. With zkDatabase, it's allow developers to focus on developing their ideas, rather than managing the complexities of data storage and management.
It's time for verifiable data.
npm install zkdb
import { ZkDatabase } from 'zkdb';
const zkdb = new ZkDatabase({
apiKey: 'your-api-key',
url: 'https://serverless.zkdatabase.org/graphql',
});
const dbTest = zkdb.db('my_database');
if (!(await dbTest.exist()).unwrapOr(false)) {
(await dbTest.create()).unwrap();
}
import { Schema, SchemaToObject } from '@zkdb/common';
import { Permission } from 'zkdb';
const BookSchema = new Schema([
{ name: 'name', kind: 'String' },
{ name: 'author', kind: 'String' },
{ name: 'release', kind: 'UInt32' },
]);
type TBook = SchemaToObject<ReturnType<typeof BookSchema.schemaDefinition>>;
const permissions = Permission.from({
owner: { read: true, write: true, delete: true, system: true },
group: { read: true, write: false, delete: false, system: false },
other: { read: true, write: false, delete: false, system: false },
});
const collectionBook = dbTest.collection<TBook>('book');
await collectionBook.create(BookSchema, permissions, 'default');
const docId = (
await collectionBook.insert({
name: '1984',
author: 'George Orwell',
release: 1949n,
})
).unwrap();
// Find many
const books = (
await collectionBook.findMany({ author: 'George Orwell' })
).unwrap();
books.data.forEach((b) => console.log(b.document.name));
// Find one
const book = (await collectionBook.findOne({ name: '1984' })).unwrap();
const docs = (await collectionBook.findMany({ name: '1984' })).unwrap();
if (docs.data.length > 0) {
await docs.data[0].update({ release: 1950n });
}
const docs = (await collectionBook.findMany({ name: '1984' })).unwrap();
if (docs.data.length > 0) {
await docs.data[0].drop();
}
const verifyResult = await dbTest.zkProofVerify();
console.log('Proof valid:', verifyResult.unwrap());
// Check zk proof state
const zkProofState = await dbTest.zkProofState();
console.log('Zk proof state:', zkProofState.unwrap());
This project is licensed under the Apache License 2.0 - see the LICENSE file for details
built with ❤️
FAQs
zkDatabase for the future of Web3
The npm package zkdb receives a total of 13 weekly downloads. As such, zkdb popularity was classified as not popular.
We found that zkdb 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.