Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@akarui/aoi.db
Advanced tools
Readme
Aoi.db is a collection of various database types to handle various types of data requirements!
#npm
npm i @akarui/aoi.db
#yarn
yarn add @akarui/aoi.db
- KeyValue - A simple database that stores key value pairs
- Usage: general purpose
- WideColumn - A database that stores data in a column
- Usage: good for getting separate columns related to a primary column
- Remote - A database that stores data in a remote server
- Usage: good for separating database extensive usage from main project/process
const { KeyValue } = require("@akarui/aoi.db"); //commonjs
// or
import { KeyValue } from "@akarui/aoi.db"; //esm
// Basic Setup
const db = new KeyValue({
dataConfig: { path: "./database" },
encryptionConfig: {
encriptData: false,
securityKey: "a-32-characters-long-string-here",
},
debug: true,
});
db.on("ready", () => {
console.log("Database is ready!");
});
db.connect();
Reference: KeyValue
const { WideColumn, Column } = require("@akarui/aoi.db"); //commonjs
// or
import { WideColumn, Column } from "@akarui/aoi.db"; //esm
// Basic Setup
const prime = new Column({
name: "id",
primary: true,
type: "bigint",
default: 0n,
});
const xp = new Column({
name: "xp",
type: "number",
primary: false,
sortOrder: "DESC",
default: 0,
});
const db = new WideColumn({
path: "./path/",
encryptionConfig: {
securityKey: "a-32-characters-long-string-here",
},
tables: [
{
name: "main",
columns: [prime, xp],
},
],
});
db.on("ready", () => {
console.log("Database is ready!");
});
db.connect();
Reference: WideColumn
const { Receiver } = require("@akarui/aoi.db"); //commonjs
// or
import { Receiver } from "@akarui/aoi.db"; //esm
const rec = new Receiver({
logEncrypt: "a-32-characters-long-string-here",
logPath: "./logPath/",
wsOptions: {
port: portNo, // 443 for ssl wss and 80 for ws
clientTracking: true,
},
whitelistedIps: "*",
});
rec.on("connect", () => {
console.log("connected");
});
rec.connect();
Reference: Receiver
const { Transmitter, TransmitterFlags } = require("@akarui/aoi.db"); //commonjs
// or
import { Transmitter, DatabaseEvents } from "@akarui/aoi.db"; //esm
cconst db = Transmitter.createConnection({
path: `aoidb://usersatoshi:123456@localhost:8080`,
dbOptions: {
type: "KeyValue",
options: {
dataConfig: {
path: "./database",
},
encryptionConfig: {
securityKey: "a-32-characters-long-string-here"
}
}
}
})
//or
const db = new Transmitter({
dbOptions: {
type: "KeyValue",
options: {
dataConfig: {
path: "database",
},
encryptionConfig: {
securityKey: "a-32-characters-long-string-here"
}
}
},
username: "username",
password: "password",
})
db.on(DatabaseEvents.Connect, () => console.log("Connected"));
db.on(DatabaseEvents.Disconnect, () => console.log("Disconnected"));
db.connect();
Reference: Transmitter
FAQs
@akarui/aoi.db - Database Management System with different types of databases.
The npm package @akarui/aoi.db receives a total of 382 weekly downloads. As such, @akarui/aoi.db popularity was classified as not popular.
We found that @akarui/aoi.db demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.