SNAC(1) | General Commands Manual | SNAC(1) |
snac
— A simple,
minimalistic ActivityPub instance
snac |
command basedir
[option ...] |
The snac
daemon processes messages from
other servers in the Fediverse using the ActivityPub protocol.
This is the user manual and expects an already running
snac
installation. For the administration manual,
see snac(8). For file and data formats, see
snac(5).
The web interface provided by snac
is
split in two data streams: the public timeline and the private timeline.
There are no other feeds like the server-scoped or the federated firehoses
provided by other similar ActivityPub implementations like Mastodon or
Pleroma.
The public timeline, also called the local timeline, is what an
external visitor sees about the activity of a snac
user: that is, only the list of public notes, boosts and likes the user
generates or participates into. This is, obviously, read-only, and not very
remarkable, unless the user publishes messages of staggering genious. A set
of history links, grouped by month, will also be available at the bottom of
the page.
The private timeline, or simply the timeline, is the private,
password-protected area of a snac
server where the
user really interacts with the rest of the Fediverse.
The top area of the timeline provides a big text area to write notes for the public (i.e. for the user followers). As this is the second most important activity on the Fediverse, this is located in the most prominent area of the user page. You can enter plain text, @user@host mentions and other things. See the snac(5) manual for more information on the allowed markup.
More options are hidden under a toggle control. They are the following:
The user setup dialog allows some user information to be changed, specifically:
snac
hides content marked as sensitive
by their publishers. If you check this option, sensitive content is always
shown.The rest of the page contains your timeline in reverse
chronological order (i.e., newest interactions first).
snac
shows the conversations as nested trees, unlike
other Fediverse software; everytime you contribute something to a
conversation, the full thread is bumped up, so new interactions are shown
always at the top of the page while the forgotten ones languish at the
bottom.
Private notes (a.k.a. direct messages) are also shown in the timeline as normal messages, but marked with a cute lock to mark them as non-public. Replies to direct messages are also private and cannot be liked nor boosted.
For each entry in the timeline, a set of reasonable actions in the form of buttons will be shown. These can be:
snac
and the
Fediverse in general. Click it if you don't want to read crap from this
user again in the forseeable future.snac
version 2.19 and
later can be edited and resent to their recipients.The command-line tool provide the following commands:
init
[basedir]upgrade
basedirsnac
complains and demands it.httpd
basedirpurge
basediradduser
basedir [uid]resetpwd
basedir uidqueue
basedir uidfollow
basedir uid
actorrequest
basedir uid
urlnote
basedir uid
textblock
basedir instance_urlunblock
basedir instance_urlstate
basedirserver: comam.es (snac/2.45-dev) uptime: 0:03:09:52 job fifo size (cur): 45 job fifo size (peak): 1532 thread #0 state: input thread #1 state: input thread #2 state: waiting thread #3 state: waiting thread #4 state: output thread #5 state: output thread #6 state: output thread #7 state: waiting
The job fifo size values show the current and peak sizes of the in-memory job queue. The thread state can be: waiting (idle waiting for a job to be assigned), input or output (processing I/O packets) or stopped (not running, only to be seen while starting or stopping the server).
See snac(8) for details.
Since version 2.27, snac
includes support
for the Mastodon API, so you can use Mastodon-compatible mobile and desktop
applications to access your account. Given a correctly configured server,
the usage of these programs should be straightforward. Please take note that
they will show your timeline in a 'Mastodon fashion' (i.e., as a plain list
of posts), so you will lose the fancy, nested thread post display with the
most active threads at the top that the web interface of
snac
provides.
snac
makes very easy to post messages in a
non-interactive manner. This example posts a string:
uptime | snac note $SNAC_BASEDIR $SNAC_USER -
You can setup a line like this from a crontab(5)
or similar. Take note that you need a) command-line access to the same
machine that hosts the snac
instance, and b) write
permissions to the storage directories and files.
You can also post non-interactively using the Mastodon API and a command-line http tool like curl(1) or similar. This has the advantage that you can do it remotely from any host, anywhere; the only thing you need is an API Token. This is an example:
curl -X POST https://$SNAC_HOST/api/v1/statuses \ --header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)"
You can obtain an API Token by connecting to the following URL:
https://$SNAC_HOST/oauth/x-snac-get-token
grunfink @grunfink@comam.es
See the LICENSE file for details.
Use the Fediverse sparingly. Don't fear the MUTE button.
Probably plenty. Some issues may be even documented in the TODO.md file.
January 31, 2025 | Debian |