Setting up the Gameface Stack
To get you up and running immediately, we have created pre-configured templates that bypass the manual setup of Vite and SolidJS.
These templates come with the gameface-specific configurations already applied so your code will render perfectly in the Gameface Player right out of the box.
Prerequisites
Section titled “Prerequisites”Before we begin, ensure you have the following installed on your machine:
- Node.js: We recommend the latest LTS version .
- A Package Manager:
npm,yarn, orpnpm. - VS Code: Or your preferred text editor.
Choose Your Starting Point
Section titled “Choose Your Starting Point”Depending on your project requirements, you can either start with a structured blank project or a fully development ready UI component library.
To scaffold these starter projects, we provide a command line tool called create-gameface-app . It downloads the template of your choice, optionally installs its dependencies, and leaves you with a project that is ready to run.
Option A: The Gameface UI project
Section titled “Option A: The Gameface UI project”If you have limited web experience or want to skip the component creation process, we highly recommend starting with our pre-built Gameface UI template . It includes the exact same core technologies, but comes pre-loaded with a massive library of ready-to-use game components (like buttons, grids, and sliders), layout components for quick prototyping, and others.
We actively support and maintain this library, adding new components and features based on community feedback. This is our go to choice for starting new UI projects , and we highly recommend it for prototyping and production projects alike.
To get started with the Gameface UI template, run this command in your terminal:
npm create gameface-app -- --template gameface-ui --defaultThis command will run an installation wizard which will ask you to provide a name for your project and then install the needed dependencies.
Option B: A Bare SolidJS Template
Section titled “Option B: A Bare SolidJS Template”If you prefer full control over your setup, start from our bare solid template. It gives you a clean Vite + SolidJS + TypeScript project with all the Gameface-specific configurations already applied, but without any of the pre-built components from Option A.
This route is ideal if you want to build your own UI architecture and components entirely from scratch, without any pre-built boilerplate.
To scaffold it, run:
npm create gameface-app -- --template solid --defaultThis command will run an installation wizard which will ask you to provide a name for your project, will install the dependencies, and leave you with a project that already renders correctly in the Player - no manual Vite configuration required.
This is not a stock create-solid project. Our Gameface tooling comes wired into vite.config.mts, so none of it is left for you to set up:
- The vite-plugin-gameface-styles plugin runs with
isSolidProject: trueand turns static inline styles into flatgf-prop--*classes. UnoCSS andpresetGameface()decode those class names back into real CSS. - The
vite-gamefaceplugin applies the Solid-specific compile options the engine needs, loaded after the Solid plugin. vite-plugin-solidruns with explicit compiler flags that preserve closing tags and attribute quotes.- eslint-plugin-gameface is wired to a
gameface-models/Model.jsonfile for data-binding checks.
You also get a sample entry screen, complete with an animated background, an achievements panel, player stats, and an interactive carousel menu, which doubles as a working reference for your own views.
Known SolidJS Limitations
Section titled “Known SolidJS Limitations”Both starting points build on SolidJS, so these apply whichever option you picked.
- Routing: the official SolidJS router is currently not compatible with Gameface. If you need routing, use the routing solution provided by the Gameface UI library (Option A).
- Empty text nodes: SolidJS generates empty text nodes that older versions of Gameface may strip out, causing errors. Use Gameface
v2.2.0or greater to avoid this.
Connect to the Gameface Player
Section titled “Connect to the Gameface Player”Regardless of which option you chose above, the steps to start your local server and view your UI in the Player are exactly the same.
-
Start the Development Server
Section titled “Start the Development Server”Open your terminal inside your new project folder and run:
Terminal window npm run devThis will start a local web server, usually at
http://localhost:3000/. -
Launch the Player
Section titled “Launch the Player”Instead of viewing your UI in a standard web browser like Chrome, you should view it directly in the Gameface Player to ensure 100% engine accuracy.
Locate the
Player.batfile included in your Gameface package. Open the file in a text editor, scroll down until you see a similar command:Terminal window start "Player" /d "%wd%" "..\Player\Player.exe" --player %*"and add the following parameter to the end of the line:
Terminal window start "Player" /d "%wd%" "..PlayerPlayer.exe" --player "--url=http://localhost:3000/"Save the file and double-click the
.batfile to launch the Player. It will open and display your SolidJS application. Because our setup supports Hot Module Replacement (HMR), every time you save a file in your code editor, the Player will instantly update!
© 2026 Coherent Labs. All rights reserved.