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

@memizy/plugin-sdk

v0.3.4

Published

Official TypeScript SDK for building Memizy plugins.

Readme

🚀 Live Interactive Playground

Use it to explore the full SDK in action: standalone loading, set editing, asset flows, text rendering, and progress lifecycle behavior.

📖 Plugin API Guide   |   ⚙️ Host Protocol

Build sandboxed flashcards, quizzes, games, and interactive study tools that plug into the Memizy host with clean contracts and modern DX.


Why @memizy/plugin-sdk?

@memizy/plugin-sdk removes the infrastructure friction so you can focus on learning UX:

  • 🔌 Penpal v7 RPC transport — structured host communication without manual postMessage wiring.
  • 🧬 Mutative JSON patches — update items with recipe(draft => { ... }) and send only compact deltas.
  • 📦 OQSE + Zod contracts — shared schemas from @memizy/oqse keep set/progress data strongly validated.
  • 🧪 Standalone mode built insessionStorage-backed MockHost + polished Shadow-DOM loader for local iteration.

Quick start

npm install @memizy/plugin-sdk
import { MemizySDK } from '@memizy/plugin-sdk';

const sdk = new MemizySDK({
  id: 'my-flashcard-plugin',
  version: '1.0.0',
  debug: true,
});

const { items, settings } = await sdk.connect();

console.log(`Loaded ${items.length} items.`);

sdk.store.startItemTimer(items[0].id);
sdk.store.answer(items[0].id, /* isCorrect */ true, { confidence: 3 });

await sdk.sys.requestResize(720);
await sdk.sys.exit({ score: 95 });

The SDK auto-detects its runtime environment:

  • Inside an iframe → connects to the host via Penpal.
  • Top-level window → spins up a local MockHost + Standalone UI for dev.

See the full walkthrough in docs/plugin-api.md.


Namespaced API at a glance

| Namespace | Purpose | |------------------|------------------------------------------------------------------------| | sdk.sys | Resize, exit, report errors. | | sdk.store | Get items/meta/progress, answer(), skip(), patch-based mutations. | | sdk.assets | Upload & fetch binary assets (File/Blob). | | sdk.text | Parse & render OQSE rich text (tokens, assets, blanks). |

Full reference → docs/plugin-api.md.


Standalone development

When you run your plugin outside the Memizy host (e.g. on localhost), the SDK shows a floating ⚙ gear that opens the Standalone Loader — a brand-styled Shadow-DOM modal for loading study sets by URL, text, or drag-and-drop.

You can also:

  • Pass seed data: sdk.connect({ mockData: { items: [...] } }).
  • Auto-load via URL parameter: ?set=https://example.com/deck.oqse.json.
  • Open the modal yourself: sdk.openStandaloneUI().

Everything is validated against @memizy/oqse Zod schemas so malformed input fails loudly.


Live example

A minimal flashcard plugin showcasing the full SDK lives in example/ and is deployed to GitHub Pages at:

https://memizy.github.io/plugin-sdk/

Run it locally:

npm install
npm run example:dev

Documentation


License

MIT © Memizy.