Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Zero-dependency, simple pseudo-database on Cloudflare R2, inspired by lowdb.
Zero-dependency, simple pseudo-database on Cloudflare R2, strongly inspired by lowdb 🤗(https://github.com/typicode/lowdb/).
Become a sponsor and have your company logo here 👉 GitHub Sponsors
lowstorage is a pure ESM package. If you're having trouble using it in your project, please read this.
import lowstorage from 'lowstorage';
// Initialize object and get users collection
const usersCol = await lowstorage(env, 'MY_TESTING_BUCKET').collection('users');
// Add new user
// you can provide _id or it will be generated as crypto.randomUUID(); -> https://developers.cloudflare.com/workers/runtime-apis/web-crypto/
const newUser = await usersCol.insert({
name: 'Kevin',
gender: 'whatever',
posts: [],
});
// Show all users
const allUsers = usersCol.find({});
// Find user by ID and update name
await usersCol.update({ _id: id }, { name: 'Carlos' });
npm install lowstorage
Seamless migration, robust free tier, Nonee gress fees. Dive into the future of data storage with Cloudflare R2 https://developers.cloudflare.com/r2/
But after all, it seems quite slow ...
insert (object {} or array [] of objects) - return array - check #Limitations
find(query object eg. {_id: id}) - return array of objects
findOne - same as find, but return only array of one object, equivalent to the db.collection.find(query)
update - (query{} , update {}) - return promise of updated objects
updateOne - same as update, but very limited
delete (query {}) delete specific file or all inside collection
remove () - removing all files inside collection
count () - is equivalent to the db.collection.find(query).count() construct
Check out dummy examples
Error: Too many API requests by single worker invocation.
FAQs
Simple, micro-dependency, pseudo-database using Apache Avro serialization on S3-compatible storages, inspired by lowdb.
The npm package lowstorage receives a total of 1 weekly downloads. As such, lowstorage popularity was classified as not popular.
We found that lowstorage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.