GitHub Integration
Push and pull map files directly to GitHub repositories.
TileForge can save and load TMJ files directly from GitHub repositories, making it easy to keep your maps in version control alongside your game code.
Setting Up GitHub Access
Creating a Personal Access Token
- Go to GitHub Settings > Developer settings > Personal access tokens.
- Click Generate new token (classic).
- Give it a name like "TileForge Studio".
- Select the
reposcope (full control of private repositories). For public repos only,public_repois sufficient. - Click Generate token and copy the token.
Connecting in TileForge
- Go to File > Save to GitHub or File > Load from GitHub.
- The first time, you will see the Connect to GitHub dialog.
- Paste your Personal Access Token and click Connect.
- Select a repository and branch from the dropdowns.
Your token is stored in localStorage (key: github_pat) so you only need to enter it once per browser.
Security Note
Your GitHub token is stored in the browser's localStorage. It is not sent to any server other than GitHub's API. If you use a shared or public computer, disconnect after your session.
Saving to GitHub
- Go to File > Save to GitHub.
- Enter a file name (e.g.,
maps/dungeon-01.tmj). - Review the path preview.
- Click Push to save.
TileForge uses the GitHub Contents API to create or update the file. If the file already exists, it is overwritten with the new version.
Loading from GitHub
- Go to File > Load from GitHub.
- The file browser shows TMJ files in the selected repository and branch.
- Click a file to load it into the editor.
Known Limitation
The GitHub file browser shows a flat listing of files. It does not yet support navigating into subdirectories. Files in subdirectories are listed with their full path.
Recommended Workflow
- Keep your map files in a
maps/orassets/maps/directory in your game repo. - Use TileForge's GitHub integration to push updates directly — no need to manually copy files.
- Your game code and map files stay in sync in the same repository.
- Team members can pull the latest maps by loading from the same repo and branch.