Getting Started
This guide gets the StyleMakar web app running against a local OpenAI-compatible provider.
Requirements
- Node.js
>=22.22.1 - pnpm
11.9.0 - LM Studio or another OpenAI-compatible provider
- A loaded model, ideally a Gemma 4 model for the current default path
Install Dependencies
pnpm installStart A Local Provider
In LM Studio, open the Developer tab and start the local API server. Make sure it is reachable at:
http://localhost:1234/v1The default provider settings are:
{
baseUrl: 'http://localhost:1234/v1',
model: 'gemma-4',
reasoningEffort: 'none',
}StyleMakar will discover the selected model when /api/health can reach LM Studio.
For full setup details, including custom OpenAI-compatible endpoints and current UI limitations, read Provider Setup.
Run The App
pnpm run devOpen:
http://127.0.0.1:5173The development setup runs Vite on port 5173 and the API server on port 5174. Vite proxies /api requests to the API server.
Verify The Provider
curl http://127.0.0.1:5174/api/healthA ready response includes lmStudioReachable: true, ok: true, and the selected model id.
Run A Rewrite
Use the seeded Q2 Product Strategy Draft, or paste your own paragraph into the Source pane and click Rewrite.
The default workflow rewrites paragraph-sized segments, grades style fit, checks meaning preservation, and returns the final document. Final smoothing is off unless you explicitly enable it through API options.