My First Tool
Build your own OnlyWorlds tool without writing a single line of code by hand.
Work in Progress
This guide is being developed alongside the creation of Tactical Tangle, a showcase tool for ancient Greek warfare simulation.
Table of contents
- Overview
- Prerequisites
- Starting Your Tool
- Next Steps
- Publishing Your Tool
- Getting Help
- Example: Building Tactical Tangle
- Tips for Success
- License Note
Overview
Modern AI tools can write entire applications from clear descriptions. This guide will help you create your first OnlyWorlds tool using AI assistants to handle all the technical work.
No coding experience required
If you can describe what you want and follow step-by-step instructions, you can build a tool.
Prerequisites
1. Create a GitHub account
GitHub hosts your code and publishes your tool to the web for free.
- Visit github.com and click “Sign up”
- Choose a username - This becomes part of your tool’s web address
- Verify your email - Check your inbox for confirmation
- Complete setup - Skip optional steps for now
Your username is permanent and visible in your tool’s URL. Choose thoughtfully.
2. Install development tools
You need a code editor and Python to run the template locally.
Visual Studio Code or Cursor
Choose one editor (both are free):
- VS Code: code.visualstudio.com - Microsoft’s editor
- Cursor: cursor.sh - AI-first editor based on VS Code
Install with default options. Both work identically for this guide.
Python
Required to run the template tool locally:
- Download Python from python.org
- During installation: Check “Add Python to PATH”
- Verify installation: Open terminal and type
python --version
Git (optional but recommended)
For proper version control:
- Download Git from git-scm.com
- Install with defaults - Accept all default options
- Configure Git (in terminal):
git config --global user.name "Your Name" git config --global user.email "your.email@example.com"
Starting Your Tool
Method 1: Use as Template (Recommended)
GitHub’s template feature creates a clean new repository without forking history.
- Visit github.com/OnlyWorlds/tool-template
- Click “Use this template” → “Create a new repository”
- Name your repository (e.g.,
tactical-tangle
ormy-onlyworlds-tool
) - Set to Public (required for free GitHub Pages hosting)
- Click “Create repository”
Method 2: Fork (For Contributing Back)
Use this only if you plan to improve the template itself.
- Visit github.com/OnlyWorlds/tool-template
- Click “Fork” in top-right
- Rename if desired and click “Create fork”
Clone to Your Computer
- Copy your repository URL from GitHub (green “Code” button)
- Open terminal in your development folder
- Clone the repository:
git clone https://github.com/YOUR-USERNAME/YOUR-REPO-NAME.git cd YOUR-REPO-NAME
- Start the tool:
python start.py
- Open browser to
http://localhost:8000
The tool needs your OnlyWorlds API credentials to connect. Get them from your OnlyWorlds profile.
Next Steps
Understand the Structure
The template tool is organized for easy modification:
tool-template/
├── index.html # Main page (modify for your UI)
├── js/
│ ├── app.js # Application controller
│ ├── api.js # OnlyWorlds API integration (reuse this!)
│ ├── auth.js # Authentication handling
│ └── constants.js # OnlyWorlds element types
├── css/
│ └── styles.css # Visual styling
└── start.py # Local server
Key Files to Keep
When building your tool, these files handle OnlyWorlds integration:
js/api.js
- Complete API wrapperjs/auth.js
- Credential managementjs/constants.js
- Element type definitions
Making It Your Own
- Modify
index.html
for your tool’s interface - Keep the auth system - It handles API credentials
- Reuse API calls - The template has all CRUD operations ready
- Add your features - Game logic, visualizations, whatever you imagine!
Publishing Your Tool
Enable GitHub Pages
- Go to Settings in your GitHub repository
- Scroll to Pages section
- Source: Deploy from a branch
- Branch: Select
main
and/ (root)
- Save and wait ~5 minutes
Your tool will be live at: https://YOUR-USERNAME.github.io/YOUR-REPO-NAME
Custom Domain (Optional)
- Add a
CNAME
file to your repository root with your domain - Configure DNS at your domain provider to point to GitHub
Getting Help
AI Assistants
- OnlyWorldsBot - Custom ChatGPT trained for OnlyWorlds
- Claude - Excellent for code generation
- GitHub Copilot - Built into VS Code/Cursor
Community
- Discord - OnlyWorlds community
- GitHub Discussions - Q&A and ideas
Documentation
- API Reference - Complete API documentation
- Tool Template - Starting point with examples
- MCP Server - Advanced AI integration
Example: Building Tactical Tangle
Follow along as we build a real tool from scratch:
Part 1: Setup & Architecture
Coming soon - Setting up the repository and basic structure
Part 2: OnlyWorlds Integration
Coming soon - Loading characters and world data
Part 3: Game Mechanics
Coming soon - Adding physics and battle simulation
Part 4: AI Enhancement
Coming soon - Connecting OpenAI for character decisions
Part 5: Polish & Deploy
Coming soon - Final touches and publishing
Tips for Success
Start small - Get basic functionality working before adding features
Use the template’s code - Don’t reinvent authentication and API calls
Test locally first - Usepython start.py
before publishing
Ask for help - The community loves seeing new tools!
License Note
The tool template uses MIT license. Your tool can use any license, but consider keeping it open source to help the community grow.