
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@alwatr/storage-client
Advanced tools
Elegant micro client for storage server written in tiny TypeScript ES module.
@alwatr/storage-clientElegant micro client for storage server written in tiny TypeScript ES module.
import {type AlwatrDocumentObject, AlwatrStorageClient} from '@alwatr/storage-client';
type User = AlwatrDocumentObject & {
email: string;
token?: string;
};
const db = new AlwatrStorageClient<User>({
name: 'user-list',
host: '127.0.0.1',
port: 9000,
token: 'YOUR_SECRET_TOKEN',
timeout: 2_000,
});
await db.set({
id: 'alimd',
email: 'ali@mihandoost.com',
});
await db.set({
id: 'fmd',
email: 'Fatemeh@mihandoost.com',
token: Math.random().toString(36).substring(2, 15),
});
console.log("has 'alimd': %o", await db.has('alimd'));
console.log('keys: %o', await db.keys());
console.log('getAll: %o', await db.getAll());
console.log('delete: %o', await db.delete('alimd'));
try {
await db.delete('abcd');
} catch (err) {
console.log('delete 404: %o', (err as Error).message);
}
config.name: stringStorage name (like database name).
config.host: stringStorage server host name (URL).
config.token: stringStorage server token (like database password).
config.timeout?: numberA timeout in ms for the fetch request.
config.debug?: booleanDebug output logs.
get(documentId: string): Promise<DocumentType>Get a document object by id.
Example:
try {
const user = await userStorage.get('user-1');
console.dir(item);
} catch (err) {
if ((err as Error)?.message === 'document_not_found') {
console.log('user_5000 id not found!');
} else {
console.error(err);
}
}
has(documentId: string): Promise<boolean>Check document exists by id.
Example:
const userExist = await userStorage.has('user-1');
if (!userExist) console.log('user_not_found');
set(documentObject: DocumentType, fastInstance?: boolean): DocumentTypeInsert/update a document object in the storage.
id.Example:
userStorage.set({
id: 'user-1',
foo: 'bar',
});
delete(documentId: string): Promise<void>Delete a document object from the storage.
Example:
userStorage.delete('user-1');
getStorage(): Promise<AlwatrDocumentStorage>Dump all storage data.
Example:
const userStorage = await userStorage.getStorage();
FAQs
Elegant micro client for storage server written in tiny TypeScript ES module.
The npm package @alwatr/storage-client receives a total of 2 weekly downloads. As such, @alwatr/storage-client popularity was classified as not popular.
We found that @alwatr/storage-client demonstrated a not healthy version release cadence and project activity because the last version was released 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.