百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

tinfoil-hat

> 编程语言
开源

在您的个人服务器上服务您的开源交换机 .XCI .NSP .NSZ (带有密码或不带密码), 资源使用量低! 与现有的 NUT 项目相比 ...

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

在您的个人服务器上服务您的开源交换机 .XCI .NSP .NSZ (带有密码或不带密码), 资源使用量低! 与现有的 NUT 项目相比 ...

Tinfoil-Hat Server

A Docker based Tinfoil Server - you could download code and npm run dev as well...

- Your NSP, XCI and other game files served locally

With this server Tinfoil users can serve all .NSP .XCI files in local network with docker easily without file count limits !

Key Features

  • Instant index refresh (no need waiting refresh interval, just put games into folder and reload window)
  • Multi user Authentication through user:pass,user2:pass2 ENV supplied as docker env
  • Customize Hello message and not logged in message throught ENVs
  • 96.29% less RAM consumption (1.5gb to 57mb), compared to common NUT solution !!! (in real cases see below!)

FAQ

  • Q: Has Authentication ?

R: Yes, you can thought AUTH_USERS env explained more at docker-compose.yml sample, (this block access to /shop.json on browser too)

bash
  # before starts the server it shows which users has login credentials
  tinfoil-hat Auth Users Loaded: 'admin,other' +0ms
  tinfoil-hat ------------------ TinfoilHat Started v1.1.0 ------------------ +5ms
  • Q: Why isn't showing all folders ? only showing shop.json and shop.tfl at home index ?

R: To avoid a TINFOIL strange BUG when lists shop.tfl url. Basically when TINFOIL see too many folders on files index, home page (ex.: 100 folders links) TINFOIL can't traverse all html and reach shop.tfl file

How works

  • Serve shop.json(for user check) and shop.tfl(for tinfoil) dynamically as you place new games and files on foilder (search files and folders at every refresh) this ensures a realtime Tinfoil listing files (you need reopen tinfoil to fully refresh index)

Docker-Compose Sample Using Password

yaml
version: "3"
services:
  tinfoil-hat:
    labels:
      # same scop used by watchtower to self update image
      - "com.centurylinklabs.watchtower.scope=tinfoilhat"
    container_name: tinfoil-hat
    build: .
    image: vinicioslc/tinfoil-hat:latest
    environment:
      # show all debug information on server logs (http info and more)
      - DEBUG=*
      # only show tinfoil-hat information on logs
      # - DEBUG=tinfoil-hat
      # users list authorized to access tinfoil-hat user and password separated by ":" and users separated by "," :
      - AUTH_USERS=tinfoiler:password,othertinfoiler:otherpassword
      - UNAUTHORIZED_MSG='No tricks and treats for you!!'
      - WELCOME_MSG='The Server Just Works!!'
      - NX_PORTS=5000 # ftp port used to sync saves
      # - UNAUTHORIZED_MSG= # message shown when credentials are incorrect
      # - NX_IPS= # devices ips that will be saves sync separated by ";"
      # - SAVE_SYNC_INTERVAL= # interval in millisseconds that will try sync saves  How it works :

1. First you need backup your saves using Tinfoil or JKSV the folders path supported are `/JKSV` and `/switch/tinfoil/saves`

   > Both folders will be downloaded to `//Saves/JKSV` and `//Saves/Tinfoil` this will ensure these folders will be found by tinfoil app.

2. You need to serve your Switch files at network using ftpd

   ##### Setup sys-ftpd on the Switch

   - Install sys-ftpd - available as sys ftpd light in the Homebrew Menu
   - Install ovl-sysmodule from Homebrew Menu - optional but recommended

   Follow the sys-ftpd configuration to set up the user, password and port used for the FTP connection. Note these for Ownfoil configuration, as well as the IP of your Switch. If you installed ovl-sysmodule you can toggle on/off the FTP server using the Tesla overlay.

   It is recommended to test the FTP connection at least once with a regular FTP Client to make sure everything is working as expected on the switch.

3. To start sync saves inside Tinfoil app on switch connect and list the server homebrews to the server recongnize the switch IP and start sync

   - This will allow the server "capture" the switch device IP and start to syncing it

4. After first sync the server will fetch periodically using sync interval.

## We want

- [ ] Organize and rename app listing by GAMEID
- [ ] Have a gui to override and customize TITLEID info on server-side json db
- [ ] Allow download torrent files from magnet link

## Images with Tinfoil

#### Setup Connection

#### when find server (save and restart tinfoil app)

## Which Tech Stack ?

- `express` | Serve Dynamically shop(.json|.tfl) with updated content at every refresh and serve files statically
- `serve-index` | To serve a rich listing of files (in case only shop.json shop.tfl for tinfoil)
- `json5` | To parse custom shop_template.jsonc (you can define on it custom content like a welcome message !!!)

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScripthomebrewsnodejsswitchtinfoil

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言