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

@flashcard-master/web

v1.3.0

Published

Local Web UI Dashboard and REST API Server for Flashcard Master

Readme

@flashcard-master/web

npm version license docs

Local Web UI Dashboard and REST API server for Flashcard Master.


🎨 Overview

@flashcard-master/web provides the interactive graphical user interface and local HTTP server for Flashcard Master:

  • Reactive Svelte 5 Studio: Built using the latest Svelte 5 Runes system ($state, $derived, $effect) for zero-bloat state reactivity.
  • REST API Server (server.ts): Built on Node.js native node:http, delivering high throughput with minimal overhead.
  • Real-Time Progress Streaming: Uses Server-Sent Events (SSE) to stream live token extraction, LLM synthesis, and grounding validation directly to the browser.
  • Question Explorer & Deck Manager: Infinite-scroll card browser with $O(1)$ cursor-based pagination, inline editing, and atomic SQLite deck operations (cloning, splitting, and moving).
  • Settings Studio: Dynamic configuration management with live AnkiConnect testing, API key obfuscation, and origin tracking (database, env, or default).

📦 Installation

npm install @flashcard-master/web @flashcard-master/core @flashcard-master/adapters

(Note: If you want to run the web UI from your terminal without writing code, use @flashcard-master/cli via npx @flashcard-master/cli serve).


💻 Programmatic Usage

Embedding the Web Server in Node.js or Electron

import { createWebServer } from "@flashcard-master/web";
import { createDatabaseClient, FlashcardRepository, DataSourceRepository } from "@flashcard-master/core";

// 1. Initialize storage
const db = createDatabaseClient("~/.flashcard-master/flashcards.db");

// 2. Start the HTTP server
const server = createWebServer({
  db,
  port: 3088,
  host: "127.0.0.1",
});

await server.start();
console.log(`Flashcard Master Web UI listening on http://127.0.0.1:3088`);

🔌 Core REST API Endpoints

| Endpoint | Method | Description | | :--- | :--- | :--- | | /api/sources | GET, POST | List all data sources or register a new URL, feed, or file. | | /api/sources/:id/sync | POST | Trigger background ingestion and document extraction. | | /api/cards | GET | Fetch cards with cursor pagination (cursor, limit, deck). | | /api/generate | POST | Start grounded flashcard generation with live SSE streaming. | | /api/decks/clone | POST | Transactionally duplicate a deck with fresh UUIDs. | | /api/decks/split | POST | Partition a large deck into numbered study sub-decks. | | /api/export | POST | Export to Desktop Anki, standalone .apkg, EPUB, CSV, or HTML. | | /api/settings | GET, PUT | Read masked application settings or update configuration keys. |


📚 Documentation

For complete API walkthroughs and developer guides, visit the Flashcard Master Documentation.


📄 License

GNU Affero General Public License v3.0 (AGPL-3.0).