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

@gitonga/sdk_test

v1.0.4

Published

Please modify this readme file to specify how to install, use and test the SDK.

Readme

Lord of the Rings SDK

Mellon , this is the one API (What the hell is an Application Programming Interface?) to rule them all . No really, it serves your needs regarding data about The Lord of the Rings , the epic books by J. R. R. Tolkien and the official movie adaptions by Peter Jackson.

There are many endpoints available, but you need to sign up to obtain an access key. Get a glimpse into the documentation to check out all accessible datasets.

Installation

NPM

To install via NPM:

npm install @gitonga/sdk_test --save

If you're using a bundler (like Rollup or webpack), you can import the Appwrite module when you need it:

import RingsSDK from "@gitonga/sdk_test";

Getting Started

Init your SDK

Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page.

// Init your Web SDK
const client: RingsSDK = new RingsSDK({
    apiKey: "Your API Key",
  });

Make Your Requests

Once your SDK object is set, access any of the SDK services and choose any request to send.

The request currently available are :

  1. get all the movies ${baseUrl}/movies
  2. get movie details ${baseUrl}/movies/$${id}
  3. get movie quotes ${baseUrl}/movies/$${id}/quote
  4. get all the quotes ${baseUrl}/quote
  5. get a qoute details ${baseUrl}/quote/$${id}
//Get all the quotes
client.getQoutes().then((p: any) => {
    console.log(p);
}); 

// Get a quote by id 
  client.getQuoteById("testId").then((p: any) => {
    console.log(p);
  });

// Get all the movies 

client.getMovies().then((p: any) => {
    console.log(p);
}); 

// Get Movie Detail by Id

client.getMovieById("testid").then((p: any) => {
    console.log(p);
}); 

// Get movie quotes

client.getMovieQuotes("testid").then((p: any) => {
    console.log(p);
}); 

Full Example

// Init your Web SDK
//import the package
import RingsSDK from "@gitonga/sdk_test";

// Init your Web SDK
const client: RingsSDK = new RingsSDK({
    apiKey: "testAPIKey",
  });
  
client.getQoutes().then((p: any) => {
    console.log(p);
}); 

Learn more

You can use the following resources to learn more and get help

License

MIT