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

memrise

v0.4.0

Published

Unofficial Memrise API client for Node.js and Bun

Readme

Memrise API Client

Unofficial Memrise Community Courses API client JavaScript

Installation

npm install memrise

Usage

import { MemriseClient } from "memrise";

// Initialize with username and password
const client = new MemriseClient("username", "password");

// Get your courses
const courses = await client.getMyCourses();
console.log(courses);

// Get course by ID or slug
const course = await client.getCourseById("123456");
const courseBySlug = await client.getCourseBySlug("my-course");

// Get course columns (to see what fields are available)
const columns = await client.getCourseColumns("123456");
console.log(columns);
// { "1": { "kind": "text", "label": "Word", ... }, ... }

// Add items to a course
await client.addThingToCourse("123456", {
  "1": "hello",
  "2": "こんにちは",
});

// Get course levels
const levels = await client.getCourseLevels("123456");

// Get course levels including empty levels visible in the editor
const allLevels = await client.getCourseLevelsIncludingEmpty("123456");

// Get all items from a course
const allItems = await client.getCourseItems("123456");

// Get limited items from a course (first 10 items)
const limitedItems = await client.getCourseItems("123456", 10);

// Get all items from a specific level (level 0)
const levelItems = await client.getLevelItems("123456", 0);

// Get limited items from a specific level (first 5 items from level 1)
const limitedLevelItems = await client.getLevelItems("123456", 1, 5);

// Add items to a specific level
await client.addThingToLevel("level-id", {
  "1": "word",
  "2": "definition",
});

// Add a new level to a course (auto-uses pool from first existing level)
await client.addLevelToCourse("123456");

// Add a new level to a course with explicit pool_id and kind
await client.addLevelToCourse("123456", "7772442", "things");

// Rename a level
await client.setLevelTitle("level-id", "02/19");

// Delete a level
await client.deleteLevel("level-id");

// Search pool
const results = await client.searchPool("pool-id", {
  "1": "search term",
});

// Get pool information
const pool = await client.getPool("pool-id");

API

Constructor

new MemriseClient(username: string, password: string, clientId?: string)

Methods

Course Management:

  • getMyCourses(limit?, offset?) - Get your courses
  • getCourseById(courseId) - Get course by ID
  • getCourseBySlug(slug) - Get course by slug
  • getCourseLevels(courseId) - Get levels for a course
  • getCourseLevelsIncludingEmpty(courseId, slug?) - Get levels including empty draft levels from the edit view
  • getCourseColumns(courseId) - Get column configuration for a course

Reading Items:

  • getCourseItems(courseId, limit?) - Get items from a course (optionally limit results)
  • getLevelItems(courseId, levelIndex, limit?) - Get items from a specific level (optionally limit results)
  • getLearnable(learnableId) - Get a single learnable item

Adding Items:

  • addThingToCourse(courseId, columns, levelIndex?) - Add item to course (default: first level)
  • addThingToLevel(levelId, columns) - Add item to specific level
  • addLevelToCourse(courseId, poolId?, kind?) - Add a new level to a course
  • setLevelTitle(levelId, newTitle) - Rename a level
  • deleteLevel(levelId) - Delete a level

Pool Operations:

  • searchPool(poolId, columns, excludeThingIds?, originalOnly?) - Search pool
  • getPool(poolId) - Get pool information

License

MIT