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 🙏

© 2026 – Pkg Stats / Ryan Hefner

7x-sdk

v1.0.14

Published

The 7x JavaScript SDK

Readme

A JavaScript SDK for 7x APIs

To use this SDK, you will need an API Key. Sign up on https://7x.ax to get started.

Install

npm i 7x-sdk

Usage

Timezone API

const Timezone = require('7x-sdk').Timezone;

let tz = new Timezone(API_KEY);
let data = tz.get(30.0444, 31.2357);
// data is an instance of the Timezone DTO
console.log(data.timezones);

Distance API

Distance by Coordinates

const Distance = require('7x-sdk').Distance;

let d = new Distance(API_KEY);
let data = d.getByCoordinates(22.22, 33.33, 44.44, 55.55, 'km');
// data is an instance of the Distance DTO.
data.distance;
data.unit; // km if you specified km, or mi if you specified mi. Defaults to km if not specified.

Distance by Address

const Distance = require('7x-sdk').Distance;

let d = new Distance(API_KEY);
let data = d.getByAddress('London, UK', 'Paris, France', 'km');
// data is an instance of the Distance DTO.
$data.distance;
$data.unit; // km if you specified km, or mi if you specified mi. Defaults to km if not specified.

Geocoding API

Geocode by City / Address String

const Geocode = require('7x-sdk').Geocode;

let g = new Geocode(API_KEY);
let data = g.get('Trafalgar Square, London, UK');
// data is an instance of GeocodeCollection. This contains an array of objects.
for (let obj of data.objects) {
    obj.coordinates; // Instance of Coordinates
    obj.location; // Instance of Location}
}

Geocode Search (to build search suggest / autocomplete functionality)

const Geocode = require('7x-sdk').Geocode;

let g = new Geocode(API_KEY);
let data = g.search('Lon');
// data is an instance of the GeocodeCollection DTO. This contains an array of objects.
for (let obj of data.objects) {
    obj.coordinates; // Instance of Coordinates
    obj.location; // Instance of Location
}

Reverse Geocoding by Coordinates

const Geocode = require('7x-sdk').Geocode;

let g = new Geocode(API_KEY);
let data = g.reverse(22.223232, 33.343443);
// data is an instance of the GeocodeCollection DTO. This contains an array of objects.
for (let obj of data.objects) {
    obj.coordinates; // Instance of Coordinates
    obj.location; // Instance of Location
}

Numbers

const Numbers = require('7x-sdk').Numbers;

let g = new Numbers(API_KEY);
let data = g.latinToArabic(22.223232);
// data is an instance of the Arabic DTO. This contains an array of objects.
data.arabic;
data.latin

let data = g.arabicToLatin('١٢٣٤٥٦٧٨٩٠');
// data is an instance of the Arabic DTO. This contains an array of objects.
data.arabic;
data.html

let data = g.arabicToHtml('١٢٣٤٥٦٧٨٩٠');
// data is an instance of the Arabic DTO. This contains an array of objects.
data.arabic;
data.html

Date and Time

const Dt = require('7x-sdk').DateAndTime;

let g = new Dt(API_KEY);
let data = g.byTimezone('Africa/Cairo');
// or 
let data = g.byCoordinates(22.223232, 33.343443);
// or
let data = g.byAddress('Trafalgar Square, London, UK');
// data is an instance of the DateAndTime DTO.
data.time;
data.timezone;