A customizable web-based overlay tracker designed for streaming with TikTok Live Studio. Features a transparent background and real-time counter updates from text files. Perfect for tracking lives, deaths, levels, shiny hunts, or anything else you want to track.
-
Install Dependencies
npm install
-
Configure Sections
Create a
config.jsonfile to define your custom sections:{ "sections": [ { "title": "Current Hunt", "image": "img/character.png", "counter1": "txt/counter.txt", "counter2": null, "separator": null }, { "title": "Progress", "image": null, "counter1": "txt/current.txt", "counter2": 100, "separator": "/" } ] } -
Configure Hosts File
Add the following to your hosts file:
127.0.0.1 aioli.localThis will allow you to access the overlay at
http://aioli.localfrom your browser, as TikTok Live Studio requires a "valid" URL. -
Start the Server
npm start
-
Add to TikTok Live Studio
- Open TikTok Live Studio
- Add a new source
- Choose "Link" as the source type
- Enter:
http://aioli.local - The overlay will appear with a transparent background
- Each section can have a title, optional image, and up to two counters
- Counters update automatically every second by reading from your text files
- Images update automatically every 5 seconds
- If a section has two counters, you can specify a custom separator (e.g., "/", "-", "of")
- Counter2 can be either a file path (for dynamic values) or a number (for static totals)
- The background is transparent, perfect for overlaying on your stream
- Sections are displayed in the order they appear in your config.json
aioli-overlay/
├── package.json # Dependencies and scripts
├── server.js # Express server
├── index.html # Main HTML page
├── style.css # Styling
├── script.js # Client-side JavaScript
├── config.json # Configuration file
├── img/ # Image files folder
└── txt/ # Counter text files folder
To create a standalone Windows executable that doesn't require Node.js installation:
-
Install pkg globally (if not already installed):
npm install -g pkg
-
Install dev dependencies:
npm install
-
Build the executable:
npm run build:exe
This will create
dist/aioli-overlay.exe(or similar name based on package.json name). -
Distribute the executable:
- The executable bundles Node.js runtime and all web files (HTML, CSS, JS)
- Users only need the
.exefile - no Node.js installation required - Users should place their own images and text files in folders next to the executable
- The executable will automatically:
- Create a default
config.jsontemplate on first run - Attempt to add the hosts file entry (may require admin elevation)
- Start the server on port 80
- Create a default
- Download and place
aioli-overlay.exein a folder - Double-click to run (may prompt for admin to edit hosts file)
- A
config.jsontemplate will be created if missing - Create
img/andtxt/folders next to the executable - Add your images to
img/folder - Add your counter files to
txt/folder (e.g.,counter.txt,lives.txt) - Edit
config.jsonto configure your sections (paths can be relative to the executable) - Run the executable again
- Open TikTok Live Studio and add
http://aioli.localas a link source
- Make sure the counter file exists and contains only a number
- Ensure image files exist at the specified paths
- Check that port 80 is not being used by another application
- Verify file paths in
config.jsonare correct (use absolute paths if needed) - Verify the domain is correct in your hosts file
- Stop and restart the server (currently, if you change any paths in the config.json file, you need to stop and restart the server for the changes to take effect)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.