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

srs-converter

v0.3.0

Published

A library for converting between different spaced repetition system formats

Readme

srs-converter

GitHub License Node.js Version TypeScript

A TypeScript library for converting between different spaced repetition system (SRS) formats.

Goal: Enable seamless data migration between popular SRS applications like Anki, Mnemosyne, SuperMemo, and Mochi, preserving as much data as possible.

[!warning] Alpha Software: This library is in early alpha development. APIs may change without notice, and data loss could occur.

This is not recommended for production use yet. Please backup your data before testing.

Features

  • Anki Support: Convert .apkg and .colpkg packages to a universal SRS format
  • Complete Data: Support for notes, cards, decks, and review history
  • Node.js Only: Currently requires Node.js (browser support planned for future releases)
  • Type-Safe: Full TypeScript support with comprehensive type definitions
  • Error Handling: Robust validation and tri-state error reporting
  • Well-Tested Dependencies: Uses established libraries for SQLite parsing, archive handling, and data processing
  • Extensible: Architecture designed to support additional SRS formats in the future

Universal SRS Format

The library aims to define a universal SRS format. This is neccessary, because the current SRS formats are very fragmented and undocumented. As a strong opponent of vendor lock-in, the library will strive to create a format that:

  • Is open and accessible
  • Is human-readable
  • Has support for all the relevant entities of SRS systems (notes, cards, decks, etc.)
  • Is well-documented (we will provide comprehensive RFC style documentation)
  • Uses normalized data structures
  • Is free from proprietary constraints
  • Guarantees upward compatibility
  • Is easily extensible for additional application specific data

Installation

Install from npm:

npm install srs-converter
pnpm install srs-converter
yarn add srs-converter

Development Installation

For development or testing, you can also install this package locally:

# Clone the repository
git clone https://github.com/eikowagenknecht/srs-converter.git
cd srs-converter

# Install dependencies
pnpm install

# Build the package
pnpm build

Platform Compatibility

  • Node.js: Full support (v22+ recommended)
  • Bun / Deno: Not tested
  • Browser: Not currently supported (uses Node.js-specific filesystem APIs)

Note: Browser support is planned for future releases by abstracting file system operations.

Usage

For usage examples and API documentation, see the Usage Guide.

Project Status

The library development follows a phase-based approach. For detailed development progress, upcoming features, and implementation status, see the Development Stories.

Current Focus: We're in early development, expanding test coverage for existing Anki functionality and adding support for media files and complex note types (Cloze, Image Occlusion) before implementing additional SRS formats (Mnemosyne, Mochi, SuperMemo).

Format Support Matrix

| Feature | Anki | Mnemosyne | SuperMemo | Mochi | Custom Formats | |---------|------|-----------|-----------|-------|----------------| | Read Support | ✅ Good | ❌ Planned | ❌ Planned | ❌ Planned | ❌ Planned | | Write Support | ✅ Good | ❌ Planned | ❌ Planned | ❌ Planned | ❌ Planned | | Round-trip | ✅ Working | ❌ Planned | ❌ Planned | ❌ Planned | ❌ Planned | | File Types | .apkg, .colpkg | - | - | - | - | | Database Schema | Legacy v2 | - | - | - | - |

Anki Format Details

For detailed technical information about the Anki package format, see: Understanding the Anki .apkg Format (Legacy 2)

| Component | Support Level | Notes | |-----------|---------------|-------| | Decks | ✅ Full | Name, description, configuration, hierarchy | | Note Types | ✅ Full | Fields, templates, CSS styling, configuration | | Notes | ✅ Full | Content in all fields, tags, modification timestamps | | Cards | ✅ Full | Question/answer templates, due dates, intervals, ease factors | | Review History | ✅ Full | Complete review logs with timestamps and scores | | Media Files | ✅ Full | List files, get file size, stream content, add files from paths/buffers/streams | | Formats | ⚠️ Partial | Only Legacy v2 is supported for now | | Plugin Data | ❌ No | Plugin-specific data may be ignored | | Conversion Quality | ⚠️ Partial | Anki ↔ Universal SRS format conversion preserves basic data with round-trip capability | | Advanced Features | ⚠️ Partial | Complex note types (Cloze, Image Occlusion) are untested |

Maintainer

This project is maintained by Eiko Wagenknecht.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Documentation

For detailed development information:

License

MIT