Skip to content

Tutorials

Rewrite Your First Draft

  1. Run pnpm run dev.
  2. Open http://127.0.0.1:5173.
  3. Confirm the provider pill says the model is ready.
  4. Select the seeded Q2 Product Strategy Draft or paste new source text.
  5. Keep Product notes selected as the voice.
  6. Click Rewrite.
  7. Copy or export the rewritten output.

StyleMakar desktop workspace with source and output panes

Use The Mobile Layout

Resize the app below 720px or open it on a phone-sized viewport. The mobile shell splits the workflow into Source and Rewrite tabs with bottom actions for checks and rewriting.

StyleMakar mobile source tab

Call The Rewrite API

Run the development API:

sh
pnpm run dev

Send a rewrite request:

sh
curl -X POST http://127.0.0.1:5174/api/rewrite \
  -H 'Content-Type: application/json' \
  --data '{
    "document": "Our platform leverages advanced AI to improve workflows.",
    "options": {
      "includeDebug": true
    }
  }'

Use provider.baseUrl, provider.model, and provider.reasoningEffort when you want to override the default LM Studio settings. See Provider Setup for LM Studio and OpenAI-compatible provider requirements.

Run A Focused Eval

The eval harness seeds local fixtures and calls the real rewrite pipeline.

sh
pnpm eval:smoke

For iteration comparisons:

sh
pnpm eval:iterations

For the full matrix:

sh
pnpm eval:iterations:matrix

Eval results are written under ignored evals/results/. Use STYLEMAKAR_EVAL_BASE_URL, STYLEMAKAR_EVAL_PROVIDER_ID, STYLEMAKAR_EVAL_CASE_FILTER, STYLEMAKAR_EVAL_MODEL, and STYLEMAKAR_EVAL_REASONING_EFFORT to keep iteration runs targeted.

Capture Updated Docs Screenshots

Start the app, then capture fresh screenshots from the seeded workspace:

sh
pnpm run dev

Save source screenshots under:

txt
docs/public/screenshots/

VitePress serves those files from /screenshots/<filename>.

Released under the MIT License.