seemore 1.10.9 → 1.11.1

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
@@ -50,11 +50,13 @@ cd my-docs
50
50
  npx seemore # renders this folder at http://localhost:4040
51
51
  ```
52
52
 
53
+ `npx seemore` runs seemore without adding it to your repository's dependencies.
54
+
53
55
  Open the address it prints. From there it's live: add, rename, retitle or delete a file and the site updates immediately, navigation and search included.
54
56
 
55
57
  The [seemore website](https://arifszn.github.io/seemore) is itself a folder of Markdown rendered by seemore. That's what your own folder will look like.
56
58
 
57
- <details>
59
+ <details open>
58
60
  <summary><strong>Or ask an AI agent to set it up</strong></summary>
59
61
  <br/>
60
62
 
@@ -64,6 +66,9 @@ Not comfortable in a terminal? There's an [agent skill](https://github.com/arifs
64
66
 
65
67
  ```bash
66
68
  /plugin marketplace add arifszn/seemore-skill
69
+ ```
70
+
71
+ ```bash
67
72
  /plugin install seemore
68
73
  ```
69
74
 
@@ -101,7 +106,7 @@ Or invoke the skill by name:
101
106
  - **[As a static site](#publish-it-to-the-web)**: `npx seemore build` exports plain HTML you can host anywhere, so it doubles as a docs framework, not just a preview tool.
102
107
 
103
108
  <p align="center">
104
- <video src="https://github.com/user-attachments/assets/248032a6-7e25-4f9f-8d73-089b5302afb0" width="640" controls muted></video>
109
+ <video src="https://github.com/user-attachments/assets/0a27b76d-f765-47b7-a3de-4b6f3aefbb74" width="640" controls muted></video>
105
110
  </p>
106
111
 
107
112
  ## What you get
@@ -113,6 +118,7 @@ Point seemore at anything already sitting in Markdown (AI-written notes, project
113
118
  - **Edit in place**: double-click any block in the preview to fix its Markdown
114
119
  - **Editor integration**: one extension covers VS Code, Cursor, Antigravity and other VS Code-compatible editors, remote workspaces included
115
120
  - **Documentation framework**: `seemore build` prerenders the whole site to HTML, ready to deploy on any host
121
+ - **Password protection**: protect the built site with one shared password, with no server required
116
122
  - **Page actions**: copy a page as Markdown, or export it as one self-contained HTML file to drop into Slack, email or an AI chat
117
123
  - **Search built in**: static full-text search with no server and no account, with shareable highlighted results; [Algolia](https://algolia.com) and [Orama Cloud](https://orama.com) drop in when you want a hosted index
118
124
  - **Rich Markdown**: GitHub Flavoured Markdown, admonitions, steps, `[[wikilinks]]`, [Mermaid](https://mermaid.js.org) and [D2](https://d2lang.com) diagrams, click-to-zoom images, embedded PDFs
@@ -158,6 +164,32 @@ The result is a `dist/` folder of plain web files: drop it on [Netlify](https://
158
164
  > [!TIP]
159
165
  > Publishing to GitHub Pages? If your site lives at `username.github.io/my-repo/` rather than the root, tell seemore the subpath once with `base: '/my-repo/'`.
160
166
 
167
+ ### Password-protect a site
168
+
169
+ Add `auth: true` to `seemore.config.ts`. Set the password when you build:
170
+
171
+ ```bash
172
+ SEEMORE_PASSWORD='a-long-passphrase' npx seemore build
173
+ ```
174
+
175
+ On Windows PowerShell:
176
+
177
+ ```powershell
178
+ $env:SEEMORE_PASSWORD='a-long-passphrase'; npx seemore build
179
+ ```
180
+
181
+ <p align="center">
182
+ <img src="https://raw.githubusercontent.com/arifszn/seemore/main/packages/site/assets/password-protection.png" alt="The lock screen of a password-protected seemore site: the site's icon and title above a password field and an Unlock button" width="560"/>
183
+ </p>
184
+
185
+ By default, visitors stay unlocked for one day after their last visit. Change this with `remember`:
186
+
187
+ ```ts
188
+ auth: { remember: '7d' } // or '12h'
189
+ ```
190
+
191
+ Password protection works only for `seemore build`. To try the lock screen, build and serve `dist/` on `localhost`.
192
+
161
193
  ### Share a single page to Slack, email
162
194
 
163
195
  To share a single page instead of a site, the **Actions** button above every page writes one self-contained HTML file (styles inlined, images embedded, diagrams kept) that opens offline from a double-click. The CLI does the same without a browser:
@@ -166,7 +198,7 @@ To share a single page instead of a site, the **Actions** button above every pag
166
198
  npx seemore export docs/spec.md # writes spec.html next to the Markdown
167
199
  ```
168
200
 
169
- More on both in [publishing](https://arifszn.github.io/seemore/publishing).
201
+ More on all three in [publishing](https://arifszn.github.io/seemore/publishing).
170
202
 
171
203
  ## Configuration
172
204
 
@@ -188,6 +220,7 @@ export default {
188
220
  search: 'static', // or { provider: 'orama-cloud', endpoint, apiKey } / { provider: 'algolia', appId, apiKey, indexName }
189
221
  pageActions: ['copy-markdown', 'export-html'],
190
222
  exclude: ['drafts/**'],
223
+ auth: true, // password from SEEMORE_PASSWORD at build time
191
224
  };
192
225
  ```
193
226
 
@@ -270,6 +303,8 @@ Run `seemore --help` for the options, or see the [CLI reference](https://arifszn
270
303
 
271
304
  **Will it move or rewrite my files?** No. seemore reads your folder where it is. It writes only when you save an inline edit, or when you run `build` or `export`.
272
305
 
306
+ **Is the password protection real?** Yes. Site content is encrypted, so a copy of the build cannot be read without the password. There is no per-person access or revocation, and a short password can be guessed offline, so use a long one.
307
+
273
308
  **Is it a preview tool or a docs framework?** Both, from the same folder: `seemore` previews it, the extension renders it beside your editor, and `seemore build` publishes it.
274
309
 
275
310
  ## Under the hood