Registry / database / ark-database

ark-database

JSON →
library18.3.0jsnpmunverified

ark-database is a wrapper library designed for database access, specifically tailored for the `locator-kn/ark` application server. As of version 18.3.0, the package is deeply integrated into the `ark` ecosystem and requires `hapi` (>=9.x.x) as a peer dependency. The project appears to be abandoned, with its last commit in October 2017, and an open GitHub issue (dating back to 2016) indicates an unfinished transition from callback-based APIs to Promises. This leads to an inconsistent API surface where developers might encounter a mix of both patterns, necessitating direct source code inspection for clarity. Given its abandonment and tight coupling to an unmaintained server framework, it is not recommended for new projects. Its release cadence was irregular, with significant periods of inactivity.

database
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

This package primarily uses CommonJS `require` syntax. Given its last update in 2017, it does not officially support ES Modules.

const Database = require('ark-database');

This quickstart demonstrates the core usage of `ark-database` including initialization and performing basic CRUD operations (get, create, delete) using its callback-based API.

const Database = require('ark-database'); // Initialize the database wrapper for a specific tenant/user context const db = new Database('alice'); // Example: Get a user by ID using a callback db.getUserById('1234567890', function(err, res) { if (err) { console.error('Error fetching user:', err); return; } console.log('User found:', res); }); // Example: Create a new trip entry const newTrip = { id: 'trip-abc-123', userId: 'alice', destination: 'Wonderland', startDate: new Date(), status: 'planned' }; db.createTrip(newTrip, function(err, res) { if (err) { console.error('Error creating trip:', err); return; } console.log('Trip created:', res); }); // Example: Delete a location by ID db.deleteLocationById('12322456576567', function(err, res) { if (err) { console.error('Error deleting location:', err); return; } console.log('Location deleted result:', res); });
Debug
Known footguns
breakingThe `ark-database` package and its core dependency, `locator-kn/ark`, have been abandoned since late 2017. There will be no further updates, bug fixes, or security patches.
gotchaThe API is inconsistent, with some methods using traditional Node.js callbacks while others might have been partially refactored to return Promises (as indicated by a long-standing open GitHub issue). This requires careful inspection of the source code for each method used.
breakingThe package has a strict `hapi` peer dependency ('>=9.x.x'). Running this package with newer or significantly older versions of Hapi, or with non-Hapi environments, will likely result in installation failures or runtime errors.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
19 hits · last 30 days
gptbot
4
ahrefsbot
4
bytedance
3
dotbot
2
script
1
googlebot
1
Resources