Skip to content

About

A pure frontend save conversion tool for Nintendo Switch and PC games

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

NS <-> PC Save Transfer

A pure frontend save conversion tool for Nintendo Switch and PC games.
Users upload a zip archive, the browser performs extraction/transformation locally, and then downloads the converted zip archive.

Features

  • Fully client-side conversion (no backend file processing).
  • Bidirectional conversion: Switch -> PC and PC -> Switch.
  • Plugin-based architecture: each game converter is isolated and extensible.
  • Currently implemented games:
    • Balatro
    • Disco Elysium
    • The Witcher 3

Run and Deploy

This is a flat frontend project. Source files are in the repository root.

1. Local development

npm install
npm run dev

2. Local production preview

npm run build
npm run preview

3. Deploy locally on port 8080 (for review)

npm run deploy:8080

4. Deploy to Cloudflare Pages

  • Framework preset: Vite
  • Build command: npm run build
  • Build output directory: dist
  • Root directory: /

CLI option:

npm run build
npx wrangler pages deploy dist --project-name <your-project-name>

Contributing (Add a New Game Plugin)

1. Add a plugin file

Create a new file in src/plugins/, for example myGame.ts, and implement GamePlugin:

import type { GamePlugin } from "./types";

export const myGamePlugin: GamePlugin = {
  id: "my-game",
  name: "My Game",
  description: "Convert save files for My Game.",
  supports: ["switch_to_pc", "pc_to_switch"],
  detect: (tree, direction) => true,
  convert: async (tree, direction) => {
    return {
      tree,
      suggestedName: "my-game.zip",
      notes: [],
    };
  },
};

2. Register the plugin

Import and add your plugin in src/plugins/index.ts to PLUGINS.

3. Add game metadata

Add a new entry in src/data/games.ts:

  • id (must match plugin id)
  • name and nameZh
  • appId
  • card image path
  • pcDirExample, pcToSwitchInputZip, pcToSwitchOutputZip

4. Validate

npm run lint
npm run build
npm run test:e2e

About

A pure frontend save conversion tool for Nintendo Switch and PC games

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages