A web-based playground for creating and testing cursor shaders for the Ghostty terminal.
- Node.js (for running the development server)
- Clone or download this repository.
- Install dependencies:
npm install
-
Start the development server and open your browser automatically:
npm start
Or manually:
node server.js
Then open
http://localhost:3000
in your browser.
The server provides:
- Static file serving for HTML, JS, and GLSL files
/shaders-list
endpoint that returns available shader files- WebSocket server for live reload functionality
- File watching that automatically reloads the page when shaders or other files change
- Use the toolbar at the bottom to:
- Change cursor type (block, vertical bar, horizontal bar)
- Switch between AUTO, RND, and CLICK cursor movement modes
- Pick a cursor color (maped to uniform iCurrentCursorColor)
- Click on a canvas (in CLICK mode) to move the cursor.
- Use the dropdown on each canvas to switch shaders.
- Use keyboard arrows, Enter, and Backspace to move the cursor.
- Add your own shaders to the
shaders/
directory - they will automatically appear in the dropdown menus. - The server automatically watches for file changes and reloads the page when you modify shaders or other files.
MIT License. See LICENSE file for details.