32 Commits

Author SHA1 Message Date
sunglocto 6c3195b029 Merge branch 'master' of https://github.com/sunglocto/pi-im 2025-08-08 10:26:21 +01:00
sunglocto 5b5d4656aa Put all greek letters in alphabetical order and capitalize them, except for Pi for obvious reasons 2025-08-08 10:26:14 +01:00
sunglocto 3afa1e7e38 Update README.md 2025-08-08 07:59:19 +00:00
sunglocto ece04e1c36 Fix artifacts which broke due to renamed application name 2025-08-07 23:27:11 +01:00
sunglocto 52e38e7e66 Format code 2025-08-07 23:12:40 +01:00
sunglocto 59d83cb185 Add identicons 2025-08-07 23:11:56 +01:00
sunglocto 4015107de0 Continue last commit 2025-08-07 22:29:40 +01:00
sunglocto 150f42bc58 Begin seperation of XMPP and UI 2025-08-07 21:53:28 +01:00
sunglocto 3d6f835d4f Add Delta menu 2025-08-07 21:13:56 +01:00
sunglocto 922bc1d7cf Some changes 2025-08-07 11:50:50 +01:00
sunglocto a61d3090e1 Disable all mardown support in preparation for a better solution 2025-08-07 06:50:23 +01:00
sunglocto 215839d833 Change name to pi-im everywhere 2025-08-07 06:43:09 +01:00
sunglocto d7264e91f7 Change name to pi-im everywhere 2025-08-07 06:42:59 +01:00
sunglocto 93d3bb20d2 Add more testimonials 2025-08-06 21:05:15 +00:00
sunglocto 181b91edb4 dont send a message if entry is empty - Fixes #7 2025-08-06 21:59:49 +01:00
sunglocto ca6bda7950 Do not show unknown state - Fixes #5 2025-08-06 21:39:27 +01:00
sunglocto 14cda04e06 i am an idiot 2025-08-06 20:04:14 +01:00
sunglocto 47d93ffe0e Fix 1:1 dms, move pi.xml to ~/.config/fyne/pi-ism/Documents/pi.xml (or other location) to decrease platform dependency, add support for corrections, and re-enable classic history along with a bunch of other changes 2025-08-06 19:32:37 +01:00
sunglocto 3c84dd7702 format code 2025-08-06 11:00:22 +01:00
sunglocto dcc3baaf02 Merge branch 'master' of https://github.com/sunglocto/pi 2025-08-06 10:55:14 +01:00
sunglocto 362930c5d5 Fix file uploads, and allow using Shift+Enter keybind to send a message 2025-08-06 10:55:06 +01:00
sunglocto c6bd18ef9c Update README.md 2025-08-06 09:29:30 +00:00
sunglocto 9f57d6688b General code changes + new pane 2025-08-06 10:27:27 +01:00
sunglocto 13d6041711 Add extra information + fix grammar mistake in readme 2025-08-06 00:22:32 +01:00
sunglocto d1521c9704 funny 2025-08-06 00:16:50 +01:00
sunglocto 20888a4e60 artifacts attempt no.1 2025-08-06 00:12:17 +01:00
sunglocto e4300d9282 funky 2025-08-06 00:07:54 +01:00
sunglocto 12e4a064d6 idk 2025-08-05 23:54:14 +01:00
sunglocto 2190896442 Edit README.md and bump deps so hopefully CI will work 2025-08-05 23:52:35 +01:00
sunglocto d1e67df750 Idfk read the commits 2025-08-05 21:00:16 +01:00
sunglocto e15a6424bb Fully remove all JSON support 2025-08-05 17:49:29 +01:00
sunglocto 64d1c420a2 Format code 2025-08-05 16:32:55 +01:00
6 changed files with 560 additions and 274 deletions
+8 -4
View File
@@ -1,7 +1,7 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
name: build this now
on:
push:
@@ -24,7 +24,11 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxxf86vm-dev
- name: Build
run: go build -v ./...
run: go build .
- name: Artifact
uses: actions/upload-artifact@v4
with:
name: pi-binary
path: pi-im
- name: Test
run: go test -v ./...
+1 -1
View File
@@ -26,7 +26,7 @@ go.work.sum
# env file
.env
pi.json
pi.xml
pi
# Editor/IDE
# .idea/
+53 -37
View File
@@ -1,14 +1,17 @@
<center>
<img src="https://github.com/sunglocto/pi/blob/255bc3749c089e3945871ddf19dd17d14a83f9ff/pi.png">
<img width="100" height="100" src="https://github.com/sunglocto/pi/blob/255bc3749c089e3945871ddf19dd17d14a83f9ff/pi.png">
</center>
# π
[![Go](https://github.com/sunglocto/pi/actions/workflows/go.yml/badge.svg)](https://github.com/sunglocto/pi/actions/workflows/go.yml)
[![build this now](https://github.com/sunglocto/pi/actions/workflows/go.yml/badge.svg)](https://github.com/sunglocto/pi/actions/workflows/go.yml)
<img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/9e2d9209-6ad5-4f22-94d0-4cc18c835372" />
## the XMPP client from hell
> it's 10% code. 20% ai
Experimental and extremely weird XMPP client made with Go. No solicitors.
Experimental and extremely weird XMPP client written in Go. No solicitors.
pi is currently pre-pre-pre-pre alpha software which you should not use right now.
pi is currently pre-pre-pre-pre alpha software which you should not use as your primary XMPP client.
pi uses [Fyne](https://fyne.io) for the frontend and uses the [Oasis SDK](https://github.com/jjj333-p/oasis-sdk) for XMPP functionality.
@@ -20,35 +23,27 @@ pi is an extremely opinionated client. It aims to have as little extra windows a
When you launch pi, you will be greeted with a create account screen. You will then be able to enter your XMPP account details and then relaunch the application to log in.
If you want to add MUCs or DMs, you must configure the program. Here is the general idea:
If you want to add MUCs or DMs, you must configure the program by editing the pi.xml file. Here is an example configuration:
```json
{
"Login": {
"Host": "example.com:5222",
"User": "user@example.com",
"Password": "123456",
"DisplayName": "user",
"NoTLS": false,
"StartTLS": true,
"Mucs": [
"room1@group.example.com",
"room2@group.example.com"
]
},
"DMs": [
"mike@example.com",
"louis@example.com"
],
"Notifications": false
}
```xml
<piConfig>
<Login>
<Host>example.com:5222</Host>
<User>user@example.com</User>
<Password>123456789</Password>
<DisplayName>sunglocto</DisplayName>
<TLSoff>false</TLSoff>
<StartTLS>true</StartTLS>
<MucsToJoin>room1@muc.example.com</MucsToJoin>
<MucsToJoin>room2@muc.example.com</MucsToJoin>
</Login>
<Notifications>true</Notifications>
</piConfig>
```
Edit this file as necessary.
Currently joining and saving DM tabs is not supported, nor is getting avatars, reactions or encryption.
Currently joining and saving DM tabs is not supported, nor is getting avatars, reactions, encryption of media embed.
As of writing, pi supports basic message sending and receiving, replies and file upload.
As of writing, pi supports basic message sending and receiving, replies and ~~file upload~~.
## να χτίσω
@@ -64,21 +59,42 @@ git clone https://github.com/sunglocto/pi
cd pi
go mod tidy
go build .
vim pi.json
./pi
```
> Uh, Windows???
Eventually. Don't count on it.
Fyne has first-class support for Windows and none of my dependencies are platform dependent. I've built this app for Android before. If you compile it, it will most likely work with no issues.
Static executable snapshots are also provided for GNU/Linux systems.
Static executable snapshots are also provided for GNU/Linux systems, and CI runs on every commit, producing a binary on every successful build. You're welcome.
## χρήση
(usage)
TODO
## υποστήριξη
(support)
# επιπλέον
You can file an issue and explain the problem you are having.
If you would like a more instant method of communication, join the [pi XMPP room.](xmpp:pi@room.sunglocto.net?join)
## μαρτυρίες
(testimonials)
From fellow insane and schizophrenic XMPP users:
> anyways this is your "just IM" client things ig.
> this looks like shit
> fyne is the best UI toolkit (sarcastic)
> i am going to explode you
> pi devstream when
<img width="361" height="66" alt="image" src="https://github.com/user-attachments/assets/5a926f6b-1005-4795-a6ef-4e0538bb4d5a" />
<img width="316" height="73" alt="image" src="https://github.com/user-attachments/assets/52309c60-8110-43eb-9c45-56c9cfd82cc4" />
## επιπλέον
(extra)
Pi version numbers are the digits of Pi followed by a letter indicating the phase of development the program is in.
@@ -91,6 +107,6 @@ Is the third version produced in the alpha phase.
The digits of Pi will reset back to `3` when moving to a new phase.
If the number gets too long, it will reset to one digit of 2π. Once that gets to long, it will be digits of 3π and etc.
If the number gets too long, it will reset to one digit of 2π. Once that gets too long, it will be digits of 3π and etc.
Named after [Psi](https://github.com/psi-im/psi).
+2 -3
View File
@@ -1,11 +1,11 @@
module pi
module pi-im
go 1.24.5
require (
fyne.io/fyne/v2 v2.6.2
fyne.io/x/fyne v0.0.0-20250418202416-58a230ad1acb
github.com/mbaklor/fyne-catppuccin v0.0.2
github.com/rrivera/identicon v0.0.0-20240116195454-d5ba35832c0d
mellium.im/xmpp v0.22.0
pain.agency/oasis-sdk v0.0.0-20250805052243-df6be3f9f629
)
@@ -13,7 +13,6 @@ require (
require (
fyne.io/systray v1.11.0 // indirect
github.com/BurntSushi/toml v1.5.0 // indirect
github.com/catppuccin/go v0.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fredbi/uri v1.1.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
+2 -4
View File
@@ -6,8 +6,6 @@ fyne.io/x/fyne v0.0.0-20250418202416-58a230ad1acb h1:2BazNmb/kwgqRdvE9L+NgW8sfoW
fyne.io/x/fyne v0.0.0-20250418202416-58a230ad1acb/go.mod h1:u3LF1EkElytjOT8OHxft16trctGndF9qpsoH6YIDOUU=
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
github.com/catppuccin/go v0.3.0 h1:d+0/YicIq+hSTo5oPuRi5kOpqkVA5tAsU6dNhvRu+aY=
github.com/catppuccin/go v0.3.0/go.mod h1:8IHJuMGaUUjQM82qBrGNBv7LFq6JI3NnQCF6MOlZjpc=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/felixge/fgprof v0.9.3 h1:VvyZxILNuCiUCSXtPtYmmtGvb65nqXh2QFWc0Wpf2/g=
@@ -50,8 +48,6 @@ github.com/jsummers/gobmp v0.0.0-20230614200233-a9de23ed2e25 h1:YLvr1eE6cdCqjOe9
github.com/jsummers/gobmp v0.0.0-20230614200233-a9de23ed2e25/go.mod h1:kLgvv7o6UM+0QSf0QjAse3wReFDsb9qbZJdfexWlrQw=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/mbaklor/fyne-catppuccin v0.0.2 h1:yMNnYkmFwjKJkFQvCd1uNKZDs07ZC85wTkedTIGcViE=
github.com/mbaklor/fyne-catppuccin v0.0.2/go.mod h1:ZBIy4dV1yMj+7oEaZYkXm5OfYESmXuPWwNcuUmD1Njo=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
github.com/nicksnyder/go-i18n/v2 v2.6.0 h1:C/m2NNWNiTB6SK4Ao8df5EWm3JETSTIGNXBpMJTxzxQ=
@@ -62,6 +58,8 @@ github.com/pkg/profile v1.7.0 h1:hnbDkaNWPCLMO9wGLdBFTIZvzDrDfBM2072E1S9gJkA=
github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rrivera/identicon v0.0.0-20240116195454-d5ba35832c0d h1:l3+2LWCbVxn5itfvXAfH9n4YL9jh8l1g5zcncbIc1cs=
github.com/rrivera/identicon v0.0.0-20240116195454-d5ba35832c0d/go.mod h1:TbpErkob6SY7cyozRVSGoB3OlO2qOAgVN8O3KAJ4fMI=
github.com/rymdport/portal v0.4.2 h1:7jKRSemwlTyVHHrTGgQg7gmNPJs88xkbKcIL3NlcmSU=
github.com/rymdport/portal v0.4.2/go.mod h1:kFF4jslnJ8pD5uCi17brj/ODlfIidOxlgUDTO5ncnC4=
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c h1:km8GpoQut05eY3GiYWEedbTT0qnSxrCjsVbb7yKY1KE=
+494 -225
View File
File diff suppressed because it is too large Load Diff