MIT License

项目介绍

arianrhodsandlot/nostalgist 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 976 个 Star、45 次 Fork。

仓库全名
arianrhodsandlot/nostalgist
开源许可证
MIT License
Star 数
976
Fork 数
45
未关闭 Issue
4

README 摘要

Nostalgist.js Become a sponsor Nostalgist.js is a JavaScript library that allows you to run emulators of retro consoles, like NES and Sega Genesis, within web browsers. [!tip] Nostalgist.js is for developers. If you are a player rather than a developer planning to build something, you may want to try another open-source project RetroAssembly. A Quick Glance Website Checkout nostalgist.js.org for more online examples…

完整内容见 GitHub 原始 README 或本页 。

常见问题

nostalgist 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 976 个 Star。

nostalgist 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 nostalgist 的源码?

可以直接克隆仓库:git clone https://github.com/arianrhodsandlot/nostalgist.git,默认分支为 main;安装与运行步骤见仓库 README。

nostalgist 最近还在维护吗?

仓库最近一次更新为 5月8日,当前有 4 个未关闭 Issue;Star 数为 976,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A JavaScript library used for running emulators of retro consoles inside browsers.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

HTML
TypeScript

Release

README

Nostalgist.js

nostalgist.js.org badge GitHub badge NPM badge

mona Become a sponsor

Nostalgist.js is a JavaScript library that allows you to run emulators of retro consoles, like NES and Sega Genesis, within web browsers.

Tip 提示

Nostalgist.js is for developers. If you are a player rather than a developer planning to build something, you may want to try another open-source project RetroAssembly.

A Quick Glance

console demo

Website

Checkout nostalgist.js.org for more online examples and documentation.

Features

  • Launch a retro game with RetroArch emulator in a browser

    import { Nostalgist } from 'nostalgist'
    
    await Nostalgist.launch({
      core: 'fceumm',
      rom: 'flappybird.nes',
    })
    

    Related API: launch

  • Save the state of the game, then load it later

    import { Nostalgist } from 'nostalgist'
    
    const nostalgist = await Nostalgist.nes('flappybird.nes')
    const { state } = await nostalgist.saveState()
    await nostalgist.loadState(state)
    

    Related APIs: saveState, loadState

  • Customize any RetroArch config before launching

    import { Nostalgist } from 'nostalgist'
    
    const nostalgist = await Nostalgist.launch({
      core: 'fceumm',
      retroarchConfig: {
        rewind_enable: true,
      },
      retroarchCoreConfig: {
        fceumm_turbo_enable: 'Both',
      },
      rom: 'flappybird.nes',
    })
    

    Related API: launch#retroarchConfig

  • Access low level APIs of Emscripten

    import { Nostalgist } from 'nostalgist'
    
    const rom = 'https://example.com/zelda.sfc'
    const nostalgist = await Nostalgist.snes(rom)
    const FS = nostalgist.getEmscriptenFS()
    FS.readdir('/')
    

    Related APIs: getEmscriptenModule, getEmscriptenFS

Motivation

Nostalgist.js is built on top of RetroArch Emscripten builds. We love RetroArch to run in browsers because that’s portable and convenient. Although there is already an official instance, RetroArch web player, and some third-party ones like webretro, it’s still not that easy to launch RetroArch in a browser programmatically.

The purpose of Nostalgist.js is to simplify the process of launching an emulator to play a game, via RetroArch, in browsers. Given a ROM and a core, the game should be launched without any additional configuration.

APIs

Please refer to nostalgist.js.org/apis.

Showcases

Note 注意

Feel free to add yours by sending a pull request.

Project Description
RetroAssembly The personal retro game collection cabinet in your browser.
vme Virtual Machine / Emulator - multi emulator web app
ultimate-homebrew-extensions Runs an emulator to test ROMs inside of VS Code
NextCloud Nostalgist Run emulators of retro consoles directly in NextCloud via Nostalgist.js.
Nostalbit A retro web emulator with Next.js, Tailwind, TypeScript
AstroEmu Famicom and Super Famicom on the web
Koin.js The high-performance, preservation-focused netflix style emulation engine powered by Nostalgist.
Foxol Foxol is a modern emulator platform with multiplayer, cloud saves, cheats, and deep customization across every device.

Credits

  • These are the fundamental dependencies of Nostalgist.js.

  • We are using ROMs here for the purpose of demonstration.

    • retrobrews and the authors of the homebrew games.
  • By default, our ROMs and cores are all loaded from this free CDN service.

Alternatives

  • EmulatorJS

    Another JavaScript library for emulation inside browsers.

    It’s more powerful and more sophisticated. It includes many custom cores and has a friendly user interface. It can be used inside mobile browsers with touch support.

    It’s not that friendly towards modern frontend development.

Caveat

Caution 注意
  • Nostalgist.js DOES NOT provide any pirated content, like copyrighted ROM files or BIOS files.
  • And it DOES NOT encourage that.

License

MIT

评论

暂无评论