@hemingweb/wordnook-mcp 0.0.0-stage → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,97 @@
1
- # Temporary Holding Version
1
+ # WordNook
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > A fast, private, offline-first English dictionary and reference web application (PWA).
4
+
5
+ WordNook is designed to run seamlessly across iOS, iPadOS, Android, and desktop browsers without requiring app store distribution or paid developer accounts. It operates completely client-side with zero tracking, zero server databases, and 100% offline functionality.
6
+
7
+ ---
8
+
9
+ ## ✨ Features
10
+
11
+ - **⚡ Instant Autocomplete:** Sub-10ms prefix search as you type, powered by an in-memory prefix Trie.
12
+ - **🔍 Typo Tolerance ("Did you mean...?"):** Intelligent fuzzy matching using Damerau-Levenshtein distance to suggest corrections for misspelled words.
13
+ - **👆 Interactive Definitions:** Every word in definitions and example sentences is tappable to instantly look up its meaning.
14
+ - **🔊 Native Pronunciation (TTS):** Offline text-to-speech powered by the browser's native Web Speech API (`window.speechSynthesis`) using high-quality operating system voices.
15
+ - **⭐ On-Device Favorites & History:** Bookmark words and review search history. All data remains strictly on your device (`localStorage` / `IndexedDB`) with zero server tracking or privacy liability.
16
+ - **💾 Backup & Restore:** Export your saved favorites to a JSON file or import them across devices.
17
+ - **📅 Offline Word of the Day:** Deterministic date-based selection that works offline and ensures all users globally see the same word on the same day without a backend.
18
+ - **🤖 Local AI & MCP Server:** Built-in Model Context Protocol server connecting WordNook's lexicon to Ollama, Claude Desktop, Cursor, and Antigravity over `stdio` with 100% on-device privacy.
19
+ - **📱 PWA & Offline Support:** Installable directly to the home screen on iOS (Safari) and Android (Chrome). Works completely offline in Airplane mode via Service Worker caching.
20
+ - **🤫 Notification by Exception:** Clean, typography-first interface that stays silent when ready and only displays status banners during initial download or setup.
21
+
22
+ ---
23
+
24
+ ## 🏗️ Architecture Overview
25
+
26
+ WordNook is built with a **modular "Envelope" architecture**:
27
+ - **UI Shell:** React 19 + TypeScript + Vite with a typography-focused layout (Newsreader serif body + Inter sans UI).
28
+ - **Search Engine:** In-memory Prefix Trie and Levenshtein fuzzy matcher scoped to the active language (~1–3 MB RAM footprint).
29
+ - **Storage Layer:** Native IndexedDB for dictionary data packs with persistent storage requests (`navigator.storage.persist()`).
30
+ - **Offline Cache:** Service Worker with Cache API for instant loading without an internet connection.
31
+
32
+ For complete architectural details, data pack schemas, and roadmap, see [docs/SPECIFICATION.md](docs/SPECIFICATION.md).
33
+ For the end-user guide and feature walkthrough, see the [WordNook User Manual](docs/USER_MANUAL.md).
34
+
35
+ ---
36
+
37
+ ## 🚀 Getting Started
38
+
39
+ ### Prerequisites
40
+ - [Node.js](https://nodejs.org/) (v18.0.0 or higher)
41
+ - npm (v9.0.0 or higher)
42
+
43
+ ### Installation
44
+ Clone the repository and install dependencies:
45
+ ```bash
46
+ git clone https://github.com/davidhemingway/wordnook.git
47
+ cd wordnook
48
+ npm install
49
+ ```
50
+
51
+ ### Development Server
52
+ Start the local Vite development server:
53
+ ```bash
54
+ npm run dev
55
+ ```
56
+ Open your browser and navigate to `http://localhost:3000`.
57
+
58
+ ### Production Build
59
+ Create an optimized production build:
60
+ ```bash
61
+ npm run build
62
+ ```
63
+ The output will be generated in the `dist/` directory.
64
+
65
+ ### Running the MCP Server (Local AI & Ollama Integration)
66
+ Start the Model Context Protocol server over `stdio`:
67
+ ```bash
68
+ npm run mcp
69
+ # Or with options:
70
+ node bin/wordnook-mcp.js --help
71
+ ```
72
+ For integration guides with **Ollama**, **Claude Desktop**, **Cursor**, and **Antigravity**, see the [MCP Server Specification](docs/MCP_SERVER_SPECIFICATION.md) and [User Manual](docs/USER_MANUAL.md).
73
+
74
+ ### Preview Production Build
75
+ Preview the production build locally:
76
+ ```bash
77
+ npm run preview
78
+ ```
79
+
80
+ ---
81
+
82
+ ## 📲 Installing as a PWA
83
+
84
+ ### On iOS / iPadOS (Safari)
85
+ 1. Open the hosted URL in Safari.
86
+ 2. Tap the **Share** button (the square with an arrow pointing up).
87
+ 3. Scroll down and tap **"Add to Home Screen"**.
88
+ 4. Launch WordNook from your home screen for full-screen, offline use.
89
+
90
+ ### On Android (Chrome)
91
+ 1. Open the hosted URL in Chrome.
92
+ 2. Tap the menu (three dots) and select **"Install app"** or **"Add to Home screen"**.
93
+
94
+ ---
95
+
96
+ ## 📄 License
97
+ MIT License.