fedipod 1.4.1 → 1.6.0
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 +10 -3
- package/architecture.md +4 -4
- package/cli.md +7 -0
- package/gateway.md +6 -0
- package/groups.md +1 -1
- package/gui.md +1 -1
- package/lib/client/masto/index.mjs +6 -1
- package/lib/core/publisher/index.mjs +1 -1
- package/lib/core/wire.mjs +2 -1
- package/lib/device/admin/routes/lifecycle.mjs +1 -1
- package/lib/device/admin/routes/setup.mjs +20 -1
- package/lib/device/cli/commands/setup.mjs +44 -20
- package/lib/device/setup.mjs +99 -25
- package/lib/gateway/front-core.mjs +14 -2
- package/lib/pod/root.mjs +27 -0
- package/lib/pod/transport.mjs +7 -2
- package/lib/pod/urls.mjs +14 -0
- package/package.json +1 -1
- package/web/admin/setup/index.html +25 -2
- package/web/admin/setup/setup.js +30 -1
- package/web/app/README.md +2 -2
- package/web/app/admin-facade.mjs +1 -1
- package/web/app/agent.mjs +17 -5
- package/web/app/boot.mjs +80 -20
- package/web/app/dist/boot.js +187 -49
- package/web/app/dist/boot.js.map +3 -3
- package/web/app/dist/sw.js +31 -13
- package/web/app/dist/sw.js.map +2 -2
- package/web/app/index.html +46 -8
- package/web/app/keys-browser.mjs +8 -3
- package/web/app/signup.mjs +68 -40
- package/web/app/site/admin/setup/index.html +25 -2
- package/web/app/site/admin/setup/setup.js +30 -1
- package/web/app/site/boot.js +187 -49
- package/web/app/site/index.html +46 -8
- package/web/app/site/sw.js +31 -13
- package/installed-agent.md +0 -97
package/installed-agent.md
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# The installed agent
|
|
2
|
-
|
|
3
|
-
FediPod can also run as a program on your own machine, in front of the same
|
|
4
|
-
kind of pod. It does everything the browser version at fedipod.net does, plus
|
|
5
|
-
what a browser tab cannot: it keeps running while no tab is open, so scheduled
|
|
6
|
-
posts go out and push notifications reach you; it serves the Mastodon streaming
|
|
7
|
-
API, so clients update live; any Mastodon client, phone app or desktop, can
|
|
8
|
-
connect to it; and it can host a [group](groups.md).
|
|
9
|
-
|
|
10
|
-
## Requirements
|
|
11
|
-
|
|
12
|
-
- Node 20 or newer.
|
|
13
|
-
- A Solid pod with a host name of its own, such as
|
|
14
|
-
`https://alice.solidcommunity.net/`. A pod on a path of a shared host cannot
|
|
15
|
-
be a Fediverse address.
|
|
16
|
-
- Followers-only and direct posts need a pod that enforces WAC access control;
|
|
17
|
-
on one that does not, the composer refuses those two and says why.
|
|
18
|
-
- While the agent is off, your mail waits on your pod's host. Run it as a
|
|
19
|
-
service, or attach to a gateway, so it does not pile up there.
|
|
20
|
-
|
|
21
|
-
## Installing
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
npm install -g fedipod
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Running
|
|
28
|
-
|
|
29
|
-
Run `fedipod start`. Add a port to change the local agent's port, for example
|
|
30
|
-
`fedipod start --port 8081`; the default is 8030. Then point any browser at
|
|
31
|
-
`https://localhost:8030`, or the port you chose, and the setup pages take it
|
|
32
|
-
from there.
|
|
33
|
-
|
|
34
|
-
## Running as a service
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
fedipod install-service
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
It registers every identity on this machine, one service each, so all of your
|
|
41
|
-
actors start at boot. An identity running in a terminal is stopped and taken
|
|
42
|
-
over by its service. `fedipod uninstall-service` reverses it.
|
|
43
|
-
|
|
44
|
-
## Managing
|
|
45
|
-
|
|
46
|
-
Posts, logs, parking, moving, transferring and the rest are on the
|
|
47
|
-
[admin interface](gui.md); starting, stopping and what a page cannot do are in
|
|
48
|
-
[CLI admin](cli.md). The admin tools also create other actors, groups or
|
|
49
|
-
persons. You may have as many as you want on one machine, each with a pod of
|
|
50
|
-
its own.
|
|
51
|
-
|
|
52
|
-
Every agent checks once a day whether a newer FediPod is published. When one
|
|
53
|
-
exists, the record page offers **Update**, and `fedipod update` does the same
|
|
54
|
-
from the terminal. `AP_UPDATE_CHECK=0` turns the check off.
|
|
55
|
-
|
|
56
|
-
## A gateway account
|
|
57
|
-
|
|
58
|
-
Most of what a Fediverse inbox receives is broadcast noise. A
|
|
59
|
-
[gateway](gateway.md) is a shared, always-on door that verifies each delivery,
|
|
60
|
-
drops the junk, and passes the rest to your pod, while your key and data stay
|
|
61
|
-
on your pod. There is a free one at [fedipod.net](https://fedipod.net/).
|
|
62
|
-
Attaching or detaching is a few wizard-guided clicks from your agent, and it
|
|
63
|
-
takes the mail load off your pod's host.
|
|
64
|
-
|
|
65
|
-
## Clients
|
|
66
|
-
|
|
67
|
-
The bundled client is [Phanpy](https://github.com/cheeaun/phanpy) (MIT, by
|
|
68
|
-
Chee Aun), served by the agent itself, and logging in is one click. If you
|
|
69
|
-
ever enter the instance by hand, use the address on the record's **local
|
|
70
|
-
host** row.
|
|
71
|
-
|
|
72
|
-
- **Other web clients**: drop any static Mastodon client dist into
|
|
73
|
-
`ui/<name>/` and it is served at `/<name>/`; see `ui/README.md`.
|
|
74
|
-
- **Desktop and phone clients** (Tuba, Whalebird, and the like): add
|
|
75
|
-
`https://localhost:8030`, or your agent's port, as a custom instance.
|
|
76
|
-
- **Streaming**: the agent serves the Mastodon streaming API at
|
|
77
|
-
`/api/v1/streaming`, so clients update live instead of polling.
|
|
78
|
-
- **Web push**: notifications reach you while the client is closed.
|
|
79
|
-
- **Scheduled posts** go out at the time you picked.
|
|
80
|
-
|
|
81
|
-
Polls, content warnings, editing, all four visibility levels, direct
|
|
82
|
-
messages, bookmarks, favourites, lists, keyword filters, pinned posts,
|
|
83
|
-
blocking and muting, and custom emojis work as in the browser version.
|
|
84
|
-
|
|
85
|
-
## Bluesky, and your other Fediverse accounts
|
|
86
|
-
|
|
87
|
-
A Bluesky connection lets the agent drive an existing Bluesky, or other
|
|
88
|
-
ATProto, account alongside your Fediverse identity: public posts are
|
|
89
|
-
cross-posted as a mirror, with a toggle to turn it off; Bluesky replies and
|
|
90
|
-
activity flow into your timeline; you can like, boost and reply to Bluesky
|
|
91
|
-
posts. Direct messages to Bluesky are not supported.
|
|
92
|
-
|
|
93
|
-
An account on Mastodon or any server speaking the Mastodon API can be
|
|
94
|
-
connected from the **Other identities** row of the admin page. Its home
|
|
95
|
-
timeline and notifications join your feed, a post both accounts see appears
|
|
96
|
-
once, and favouriting, boosting and replying act as the account the post came
|
|
97
|
-
through. The token it hands back stays on this machine.
|