Find a file
2025-11-13 09:27:32 +09:00
.github/workflows Added a local HTTP server for testing purposes and updated test scripts accordingly. 2025-11-08 01:11:28 +09:00
backups Refactor AI generation code and add DB utilities 2025-11-07 21:54:38 +09:00
node_modules Refactor AI generation code and add DB utilities 2025-11-07 21:54:38 +09:00
src Saving, export and compendium features updated, some UI changes added 2025-11-13 09:27:32 +09:00
tests Implemented backend support for a compendium feature, including database schema updates and frontend integration. 2025-11-08 01:45:12 +09:00
.eslintrc.json Refactor AI generation code and add DB utilities 2025-11-07 21:54:38 +09:00
.gitattributes Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
.gitignore Added a local HTTP server for testing purposes and updated test scripts accordingly. 2025-11-08 01:11:28 +09:00
favicon.ico Saving, export and compendium features updated, some UI changes added 2025-11-13 09:27:32 +09:00
ggml-base.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-cpu-alderlake.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-cpu-haswell.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-cpu-icelake.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-cpu-sandybridge.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-cpu-sapphirerapids.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-cpu-skylakex.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-cpu-sse42.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-cpu-x64.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml-rpc.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
ggml.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
libcurl-x64.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
libomp140.x86_64.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
llama-server.exe Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
llama.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
main.html Saving, export and compendium features updated, some UI changes added 2025-11-13 09:27:32 +09:00
mtmd.dll Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00
package-lock.json Refactor AI generation code and add DB utilities 2025-11-07 21:54:38 +09:00
package.json Refactor codebase and add UI tests 2025-11-08 00:35:26 +09:00
README.md Refactor codebase and add UI tests 2025-11-08 00:35:26 +09:00
restore.html Saving, export and compendium features updated, some UI changes added 2025-11-13 09:27:32 +09:00
start.bat Initial commit (code only; models ignored) 2025-11-07 04:24:59 +09:00

Click https://huggingface.co/unsloth/Qwen3-4B-Instruct-2507-GGUF/resolve/main/Qwen3-4B-Instruct-2507-IQ4_XS.gguf?download=true Download the model Drop it in your Writingway/models folder

Running tests

This project includes a small test harness (smoke, unit, and UI tests) to help keep refactors safe.

Prerequisites

  • Node.js (recommended >= 16)
  • The UI tests use Playwright (included as a devDependency). If you run into missing browsers, run npx playwright install.
  • If you want generation tests to exercise the real model, start the local AI server (the project expects it at http://localhost:8080). You can start the provided server with start.bat on Windows.

Available test scripts (run from the project root):

npm run smoke    # quick smoke: loads the page and checks key selectors
npm run unit     # unit tests (e.g., Generation.buildPrompt)
npm run ui       # runs the UI tests (headless)
npm test         # runs smoke, unit, then ui in sequence

Notes

  • The repository vendors Alpine locally at src/vendor/alpine.min.js so tests can run offline.
  • UI tests run headless and are written to prefer calling the app's handlers and to fall back to Dexie DB operations and stubbed generation when the AI server is not available.
  • Do not remove the model download instructions above — the model binary is large and must be downloaded separately.

If you want me to wire up a small test-only API on the app (window.__test) to make tests even more deterministic, tell me and I will add it and update tests to use it.