Skip to content

Commit 3a196eb

Browse files
Merge branch 'main' into feat/local-llm-conflicts-with-main
2 parents 341f92c + 1dc88aa commit 3a196eb

24 files changed

+1582
-254
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<img src="https://img.shields.io/badge/Platform-electron.js-black.svg" alt="platform">
1010
<img src="https://img.shields.io/github/release-date-pre/p2plabsxyz/peersky-browser?color=green" alt="GitHub Pre-release" />
1111
<!-- <img src="https://img.shields.io/github/v/release/p2plabsxyz/peersky-browser?color=green" alt="GitHub Release"> -->
12-
<img src="https://img.shields.io/mastodon/follow/113323887574214930" alt="Mastodon Follow">
12+
<a href="https://mastodon.social/@peersky"><img src="https://img.shields.io/mastodon/follow/113323887574214930" alt="Mastodon Follow"></a>
13+
<a href="https://deepwiki.com/p2plabsxyz/peersky-browser"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
1314
<img src="./banner.gif" width="639" alt="Peersky, displaying multiple overlapping windows. The foreground window shows a search bar with DuckDuckGo, while the background contains a Wikipedia page on ipns:// about Earth and a private hyper:// chat. The central window features a scenic forest image with sunlight filtering through tall trees, and a clock">
1415
</div>
1516

@@ -27,6 +28,7 @@
2728
- [x] Cross browser themeing ([browser://theme/](https://github.com/p2plabsxyz/peersky-browser/blob/main/docs/Theme.md))
2829
- [x] Search engine
2930
- DuckDuckGo (default)
31+
- Brave Search
3032
- Ecosia
3133
- Kagi
3234
- Startpage

docs/Settings.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ All settings-related functionality in Peersky flows through a unified preload an
5252
| `settings.getAll()` | `settings-get-all` | Retrieve all settings |
5353
| `settings.set(key, value)` | `settings-set` | Update setting → persist → broadcast |
5454
| `settings.reset()` | `settings-reset` | Reset all settings to defaults |
55-
| `settings.clearCache()` | `settings-clear-cache` | Clears browser + P2P cache |
55+
| `settings.clearBrowserCache()` | `settings-clear-cache` | Clears browser cache |
56+
| `settings.resetP2PData()` | `settings-reset-p2p` | Clears P2P caches |
5657
| `settings.uploadWallpaper(data)` | `settings-upload-wallpaper` | Save + set custom wallpaper |
5758
| `getWallpaperUrl()` | `settings-get-wallpaper-url` | Get wallpaper path (async) |
5859
| `getWallpaperUrlSync()` | `settings-get-wallpaper-url-sync` | Preload sync load for zero-flicker |
@@ -95,14 +96,31 @@ Each section is built using simple HTML blocks styled with internal and theme-pr
9596
### Search Engine
9697

9798
- `settings.set('searchEngine', 'DuckDuckGo')`
98-
- Allows user to switch search engines between DuckDuckGo, Ecosia, Kagi, Startpage
99+
- Allows user to switch search engines between DuckDuckGo, Brave Search, Ecosia, Kagi, Startpage
100+
101+
### Cache & P2P Data
102+
103+
#### Clear Browser Cache
104+
- **API/IPC:** `settings.clearBrowserCache()` → invokes `ipcMain.handle('settings-clear-cache')`
105+
- **Wipes (Chromium session only):**
106+
- Cookies
107+
- LocalStorage / SessionStorage
108+
- IndexedDB
109+
- Service Workers
110+
- Cache Storage
111+
- HTTP cache (`session.clearCache()`)
112+
- **Does NOT touch:** `ipfs/`, `hyper/`, `ensCache.json`, identity files
113+
114+
#### Reset P2P Data
115+
- **API/IPC:** `settings.resetP2P({ resetIdentities?: boolean })``ipcMain.handle('settings-reset-p2p')`
116+
- **Default behavior (`resetIdentities: false`):**
117+
- Clears P2P caches: `ipfs/` (except `libp2p-key`), `hyper/` (except `swarm-keypair.json`)
118+
- Removes `ensCache.json`
119+
-**Preserves identities:** `ipfs/libp2p-key`, `hyper/swarm-keypair.json`
120+
- **Full wipe (`resetIdentities: true`):**
121+
- Deletes **all** P2P data including identity files
122+
- New identities will be generated on next launch
99123

100-
### Cache Clearing
101-
102-
- `settings.clearCache()`
103-
- Wipes:
104-
- Electron session (cookies, storage)
105-
- P2P caches (`ipfs/`, `hyper/`, `ensCache.json`)
106124

107125
## 6. Adding a New Setting (Example: `autoSave`)
108126

package-lock.json

Lines changed: 11 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "peersky-browser",
3-
"version": "1.0.0-beta.11",
3+
"version": "1.0.0-beta.13",
44
"description": "A minimal local-first p2p web browser: access, communicate, and publish offline.",
55
"keywords": [
66
"peersky",
@@ -133,6 +133,7 @@
133133
"@libp2p/kad-dht": "^15.1.11",
134134
"b4a": "^1.6.7",
135135
"blockstore-level": "^2.0.3",
136+
"chromium-net-errors": "^13.0.0",
136137
"content-hash": "^2.5.2",
137138
"content-type": "^1.0.5",
138139
"datastore-level": "^11.0.3",

0 commit comments

Comments
 (0)