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

julesapi

v1.0.7

Published

Connect your software with Jules

Downloads

0

Readme

Jules API TypeScript Wrapper

This TypeScript wrapper provides convenient access to the Jules API.

Table of Contents

Installation

This package relies on axios to make HTTP requests. Install it using npm:

npm install axios

Then, import the required functions from the module in your TypeScript file.

User API

The User API offers these functions:

  • getUserIdByName(apiKey: string, id: string): Promise<any>
    • Retrieves a user ID using their username.
  • getUser(apiKey: string, id: string): Promise<any>
    • Retrieves a username using their ID.
  • getUserName(apiKey: string, id: string): Promise<any>
    • Retrieves a username using the user's ID.
  • getUserOwnedGames(apiKey: string, id: string): Promise<any>
    • Retrieves the games owned by a user using their ID.
  • getUserOwnedGame(apiKey: string, userId: string, gameId: string): Promise<any>
    • Retrieves a specific game owned by a user using the user's ID and the game's ID.

All functions need an apiKey and id as arguments. The getUserOwnedGame function also requires gameId.

Game API

The Game API offers these functions:

  • getGameIdByName(apiKey: string, id: string): Promise<any>
    • Retrieves a game ID using its name. Use %20 as a space
  • getGame(apiKey: string, id: string): Promise<any>
    • Retrieves a game using its ID.
  • getGameName(apiKey: string, id: string): Promise<any>
    • Retrieves a game's name using its ID.
  • getGameDescription(apiKey: string, id: string, type: string): Promise<any>
    • Retrieves a game's description using its ID.
  • getGameImage(apiKey: string, id: string, type: string): Promise<any>
    • Retrieves a game's image using its ID.
  • getGameTags(apiKey: string, id: string): Promise<any>
    • Retrieves a game's tags using its ID.
  • getGamePrice(apiKey: string, id: string): Promise<any>
    • Retrieves a game's price using its ID.
  • getGameLanguage(apiKey: string, id: string): Promise<any>
    • Retrieves a game's language using its ID.
  • getGameDeveloper(apiKey: string, id: string): Promise<any>
    • Retrieves a game's developer information using its ID.
  • getGamePublisher(apiKey: string, id: string): Promise<any>
    • Retrieves a game's publisher information using its ID.
  • getGameAgeRating(apiKey: string, id: string): Promise<any>
    • Retrieves a game's age rating using its ID.
  • getGameInfo(apiKey: string, id: string, type: string): Promise<any>
    • Retrieves a game's detailed information based on the type parameter using its ID.

All functions require an apiKey and id as arguments. Functions getGameDescription, getGameImage, GetOwnedGameInfo and getGameInfo also require a type argument.

type arguments involve the specific set of data you can recieve. For example:

getGameDescription has types main and abbreviated.

getGameImage has types CoverIMG, CarouselIMG, and SpotlightIMG.

getOwnedGameInfo has types hoursPlayedand achievements.

getGameInfo has types TotalHoursByPlayers, PlayerCount, MaxPlayerCount, ReleaseDate, and LastUpdateDate.

Error Handling

In the event of a server error or network issue, these functions will throw an error. You can catch these errors and handle them appropriately in your application. The error message will provide some information about what went wrong, which can help with troubleshooting. For example:

try    
{
  const user = await getUser(apiKey, userId);
  console.log(user);
} catch (error) {
  console.error(`Failed to get user: ${error.message}`);
}

Future Improvements

This document will be updated as more features are added to the API.