Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A high-performance, secure, and robust local database
VeloceDB is a highly secure, fast, and efficient local database designed for Node.js applications. It supports all data types and offers a flexible and easy-to-use interface. VeloceDB operates with a single class that integrates all its features, making it both powerful and straightforward.
To install VeloceDB via npm, use the following command:
npm install velocedb
Here’s a basic example of how to use VeloceDB:
import Veloce from 'velocedb';
const database = new Veloce('database.json');
database.data.number = 8;
This example creates a database.json
file and sets a number
property to 8. The data is automatically saved to the file. You can also modify and manage your data as follows:
import Veloce from 'velocedb';
const database = new Veloce('database.json');
database.data.number = 8;
database.data.string = 'Hello World!';
database.data.boolean = true;
delete database.data.boolean;
All changes are automatically saved, making data management seamless and effortless.
In Proxy Mode, VeloceDB provides advanced features such as auto-save, detailed debug logs, and update tracking. This mode is recommended for most use cases as it offers comprehensive functionality and optimization for complex tasks.
Example:
import Veloce from 'velocedb';
const database = new Veloce('database.json');
database.data.string = 'Hello World!';
No Proxy Mode is optimized for performance and direct data manipulation. It bypasses the use of proxies for a more straightforward process. However, features like auto-updates and update handlers are not available in this mode. You need to manually save the database.
Example:
import Veloce from 'velocedb';
const database = new Veloce('database.json', { noProxy: true });
database.data = { string: 'Hello World!' };
database.save();
VeloceDB offers various configuration options. For a comprehensive list, refer to the TypeScript documentation available here.
VeloceDB is ideal for projects requiring an efficient, secure, and easy-to-use local database. It is especially suitable for Node.js projects needing optimized data storage and access. Originally developed for Bot Studio, VeloceDB is well-suited for handling extensive data in a streamlined manner.
VeloceDB is licensed under the MIT License.
For more information and to contribute, visit the GitHub repository.
FAQs
A high-performance, secure, and robust local database
The npm package velocedb receives a total of 5 weekly downloads. As such, velocedb popularity was classified as not popular.
We found that velocedb 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.