Commit Graph

409 Commits

Author SHA1 Message Date
Sean Zellmer
b11bb658c7 Add Best practices article (#186)
* Add aside about using only one corestore instance per application

A single corestore instance covers all needs and avoids pitfalls (such
as file locks and named hypercores not being the same key) that come
from multiple corestore instances.

* Add note for best practice to create one hyperswarm instance per app

* Create a best practices guide for Pear Application development

* Add "Best Practices" article to SUMMARY.md & README.md

* Include points added to the guides on using single swarm & store

* Fix capitalization in Best Practices article
2025-05-31 01:01:23 -05:00
Sean Zellmer
8c0ebce5af Add libatomic1 as dependency for ubuntu install (#175)
* Add `libatomic1` as dependency for ubuntu install

* Move libatomic install instructions up and include `yum` instruction

* Add `dnf`, `apk` & `pacman` instructions for `libatomic` requirement

Mirrors the error when running `pear-cli` without `libatomic` installed.
2025-05-29 17:35:25 -05:00
Sean Zellmer
72b0d04f36 FAQs (#187)
* Add preliminary FAQs on developing Pear applications

* Emphasize that NPM is great

* Add information about where data & applications are stored

* Clarify Pear storage FAQ & add links to references

* Add FAQ for IP address exposure

* Reword where how to get `pearDir`

* Fix links in FAQs

* Fix `pear dump` link in FAQ

* Reorder storage FAQ after listing & reseting apps

Places questions for users of Pear applications higher.

* Fix unnecessary capitalization

* Clean up table markdown in FAQ

* Add non-alias example to `pear data apps` example output in FAQ

* Note why NPM is used as the pkg manager & whether its required for Pear

* Add FAQs to README.md & SUMMARY.md
2025-05-29 15:26:29 -05:00
Sean Zellmer
a35091a267 Troubleshooting docs for Pear & Bare (#184)
* Add Troubleshooting guide stub w/ info on Pear.teardown & worker hang

* Add troubleshooting steps for debugging Pear app exiting silently

* Add troubleshoot entry on debugging `Error: While lock file...`

* Add troubleshooting entry on debugging slow hyperswarm joins

* Add entry for debugging running Bare modules in Pear desktop

* Add troubleshooting stub for Bare w/ info on bare vs node modules

* Add debugging guide for `bare-pack` w/ dynamic conditional imports

* Fix Node.js spelling & module -> package typo

* Link to 'nodejs compatibility' alias section in Bare troubleshooting

* Fix missing extension in link

* Add entry for debugging `ADDON_NOT_FOUND`

* Fix typo in troubleshooting guide for bare

* Add links to troubleshooting articles in SUMMARY.md & README.md

* Update Pear troubleshooting article title

* Refine reasons for joining Hyperswarm topics & fix minor formatting

* Clarify that aliases are for Bare support & dont prevent Node.js support

* Rework aliases description

Now it's clearer that its to add support and doesn't modify the
dependencies.

* Remove unnecessary `-d` in Pear troubleshooting guide
2025-05-15 13:29:45 -05:00
Sean Zellmer
b5c4873f37 Clarify Release Process in CLI docs (#182)
* Clarify how `pear stage` generates key & replicates staged changes

* Clarify how `pear seed` distributes the channel / link of an app

* Add brief description of release pointer to `pear release` doc

* Add note about rolling back a release

* Fix grammar & add more details to why staging can propagate w/o seeding

* Tweak staging description to make update to version explicit

* Add second dump-based strategy for rolling back a release
2025-04-25 08:51:57 +02:00
Sean Zellmer
2ed09ca009 fix: Add teardown callback for mobile guide (#183)
Users should close resources like autopass in a teardown callback. In
this case it will speed up reruns as `pass.close()` calls hyperswarm's
`.destroy()` which will clean up the DHT records, speeding up joining on
rerun.
2025-04-25 07:39:04 +05:30
Sean Zellmer
7c67031787 Update Mobile guide with numeric bare-rpc commands (#181)
`bare-rpc` updated in `0.2.0` to take numbers as commands instead of
strings.
2025-04-14 12:29:02 -05:00
Sean Zellmer
6cd081e49e Remove findingPeers() & some flush() flow from hyperswarm examples (#176)
`swarm.flush()` was kept in scenarios where replicating a hypercore
immediately was required.
2025-04-10 19:15:57 +02:00
Sean Zellmer
0d7fbfe0c3 Update bare lifecycle methods (#180)
* Update bare API docs to 1.17.1

* Add Options section on Bare building configuration

* Update Bare module list to 1.17.1
2025-03-27 19:32:46 +01:00
Sean Zellmer
c966f41503 Remove --seeders flag from pear seed doc (#179)
Removed here: https://github.com/holepunchto/pear/pull/655/files
2025-03-27 18:57:03 +01:00
Sean Zellmer
01e754bac0 Update autobase docs to match README.md (#178) 2025-03-20 23:08:43 +01:00
Sean Zellmer
08caadb392 Update how development mode affects Pear config API (#177) 2025-03-20 19:38:09 +01:00
Sean Zellmer
5800a7031f Add Mobile Application Guide (#167)
* Add "Making a Bare Mobile App" guide

* Change title to be 'Application' instead of 'App' in mobile guide

* Pin `autopass` to `1.x.x` in mobile guide

* Update "Bare on Mobile" to point readers to the mobile guide

* Add Bare mobile application guide to README.md

* Tweak wording in "Bare on Mobile"

* Remove "Cross-platform Pear App" example

This example app has been archived and is now outdated.

* Add missing link in SUMMARY.md for mobile guide

* Update mobile app guide to use new worklet api & support autopass@2.1
2025-03-18 08:54:42 +01:00
Sean Zellmer
e8cd9cc6e5 Update bare reference (#174)
* Update `api.md` & `overview.md` w/ `bare`'s `README.md`

Adjusted to account for the extra modules section & the `api.md`
breaking out `Bare`'s API.

* Update `bare-module` docs w/ `bare-module`'s `README.md`
2025-03-14 09:45:44 +01:00
Guspan Tanadi
ab9e188234 docs(bare/overview): update suspense example links (#173) 2025-03-14 09:42:18 +01:00
Sean Zellmer
47c6f034cb Pear release 1.11.1 docs (#169)
* Add `data` cli command & info about `apps` subcommand

* Add `pear reset` cli command for resetting a Pear application

Added a warning in the description as the command can result in lost
data and users should be cautious when using it.

* Remove leading spaces for `data` command flags

* Add note about dumping paths from `pear://` links in `dump` command

* Add `Pear.tray()` to Pear API docs

* Add supported formats for tray icon

* Remove `--unsafe-clear-preferences` from `pear run` cli doc

* Add `pear.gui.name` config option

* Edit new documentation for grammar & formatting

* Clarify `pear.gui.name` is an override & doesnt have a default

* Remove using "you" in `pear dump` doc & Correct grammar in `Pear.tray()`

Co-authored-by: David Mark Clements <huperekchunow@googlemail.com>

* Reword `pear reset` to make warning explicit

* Add note about hidden app issues when linux doesn't support `Pear.tray()`

---------

Co-authored-by: David Mark Clements <huperekchunow@googlemail.com>
2025-03-07 12:54:57 -06:00
Marco
835fd15cb6 remove-redundant-replicate-corestore (#171) 2025-03-05 12:56:49 +01:00
Sean Zellmer
c8b7455f25 Clarify where to run apps in howtos (#170)
* Add missing argument for `drive-writer-app` key in p2p fs howto

* Clarify where applications should be run in howtos

The wording is adjusted to make it clearer when one pear app should be
left running and where to run apps in general. In some cases a reader
would be prompted to make a directory and then change directories into
it and modify some files. After modifying the files, they would be asked
to change into the directory again even though they would be in the
directory already. This has been clarified by removing commands for
changing directory where the reader will be already in that directory.
2025-02-28 12:16:09 +01:00
Sean Zellmer
b011d81d27 Pear release 1.10.0 docs (#165)
* Add `pear.gui.hideable` configuration option

Added in Pear v1.10.0

* Add note about platform specific `gui` options

* Tweak platform list text to show connection w/ header

* Clean up line breaks in gui platform config section

* Remove platforms not supported by electron in GUI config section
2025-02-14 09:35:21 +01:00
Eric Bauerfeld
9713b381a1 Correct type description for encryptionKey option (#166) 2025-02-14 09:34:57 +01:00
Sean Zellmer
e2d6acccf0 Add Pear.media.getPathForFile(file) documentation (#164) 2025-01-17 12:42:27 +01:00
Sean Zellmer
f2f9cfeaa0 Clarify running Pear Runtime Desktop app (#163)
* Clarify how to open the Pear Runtime Desktop app

* Avoid double conjunction sentence in debugging guide
2025-01-13 00:28:35 +01:00
Sean Zellmer
02086fd150 Change RPC to IPC language in mobile bare docs (#159)
`bare-kit` API switched to just an IPC abstraction.
2024-12-23 10:00:49 +01:00
Sean Zellmer
dca7c8f3f8 Pear release 1.8.0 docs (#162)
* Add `Pear.badge(count)` documentation

Picked `null` to be the documented way to display a plain dot given it
coerces to `0`, so passes the `Number.isInteger(count)` check, and has
the same behavior in plain electron.

* Add `pear.stage.prefetch` to Application Configuration

* Update `stage` subcommand help output

The `truncate` was added since
https://github.com/holepunchto/pear/commit/85892a6a#diff-c218df6a550b0f3a42a2879e83f3ce2281061a1e79123d2a6d610d62d5f63bd8R79
but was missing.

* Add `pear.userAgent` to Application Configuration

* Adjust info about warmup in the guides

* Clarify that `pear.userAgent` will not change Sidecar requests
2024-12-23 09:59:13 +01:00
rafapaezbas
299d287412 removed previewFor (#160) 2024-12-20 09:28:19 +01:00
rafapaezbas
10aee5aefb removed stage --bare flag (#161) 2024-12-20 09:27:29 +01:00
Sean Zellmer
cdc8606d96 Add bare-expo example & brief architecture explanation (#157)
* Add `bare-expo` to "Bare on Mobile" w/ brief Pear-end explanation

* Add footnote about the term worklet to Bare on Mobile

* Add phrase about using RPC to communicate w/ worklet in Bare on Mobile

* Reword note about `bare-ios` & `bare-android` examples
2024-12-05 21:46:23 +01:00
Sean Zellmer
c6b63ae9fa Pear release 1.7.0 (#158)
* Remove `.getMediaSourceId()` documentation

Removed in: https://github.com/holepunchto/pear/pull/420

* Note that `Pear.restart()` & `Pear.reload()` is Desktop Only

* Revert "reverted dump dry-run flag"

This reverts commit 5eaee12d96.
2024-12-05 21:42:19 +01:00
rafapaezbas
5eaee12d96 reverted dump dry-run flag 2024-11-14 23:28:57 +01:00
Sean Zellmer
ac1349ee83 Doc updates for Pear release 1.6.0 (#155)
* Add dump dry-run flag

Added to pear with https://github.com/holepunchto/pear/pull/400/files

* Add `pear sidecar` logging flags

`-v` & `--sidecar` weren't added as they aren't used.

* Add `Pear.config.dht.nodes` & `Pear.config.dht.bootstrap`
2024-11-14 23:24:33 +01:00
Sean Zellmer
577c4c1bec Updating guides (1.5.0) (#154)
* Remove `--` for app option passthrough

Changed since `paparam` was used for parsing command line options:
85892a6a32a84ae42a548f8e3ac0b5dbedd70c80
Now uses `cmd.rest` for app args.

* Use `Pear.config.args` for howto scripts

* Update "starting a pear desktop project" guide to match template

* Remove `--no-ask-trust` flag from `pear run` cli doc

This command was replaced by `--no-ask` which was already in the
documentation. Updated a reference to `--no-ask-trust` in the 'Sharing a
Pear Application' guide.

* Fix typos in "Releasing a Pear Application" guide

* Correct application storage folder name in hyperbee howto

* Add missing `test/index.test.js` in project structure for terminal guide

* Remove language about app continuing to run

This is no longer true at least as of pear:
v0.5114.pqbzjhqyonxprx8hghxexnmctw75mr91ewqw5dxe1zmntfyaddqy / v1.5.0

* Fix extra indention in example code for hypercore howto

* Format json in `_template.json` example

* Add instructions to set up a minimal `package.json` for testing template

Without this, the next step of `pear run --dev .` does not work since
`pear` expects a `package.json` file.

* Rename hyperbee reader app in hyperdrive howto to avoid name conflict

Naming only matters if someone is following the guides and starts each
guide from the same root directory. If they do, then `bee-reader-app`
from the hyperdrive conflicts with the `bee-reader-app` from the
hyperbee howto.

* Remove unrelated youtube tutorial from hyperswarm howto

* Update guide/creating-a-pear-init-template.md

Co-authored-by: David Mark Clements <huperekchunow@googlemail.com>

* Fix spelling mistake

Co-authored-by: David Mark Clements <huperekchunow@googlemail.com>

---------

Co-authored-by: David Mark Clements <huperekchunow@googlemail.com>
2024-11-01 19:32:58 +01:00
Marco
1bebdf1a95 Fix typo on Pear.messages api (#153) 2024-10-28 22:01:27 +11:00
Sean Zellmer
c0956c273d Fix spelling mistakes (#150) 2024-10-22 15:07:06 +02:00
Sean Zellmer
b4ad921fde Add --force flag for dump CLI (#151) 2024-10-22 15:06:36 +02:00
Sean Zellmer
706f396a5d Convert all howtos to use pear run --dev (#152) 2024-10-22 15:06:18 +02:00
Sean Zellmer
174dcce808 Fix 'key' vs 'link' (#149)
* Change `key` to `link` to match CLI functionality

CLI commands have changed to take the link format (`pear://<key>`)
instead of the key.

* Update guides to use `link` instead of `key` for CLI commands
2024-10-19 17:10:21 +02:00
Sean Zellmer
040acadf22 Add documentation for pear touch command (#147)
* Add documentation for `pear touch` command

* Add `pear seed <link>` example to `pear touch` doc
2024-10-16 09:18:48 +02:00
rafapaezbas
d9b340f00e remove Pear.preferences API (#146) 2024-10-15 18:47:40 +02:00
Sean Zellmer
ae3b4eeab1 Remove hidden --encryption-key flag (#148) 2024-10-15 18:18:39 +02:00
Vivek Singh
03fee03bba fix json 2024-10-15 11:55:04 +05:30
Vivek Singh
bb1a59a909 add .DS_Store to gitignore 2024-10-15 11:09:41 +05:30
Vivek Singh
2335c089ed fixes to nodejs compat 2024-10-15 11:03:37 +05:30
Vivek Singh
41c183df0a Add aliasing and import map examples (#144)
* add npm aliasing info for bare

* fix content and add import maps

* fixes
2024-10-11 18:37:46 +02:00
Vivek Singh
fc85e089fb Alignment for release v1.5 (#139)
* update and add flags for release

* add encryption flag
2024-10-11 12:14:55 +02:00
Vivek Singh
2ee7373e62 add pear interface (#143)
* add pear interface

* fix semi-colon spacing
2024-09-25 12:18:40 +02:00
Vivek Singh
15b52d79a5 Update api (#142)
* add missing config options

* remove pear dev references

* fix headings and typo
2024-09-25 09:17:19 +02:00
Vivek Singh
911cf1bda7 add guide to README and SUMMARY 2024-09-23 18:32:14 +05:30
Vivek Singh
655f425a5b guide for creating pear init templates (#141)
* first draft

* create guide draft

* add assets for guide

* remove __main__ file, add note

* fix quotes
2024-09-20 13:37:48 +02:00
Vivek Singh
200a55150e add draggable title bar info in guide (#140)
* update guide

* wrap pear-ctrl in titlebar

* adjusted mac pear-ctrl margin

---------

Co-authored-by: rafapaezbas <rafaelpaezbastida@gmail.com>
2024-09-17 18:11:30 +02:00
annadevile
ccb62402a8 Fix sentence hyperdht.md (#138)
Servers can be run on normal home computers, as the DHT will UDP holepunch connections are personal to users.
-->
"You can run servers on normal home computers, as the DHT will UDP holepunch connections for you."
2024-09-13 10:58:54 +02:00