npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

remotedb

v1.0.0

Published

Official Node.js API Wrapper for the Hosting HQ RemoteDB API

Downloads

15

Readme

Hosting HQ Assets | TYPE: Banner | Format: PNG

Github Issues Sheid Last Commit Github License Shield NPM Version Node Version Downloads Maintained? Size

RemoteDB

Hosting HQ RemoteDB is a service that provides Hosting HQ clients and non-clients a remote database solution to ease the burden of utilizing complex frameworks to manage their database.

Prerequisites

  • RemoteDB API Client ID (Check your Dashboard)

  • RemoteDB API Token (Check your Dashboard)

  • Validated RemoteDB License (Don't have one? Purchase one here)

System Requirements

  • Node.js v12 or higher

Usage


const Database = require("remotedb");
const db = new Database("client_id", "token", [options]);

.set(key, value, [expire])

// Without async function
db.set("key", "value", [expire]).then(() => {
});

// With async function
await db.set("key", "value");

.get(key)

// Without async function
db.get("key").then(() => {
});

// With async function
await db.get("key");

.delete(key)

// Without async function
db.delete("key").then(() => {
});

// With async function
await db.delete("key");

Response Options

.set(key, value, [expire])

  • You can set the default response object using the class. It will return what you set it to until you edit the class.
const Database = require("remotedb");
const db = new Database("client_id", "token", [p, s, o, d]);
/**
* Options accept only boolean (true or false) values.
* There are four option values, all are optional but you must specify them all if you want a specific option only.
* By default, it will return the entire response object, but you can set it to return only the prettified object, the entire object, the response status, or the data object itself.
* 
* p = prettified object (will show prettified errors too)
* s = status (will only show the HTTP status code)
* o = object (true by default, it will show the entire response object)
* d = data object (will only show the data object)
*/
  • If you do not want to configure the class, you can get your desired value through the response object.

.get(key)

  • You can set the default response object using the class. It will return what you set it to until you edit the class.
const Database = require("remotedb");
const db = new Database("client_id", "token", [p, s, o, d]);
/**
* Options accept only boolean (true or false) values.
* There are four option values, all are optional but you must specify them all if you want a specific option only.
* By default, it will return the entire response object, but you can set it to return only the prettified object, the entire object, the response status, or the data object itself.
* 
* p = prettified object (will show prettified errors too)
* s = status (will only show the HTTP status code)
* o = object (true by default, it will show the entire response object)
* d = data object (will only show the data object)
*/
  • If you do not want to configure the class, you can get your desired value through the response object.

.delete(key)

  • You can set the default response object using the class. It will return what you set it to until you edit the class.
const Database = require("remotedb");
const db = new Database("client_id", "token", [p, s, o, d]);
/**
* Options accept only boolean (true or false) values.
* There are four option values, all are optional but you must specify them all if you want a specific option only.
* By default, it will return the entire response object, but you can set it to return only the prettified object, the entire object, the response status, or the data object itself.
* 
* p = prettified object (will show prettified errors too)
* s = status (will only show the HTTP status code)
* o = object (true by default, it will show the entire response object)
* d = data object (will only show the data object)
*/
  • If you do not want to configure the class, you can get your desired value through the response object.

Documentation

You can view our API documentation including API changelog at https://docs.hostinghq.xyz/api

Support

You can get support with RemoteDB and our packages in our Official Discord Server

Contributing

Contribution to our packages is restricted to authorized contributors. If you believe a change needs to be made, open an issue and we will review it.

License

Hosting HQ RemoteDB Python Package is Licensed under GPL-3.0. The full license can be viewed here