Commit Graph

68 Commits

Author SHA1 Message Date
Sean Zellmer
35b4cc45f8 Update bare mobile guide to use expo fs's documentDirectory (#189) 2025-06-02 14:51:49 -05:00
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
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
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
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
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
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
Sean Zellmer
c0956c273d Fix spelling mistakes (#150) 2024-10-22 15:07:06 +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
Vivek Singh
2ee7373e62 add pear interface (#143)
* add pear interface

* fix semi-colon spacing
2024-09-25 12:18:40 +02:00
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
Vivek Singh
3817bff892 Update guides (#134)
* update desktop guide

* update pear terminal guides

* fixes

* fix ctrl-c for example terminal app

* use SIGINT on readline close

---------

Co-authored-by: rafapaezbas <rafaelpaezbastida@gmail.com>
2024-08-27 12:15:39 +02:00
d61b292b-2859-4ed6-8c7c-b7397ad8e351
b11083fc8d Fix typo (#130) 2024-08-20 14:18:50 +05:30
Vivek
bcd322c1cb fix install link 2024-07-19 16:06:52 +05:30
Vivek Singh
9ebb687611 add trust dialog info (#102)
* add trust dialog info

* fixes

* fix warning note
2024-04-23 12:37:38 +02:00
Billie Hilton
74c4e389b8 fix extraneous closing tag in example HTML (#97)
Prettier caught the extra `</div>`. Technically, `<body>` doesn't need to be closed, but it helps keep indentation consistent.
2024-04-15 10:33:53 +02:00
Vivek Singh
1535777e26 Add comments to code blocks (#89)
* add mising comments

* add Hyperbee to blocks in README

* fix cap typo

---------

Co-authored-by: Vivek Singh <vi@localhost.localdomain>
Co-authored-by: Vivek Singh <vivek@peartree.to>
2024-04-15 10:19:58 +02:00
Vivek Singh
b339e2878a move bare ref and update links (#93)
* move bare ref and update links

* move pear ref into subfolder

* update README

* tiny fix

---------

Co-authored-by: Vivek Singh <vivek@peartree.to>
2024-03-21 14:13:04 +01:00
HDegroote
adfe9fc51b Add err handlers to swarm connections (#70) 2024-02-23 12:02:21 +01:00
Tobias Baunbaek
cbc6771450 Fix typo in code examples 2024-02-20 16:33:12 +01:00
dazl
f1b3f1cb62 typos eg help stage vs stage help (#56)
Co-authored-by: dazl <dazl@dazl.ca>
2024-02-19 16:21:59 +01:00
Matt DesLauriers
955b93b987 Update making-a-pear-desktop-app.md (#53)
add note about running two pear apps
2024-02-16 22:34:23 +01:00
Tobias Baunbæk Christensen
af9d543015 Add guide on terminal debugging (#43)
* Add guides on how to debug mobile/terminal apps

* Rename to Pear Desktop

* Cleanup

* Clean Pear.config.args explanation

* Fix incorrect renaming

* Remove mobile debugging guide

* Rename fix

* Rename back to Pear Runtime
2024-02-16 15:35:02 +01:00
Vivek Singh
fac1f73572 Fix grammar in docs (#49)
* fix grammar in readme

* fix grammar in compact-encoding

* fix grammar in hyperdht

* fix grammar in hyperdrive

* fix grammar in hypercore

* fix grammar in hyperswarm

* fix grammar in localdrive

* fix grammar in mirrordrive

* fix grammar in sharing-a-pear-app

* tiny fixes
2024-02-16 14:46:16 +01:00
Subash SN
a4d631e047 Embed syntax (#47)
Co-authored-by: Subash <subash@vuln.in>
2024-02-14 18:13:31 +01:00
Subash SN
837056a50e Updated Youtube links with existing markdown syntax (#40)
* Fixed youtube links

* Updated E2
2024-02-14 14:45:56 +01:00
rafapaezbas
636b931276 Fix router (#39)
* on click, do not add route if included in pathname

* corrected readme tools table links

* remove code blocks inside links

* corrected hypercore and hyperwarm links

---------

Co-authored-by: rafapaezbas <rafa@holepunch.com>
2024-02-14 14:11:39 +01:00
Tobias Baunbæk Christensen
2a83cb57e6 Update guide/making-a-pear-terminal-app.md
Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
2024-02-13 15:16:54 +01:00
Tobias Baunbæk Christensen
377828459b Update guide/making-a-pear-terminal-app.md
Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
2024-02-13 15:16:42 +01:00
Tobias Baunbæk Christensen
407ea87f40 Update guide/making-a-pear-terminal-app.md
Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
2024-02-13 15:08:34 +01:00
Tobias Baunbæk Christensen
ddbf4c9dd7 Update guide/starting-a-pear-terminal-project.md
Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
2024-02-13 15:08:00 +01:00
Tobias Baunbaek
74f73c0ecb Add Making A Terminal App guide 2024-02-13 15:02:21 +01:00
dmc
0027cce78c no redir links 2024-02-12 18:54:17 +01:00
dmc
696fec2b86 videos 2024-02-12 18:40:22 +01:00
HDegroote
d948cf7e1e Propose formulation changes 2024-02-06 02:23:57 +01:00
dmc
3fdf7a326b pearify 2024-02-01 00:19:20 +01:00
dmc
a32ed51350 launch -> run 2024-01-30 22:00:57 +01:00
dmc
025ab50d05 guide: making a desktop app, update look, pear-ctrl, tweaks 2024-01-30 22:00:48 +01:00
dmc
a2dbb32d51 import pear -> global.Pear 2024-01-29 14:33:45 +01:00
dmc
ee47b5f268 voice 2024-01-25 20:21:51 +01:00
David Mark Clements
efe514108d Merge pull request #23 from holepunchto/pear-terminal-comments
Less words in pear terminal guide
2024-01-25 15:14:13 +01:00
David Mark Clements
db4e7edd85 Merge pull request #24 from holepunchto/pear-desktop-project-comments
Simplify 'starting a pear desktop project' + titlecase
2024-01-25 15:13:43 +01:00
David Mark Clements
f3a187a37e Update guide/starting-a-pear-desktop-project.md 2024-01-25 15:13:29 +01:00
David Mark Clements
eca07e2c2c Merge pull request #25 from holepunchto/pear-desktop-app-comments
Simplify 'making a pear desktop app'
2024-01-25 15:12:36 +01:00
dmc
87198720b2 releasing a pear, readme iterate, howtos 2024-01-25 14:36:02 +01:00
HDegroote
f8510c00f5 Spacing 2024-01-25 01:36:01 +01:00
HDegroote
4453c25b14 Imperative and Passive voice 2024-01-25 01:33:44 +01:00