Skip to content

Commit

Permalink
Merge pull request #2 from treethought/docs
Browse files Browse the repository at this point in the history
add readme
  • Loading branch information
treethought authored Jun 9, 2024
2 parents 071c878 + 5f3ac5a commit 0c89129
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
args: release --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63 changes: 63 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# tofui

tofui (Terminally On Farcaster User Interface) is a TUI for [farcaster](https://www.farcaster.xyz/).

It supports running locally using your own [Neynar](https://neynar.com/) application, or as a hosted SSH app using [wish](https://github.com/charmbracelet/wish)

![tofui screenshot](./media/screenshot.png)


## Hosted version

Use a hosted instance of tofui over ssh

```
ssh -p 42069 tofui.xyz
```

### SSH Sessions, Authentication and Details

Each SSH session is authenticated via it's SSH public key. The session then receives it's own [Bubble Tea](https://github.com/charmbracelet/bubbletea) which provides the interface.

For authorization, the app directs you to create a signer via Neynar's [SIWN](https://docs.neynar.com/docs/how-to-let-users-connect-farcaster-accounts-with-write-access-for-free-using-sign-in-with-neynar-siwn). This signer is created and managed by Neynar, and is used to provide tofui access to your farcaster account via it's API.

This is done when both running locally and over SSH, and the signer is specific to whichever app credentials were used. This would be tofui over SSH, or your own app when running locally.


the tofui instance (local or hosted) uses the configured Neynar app credentials to obtain a signer via
## Running Locally

Running locally requires your own Neynar application. After creating one, copy [config.yaml.example](./config.yaml.example) to config.yaml and updating with your app's values.

### Install

Install using go
```
go install github.com/treethought/tofui@latest
```

Or clone the repo and run
```
make build
```

Or download a binary from the [releases](https://github.com/treethought/tofui/releases) page

Then start the TUI via `tofui`

## Keybindings

| Key | Action |
| --------- | ------------------------------------------- |
| Tab | Toggle focus between sidebar and main panel |
| Shift-Tab | Toggle sidebar visibility |
| K / Up | Move up in list |
| J / Down | Move down in list |
| Escape | Go to previous view |
| Enter | Select current item |
| F<br> | Jump to your feed |
| Ctrl-K | Open channel quick switcher<br> |
| P | Open publish form |
| ? | Open help |
| c | View channel of current item |
| p | View profile of current item |
Binary file added media/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0c89129

Please sign in to comment.