glance-cli 0.10.7 → 0.10.8

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.
Files changed (3) hide show
  1. package/README.md +33 -18
  2. package/dist/cli.js +314 -310
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3,10 +3,11 @@
3
3
  **AI-powered web reader for your terminal** – Fetch any webpage, extract clean content, get instant AI summaries, and listen with natural voice synthesis.
4
4
 
5
5
  - **100% FREE by default** – Uses local Ollama (no API keys needed!)
6
- - **Privacy-first** – Your data stays on your machine
6
+ - **Auto language detection** – Detects English, French, Spanish, Haitian Creole
7
+ - **Privacy-first** – Your data stays on your machine
7
8
  - **Voice-enabled** – Read articles aloud with multilingual support
9
+ - **File output** – Save summaries as markdown, JSON, or plain text
8
10
  - **Lightning fast** – Built with Bun and TypeScript
9
- - **Production-ready** – Smart caching, error handling, retry logic
10
11
 
11
12
  Turn any webpage into terminal-friendly insights with AI summaries or full content — read it, listen to it, or export it.
12
13
 
@@ -23,9 +24,9 @@ Turn any webpage into terminal-friendly insights with AI summaries or full conte
23
24
  bun install -g glance-cli # Or: npm install -g glance-cli
24
25
 
25
26
  # Use immediately
26
- glance https://www.ayiti.ai
27
- glance https://www.ayiti.ai --read # Listen to it
28
- glance https://www.ayiti.ai --tldr # Quick summary
27
+ glance https://www.ayiti.ai # AI summary
28
+ glance https://www.ayiti.ai/fr --read # Auto-detects French + voice
29
+ glance https://news.com --output summary.md # Save as markdown
29
30
  ```
30
31
 
31
32
  **For 100% free local AI:**
@@ -68,10 +69,13 @@ glance --list-voices # See all voices
68
69
 
69
70
  ### 🌍 **Multi-Language Support**
70
71
  ```bash
71
- glance <url> --full -l fr # Translate to French
72
- glance <url> --full -l es --voice isabella --read # Spanish + voice
72
+ glance https://lemonde.fr --tldr # Auto-detects French from URL
73
+ glance https://www.ayiti.ai/fr --read # Auto-detects French + voice
74
+ glance <url> --full -l es --voice isabella --read # Override to Spanish + voice
73
75
 
76
+ # Auto-detection: Detects language from URL patterns and content
74
77
  # Supported: en, fr, es, ht (Haitian Creole)
78
+ # Override: Use --language flag to force specific language
75
79
  ```
76
80
 
77
81
  ### 🤖 **AI Models**
@@ -103,12 +107,20 @@ glance https://nextjs.org/docs --ask "What's the App Router?"
103
107
  # Study while coding
104
108
  glance https://tutorial.com --full --read
105
109
 
110
+ # Auto language detection
111
+ glance https://www.ayiti.ai/fr --tldr # Automatically detects French
112
+
106
113
  # Multilingual learning
107
- glance https://lemonde.fr --full -l en --read
114
+ glance https://lemonde.fr --full -l en --read # French → English + voice
115
+
116
+ # Save in different formats
117
+ glance https://news.com --output summary.md # Markdown format
118
+ glance https://api-docs.com --output data.json # JSON format
119
+ glance https://article.com --format plain --output content.txt # Plain text
108
120
 
109
121
  # Batch processing
110
122
  for url in $(cat urls.txt); do
111
- glance "$url" --tldr >> digest.md
123
+ glance "$url" --tldr --output "$(basename $url).md"
112
124
  done
113
125
  ```
114
126
 
@@ -143,11 +155,11 @@ done
143
155
  --prefer-quality # Use premium if available
144
156
  ```
145
157
 
146
- ### **Output & Export**
158
+ ### **Output & File Saving**
147
159
  ```bash
148
- -o, --export <file> # Save to file
160
+ --format <type> # Output format: md, json, plain (default: terminal)
161
+ --output, -o <file> # Save to file (auto-detects format from extension)
149
162
  --stream # Live streaming output
150
- --markdown, --json # Format shortcuts
151
163
  ```
152
164
 
153
165
  ### **Advanced**
@@ -182,16 +194,19 @@ export OLLAMA_ENDPOINT=http://localhost:11434
182
194
  ## 🎓 Pro Tips
183
195
 
184
196
  ```bash
185
- # 1. Translate + voice + save
186
- glance https://www.ayiti.ai --full -l fr --audio-output french.mp3
197
+ # 1. Auto language detection + file saving
198
+ glance https://lemonde.fr --output french-article.md # Auto-detects French format
199
+
200
+ # 2. Format override for different use cases
201
+ glance https://news.com --format json --output backup.md # JSON content in .md file
187
202
 
188
- # 2. Use local AI for privacy
203
+ # 3. Use local AI for privacy
189
204
  glance https://www.ayiti.ai --model llama3 --free-only
190
205
 
191
- # 3. Match voice to language
192
- glance https://lemonde.fr --voice antoine -l fr --read
206
+ # 4. Match voice to auto-detected language
207
+ glance https://www.ayiti.ai/fr --voice antoine --read # French detection + voice
193
208
 
194
- # 4. Streaming for long content
209
+ # 5. Streaming for long content
195
210
  glance https://long-article.com --stream
196
211
  ```
197
212