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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ltsdk

v1.1.2

Published

Learning Tokens SDK (LMS Connector) - Unified connector for LMS (Canvas, edX, Moodle, Google Classroom) to learning tokens platform

Readme

Learning Tokens SDK (ltsdk)

A ready-to-run connector that helps instructors and implementation teams connect their LMS environments to the Learning Tokens platform. The SDK acts as a bridge between the various Learning Management Systems and a Granular Achievement Recognition System (GARS - Learning Tokens) that unifies authentication, fetches course information, and presents a modern dashboard so teams can review the data before issuing Learning Tokens or building further automations.


Requirements

  • Node.js 16+ and npm 7+.
  • LTSDK access key. You can use any of the following dummy Access keys when prompted to input in the browser:
    • LTSDK-2024-STANFORD-A1B2C3D4 (Stanford)
    • LTSDK-2024-MIT-E5F6G7H8 (MIT)
    • LTSDK-2024-HARVARD-I9J0K1L2 (Harvard)
    • LTSDK-2024-BERKELEY-M3N4O5P6 (Berkeley)
    • LTSDK-2024-OXFORD-Q7R8S9T0 (Oxford)
  • LMS credentials for at least one of the supported platforms.
  • local LMS instances (Tutor for Open edX, Moodle docker) if you do not have institutional credentials yet. Most production users will plug in their actual campus LMS.

Install & Run

To install the package, use the following command:

npm install ltsdk

Once installed, to run the SDK, use the following command:

npx ltsdk start
  • The SDK will verify your access automatically.
  • Once initialized, your browser will open automatically.
  • To stop the SDK, press Ctrl+C in the terminal. This will gracefully shut down all services (SDK server, auth server, and frontend).

LMS-specific notes

  • Open edX: Uses OAuth authorization code flow. Register http://localhost:5002/auth/edx/callback in your edX admin panel.
  • Canvas: Requires an API token generated from your Canvas profile.
  • Moodle: Uses a web services token generated from the Moodle admin area.
  • Google Classroom: OAuth consent flow handled within the SDK. Register http://localhost:5002/api/google/callback in your google cloud console.

All LMS credentials stay on your machine (privacy-oriented architecture). The SDK stores them in local-server/config.auth.json, which is ignored by git and excluded from the npm package.


Development workflow (for contributors)

  • npm run build: Compiles TypeScript to dist/.
  • npm test: Runs adapter + smoke tests.
  • npm run dev:all:auth: Starts backend, auth server, and frontend simultaneously (mirrors the CLI behavior).
  • Environment examples live in env.example and frontend/.env.example.

Support & resources

  • GitHub: https://github.com/hyperledger-labs/learning-tokens
  • Tutor (Open edX) docs: https://docs.tutor.overhang.io/
  • Moodle install docs: https://docs.moodle.org/400/en/Installation

License

Linux Foundation