MCPcopy Index your code
hub / github.com/cybercase/webminidisc

github.com/cybercase/webminidisc @v0.2.7

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.7 ↗ · + Follow
289 symbols 767 edges 54 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Web MiniDisc

Brings NetMD Devices to the Web

Live @ https://stefano.brilli.me/webminidisc/.

How it works @ https://www.youtube.com/watch?v=Frs8qhw0g9Y.

Blogpost @ https://stefano.brilli.me/blog/web-minidisc/

Requires Chrome or any other browser that supports both WASM and WebUSB

macOS

it just works ® ... no need to download or install any software.

Linux

Follow the instructions here https://github.com/glaubitz/linux-minidisc/tree/master/netmd/etc to grant your user access to the device. If you skip this step you'll likely get an Access denied message when trying to connect.

Windows 10

The Windows USB stack requires a driver to be installed to communicate with any USB device. The bad news is that there are no official Windows 10 drivers for NetMD devices. The good news is that we don't need it! We can just use a generic driver like WinUSB to access the device.

You can find installation instruction here, but the easiest way to install is to use Zadig.

Note: you'll need to restart your browser after installation.

Chrome OS

Works without any addtional set up - tested with 91 stable (91.0.4472.102). If your user account or device is managed (by your school or company) you may run into some issues. If you are using a personal google account on a personal chromebook you should be good to go.

Don't know what is a MiniDisc?

How to build

This project was bootstrapped with Create React App, so you can run: - npm start to start the development server - npm build to build for production

WASM modules are provided in the public/ directory. However, if you wish to build those binaries yourself, instructions are provided in the extra/ directory.

How to Contribute

Every contribute is welcome but, please, reach out to me before working on any PR. I've built this app mainly for personal use and I wish to keep it as light as possible in terms of features.

Bugs and Issues

There might be plenty of them, for sure :) . The thing is that I've not the time to fix all of them and to make sure this app works on every browser or device.

The best way to get a bug fixed, a feature implemented, or a device supported, is to fork the project and do it for yourself. I'll try to provide support as best as I can.

Backstory

A few weeks ago I've found my old MZ-N710 in the basement of my parents' house.

Determined to make it work on my modern Mac, after some googling, I found out about the linux-minidisc project. They've done an amazing job in reversing the NetMD protocol.

After a quick inspection to the source code I realized the project could be easily ported to javascript (either node and the browser) using the WebUSB api, so I created netmd-js. Then, on top of that I've built Web MiniDisc to manage the music on my device without the need of downloading and installing any dedicated software.

That's it. It was a LOT of fun :).

Some OSS I've used

  • FFmpeg and ffmpegjs, to read audio files (wav, mp3, ogg, mp4, etc...).
  • Atracdenc, to support atrac3 encoding (lp2, lp4 audio formats).
  • Emscripten, to run both FFmpeg and Atracdenc in the browser.
  • netmd-js, to send commands to NetMD devices using Javascript.
  • material-ui, to build the user interface.
  • linux-minidisc, to build the netmd-js library.

Extension points exported contracts — how you extend this code

NetMDService (Interface)
(no doc) [4 implementers]
src/services/netmd.ts
TrackRowProps (Interface)
(no doc)
src/components/main-rows.tsx
ConvertDialogFeature (Interface)
(no doc)
src/redux/convert-dialog-feature.ts
MediaSessionService (Interface)
(no doc) [3 implementers]
src/services/media-session.ts
GroupRowProps (Interface)
(no doc)
src/components/main-rows.tsx
RecordingDialogState (Interface)
(no doc)
src/redux/record-dialog-feature.ts
AudioExportService (Interface)
(no doc) [2 implementers]
src/services/audio-export.ts
W95WelcomeProps (Interface)
(no doc)
src/components/win95/welcome.tsx

Core symbols most depended-on inside this repo

useShallowEqualSelector
called by 34
src/utils.ts
E
called by 23
public/atracdenc.js
d
called by 16
public/atracdenc.js
control
called by 14
src/redux/actions.ts
listContent
called by 13
src/redux/actions.ts
g
called by 12
public/atracdenc.js
dropCachedContentList
called by 12
src/services/netmd.ts
J
called by 10
public/atracdenc.js

Shape

Function 149
Method 111
Interface 16
Class 12
Enum 1

Languages

TypeScript100%

Modules by API surface

src/services/netmd.ts59 symbols
public/atracdenc.js55 symbols
src/services/netmd-mock.ts32 symbols
src/utils.ts30 symbols
src/redux/actions.ts22 symbols
src/services/audio-export.ts12 symbols
src/services/mediarecorder.ts9 symbols
src/services/media-session.ts8 symbols
src/services/atracdenc-worker.ts7 symbols
src/serviceWorker.ts4 symbols
src/components/main-rows.tsx4 symbols
src/create-empty-wave.ts3 symbols

For agents

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

⬇ download graph artifact