How nghslab/norideck works
NoriDeck is a desktop retro-console for importing, organizing, and running TypeScript game cartridges packaged as .nori files. The main user flow is to add a cartridge to the library, select it from the home screen, validate and load it, then play through a console session with mapped input, screen handling, and saves. The repository also includes cartridge creation and packaging tools plus the SDK contract. Some UI and storage wiring is unsampled, so uncertain links are omitted.
Main entry points: main.ts Desktop process · boot.ts Console boot · nori.ts CLI commands · session.ts Game session
Components 26
Desktop shell
- Desktop process
desktop/src/main.ts - Data location
desktop/src/dataRoot.ts - Cartridge storage
desktop/src/library.ts
Console runtime
- Runtime entry
runtime/src/main.ts - Console boot
runtime/src/boot.ts - Home screen
runtime/src/home.ts - Library actions
runtime/src/libraryActions.ts - Library interface
runtime/src/library.ts - Game session
runtime/src/session.ts - Cartridge validation
runtime/src/nori/openNori.ts - Module loader
runtime/src/loader.ts - Console hardware
runtime/src/console/createConsole.ts - Input mapping
runtime/src/console/keymap.ts - Console settings
runtime/src/console/settings.ts - Console dialogs
runtime/src/platform/dialogs.ts - Platform menus
runtime/src/platform/menus.ts - UI localization
runtime/src/i18n.ts
Cartridge tools
- Project scaffolding
cli/src/init.ts - CLI commands
cli/src/nori.ts - Cartridge build
cli/src/build.ts - Cartridge validation
cli/src/check.ts - Archive handling
cli/src/archive.ts
Cartridge SDK
- Console cartridge API
sdk/src/index.ts - Manifest validation
sdk/src/manifest.ts
Other components
- Player
- Cartridge developer
Connections 27
- Player → Desktop process: launches
- Desktop process → Data location: configures storage
desktop/src/main.ts - Desktop process → Cartridge storage: registers library IPC
desktop/src/main.ts - Desktop process → Runtime entry: loads renderer
desktop/src/main.ts - Runtime entry → Console boot: starts
runtime/src/main.ts - Console boot → Home screen: shows
runtime/src/boot.ts - Console boot → Game session: creates
runtime/src/boot.ts - Home screen → Library actions: offers actions
runtime/src/libraryActions.ts - Library actions → Library interface: uses
runtime/src/libraryActions.ts - Game session → Cartridge validation: opens file
runtime/src/session.ts - Game session → Console hardware: creates
runtime/src/session.ts - Cartridge validation → Module loader: selects cartridge
runtime/src/nori/openNori.ts - Console hardware → Input mapping: uses mapping
runtime/src/console/createConsole.ts - Console hardware → Console settings: reads settings
runtime/src/console/createConsole.ts - Console boot → Platform menus: installs
runtime/src/boot.ts - Platform menus → Console dialogs: opens
runtime/src/platform/menus.ts - Console dialogs → UI localization: translates strings
runtime/src/platform/dialogs.ts - Player → Cartridge storage: adds cartridge
- Player → Home screen: selects game
- Cartridge developer → Project scaffolding: creates project
- CLI commands → Project scaffolding: dispatches
cli/src/nori.ts - CLI commands → Cartridge build: dispatches
cli/src/nori.ts - CLI commands → Cartridge validation: dispatches
cli/src/nori.ts - Cartridge build → Archive handling: packages files
cli/src/build.ts - Cartridge validation → Archive handling: checks archive
cli/src/check.ts - Project scaffolding → Console cartridge API: uses contract
cli/src/init.ts - Console cartridge API → Manifest validation: re-exports types
sdk/src/index.ts