MCPcopy Index your code
hub / github.com/asbplayer/asbplayer

github.com/asbplayer/asbplayer @v1.19.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.19.0 ↗ · + Follow
3,472 symbols 8,307 edges 444 files 43 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img src="https://raw.githubusercontent.com/asbplayer/asbplayer/main/extension/public/icon/icon128.png" width="75" height="75" style="border-radius: 16px" alt="asbplayer" />

GitHub Workflow Status (with event) Github All Releases GitHub License Discord

asbplayer

asbplayer is a browser-based media player and Chrome extension developed for language learners who learn their target language through subtitled media. With asbplayer, you can:

  • Easily create high-quality, multimedia flashcards out of subtitled videos.
  • Load text-selectable subtitles onto most video sources, including streaming sources. You can use auto-detected subtitles on popular streaming services like Netflix and YouTube, or your own subtitle files.
  • Seek through subtitles using a navigable subtitle list.
  • Optimize language acquisition with playback modes like:
  • Condensed playback: Skip unsubtitled sections of video.
  • Fast-forward playback: Fast-forward through unsubtitled sections of video.
  • Auto-pause: Automatically pause at the beginning or end of every subtitle.
  • Use customizable keyboard shortcuts to access most of asbplayer's features.
  • Annotate subtitles with the help of tools such as Yomitan
  • Word styling (color/underline/outline, etc.) based on a word's status (uncollected/unknown/learning, etc.) synced from Anki, WaniKani, and/or tracked locally in asbplayer.
  • Reading annotation for reading displayed above each word or based on status.
  • Accent annotation such as pitch accent.
  • Frequency annotation for rank-based frequency displayed below each word or based on status.
  • Statistics and Comprehension on your known words for the current media.
  • Word browser to manage local and view words synced from external sources.
  • Many more features for future releases! Some planned features include:
    • Auto pause, Condensed playback, and Auto mining on uncollected/unknown/learning words.
    • Statistics and Comprehension on your known words across media.

Thanks

Thank you to everyone who has sponsored the project:

@vivekchoksi, @nzarbayezid, @ManuJapan, AdamM, realgoodsmiley, Alex, @m4eko, Simon, Attenius, medyas, @zaerald, Suna, @tony7253, @voothi, kibo, @genericdave, Daniel, Cristian, Joey Potter, @InteractiveNinja, @agloo, @Venous771, @Viterkim, Julian, DanglingSabSuu, @nikkovc, @ganqqwerty, @mathiaslovnes, @MF-Billings, @festivity9139, Phos, AstralDice, @east825, @Astr0ddity, @NirDafnai, @henryfl, トム, Peter, @825i, ags, Vannde3, Champ, marcman3001, @vladysor

and to those who have donated privately.

Thank you to all those who have contributed to asbplayer:

@Renji-XD, @MatiasIslaA, @cyphar, @alexbofa, @Zyphdoz, @artjomsR, @iam6lake, @bpwhelan, @pooky-programs, @m-edlund, @nekorushi, @Viterkim, @s-cork, @shekhirin, @ShanaryS, @kayden1940, @eltociear, @MarvNC, @mcgrizzz, @mwojick, @kowasaur, @NirDafnai, @miroshQa, @RicBent, @fuyuka1d3su, @SpazzTL, @mseh1128, @LuqueDaniel, @agloo, @Bennycopter, @extremq, @iamllama, @danthemango, @L-M-Sherlock, @Hit2Skill, @khajiitvaper2017, @saifkaral, @xwxb, @yqmmm, @jprostko, @rodrigo-suarezmajor, @Roka20012, @RonzyOnGIT, @Dr-TNineS, @thntx

Thank you to all those who have translated asbplayer:

Mana Tsutsumi (Japanese, initial translation), Kai Böse (German), Triline, @nekorushi (Polish), NeverWinterSwor (Simplified Chinese), @AkihaZhang (Simlified Chinese), Yagxter, @chatterine (Brazilian Portuguese), Leo Gonzalez (Spanish), @NovaKing007 (Spanish), Yuri (@ganqqwerty) (Russian), Kellen (kputuhuk) (Russian), Vladislav Kochetkov (vakochetkov) (Russian), @825i (Finnish), @Jaybird1291 (French), Tigerbabe aka Gyaru Jinsei Juku (Korean), yaacha (Indonesian), @NeriSal (Italian)

If you are a non-English native, and would like to help translate asbplayer, join the Crowdin project. If your language isn't there, feel free to create an issue to add it on the issues page.

Contributing

Before contributing, please read the contribution guidelines.

User guide

asbplayer's complete user guide is here.

Getting Started

[!NOTE]
asbplayer is both a subtitle control and flashcard creation tool. If you are not interested in flashcards, and only want to use asbplayer's subtitle features, just follow step 5.

  1. Install and set up a dictionary tool for your target language that allows you to do instant lookups. Popular ones are Yomitan (see supported languages) and VocabSieve (tuned for European languages. Works with Asian languages too but doesn't automatically detect word boundaries).
  2. Install Anki, and create a deck and note type. More details on Refold's guide.
  3. Install the AnkiConnect plugin for Anki.
  4. Configure asbplayer to create cards via AnkiConnect using your deck and note type.
  5. Enhance a video using asbplayer and subtitle files.

    • For streaming video: After installing the browser extension, drag-and-drop a subtitle file into the streaming video you want to mine.
    • For local files: Drag-and-drop media/subtitle files into the asbplayer website.

    You may have to adjust the subtitle offset to get the subtitles in sync.

  6. When a subtitle appears that you want to mine, use Ctrl + Shift + X to open the flashcard creator.

  7. Fill in the definition and word fields and then export the card. To fill in the definition field you may use the dictionary you installed in step 1.

Contact

Submit bugs or feature requests from the issues page. Join the Discord server to talk with me and other language learners.

Notes for AMO source code reviewers

Environment

node 22.17.1
yarn 3.2.0

Building

# Install dependencies
yarn

# Builds Firefox extension to extension/.output/asbplayer-<version>-firefox.zip
yarn workspace @project/extension run wxt zip -b firefox

# Builds Firefox for Android extension to extension/.output/asbplayer-<version>-firefox-android.zip
yarn workspace @project/extension run wxt zip -b firefox-android --mv2

Extension points exported contracts — how you extend this code

DictionaryStorage (Interface)
(no doc) [6 implementers]
common/dictionary-db/dictionary-provider.ts
AppSettingsStorage (Interface)
(no doc) [4 implementers]
common/app/services/app-settings-storage.ts
AudioData (Interface)
(no doc) [4 implementers]
common/audio-clip/audio-clip.ts
KeyBinder (Interface)
(no doc) [4 implementers]
common/key-binder/key-binder.ts
MediaFragmentData (Interface)
(no doc) [3 implementers]
common/src/media-fragment.ts
CopyHistoryRepository (Interface)
(no doc) [2 implementers]
common/copy-history/copy-history-repository.ts
GlobalStateProvider (Interface)
(no doc) [2 implementers]
common/global-state/index.ts
SettingsStorage (Interface)
(no doc) [2 implementers]
common/settings/settings-provider.ts

Core symbols most depended-on inside this repo

get
called by 263
extension/src/services/extension-settings-storage.ts
set
called by 188
extension/src/services/extension-settings-storage.ts
sendMessage
called by 167
extension/src/services/frame-bridge-client.ts
postMessage
called by 104
common/app/services/chrome-tab-video-protocol.ts
has
called by 102
common/src/offscreen-dom-cache.ts
keys
called by 98
common/src/offscreen-dom-cache.ts
add
called by 87
common/src/offscreen-dom-cache.ts
error
called by 74
common/audio-clip/audio-clip.ts

Shape

Method 1,583
Function 902
Interface 618
Class 324
Enum 37
Struct 8

Languages

TypeScript99%
Go1%
Python1%

Modules by API surface

common/src/message.ts187 symbols
common/audio-clip/audio-clip.ts112 symbols
common/subtitle-annotations/subtitle-annotations.ts105 symbols
common/dictionary-statistics/dictionary-statistics-view.ts105 symbols
common/app/services/chrome-extension.ts83 symbols
common/key-binder/key-binder.ts77 symbols
common/settings/settings.ts73 symbols
common/dictionary-db/dictionary-db.ts70 symbols
common/src/webm-file-media-fragment-data.ts60 symbols
common/anki/anki.ts59 symbols
common/util/util.ts58 symbols
extension/src/controllers/subtitle-controller.ts53 symbols

For agents

$ claude mcp add asbplayer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact