https://github.com/ir33k/gmix
Gemini protocol related programs
https://github.com/ir33k/gmix
c gemini gemini-client gemini-protocol
Last synced: 3 months ago
JSON representation
Gemini protocol related programs
- Host: GitHub
- URL: https://github.com/ir33k/gmix
- Owner: ir33k
- Created: 2022-05-07T17:11:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-05T14:16:37.000Z (over 2 years ago)
- Last Synced: 2025-01-08T16:30:22.766Z (5 months ago)
- Topics: c, gemini, gemini-client, gemini-protocol
- Language: C
- Homepage:
- Size: 170 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
LIBS AND PROGRAMS FOR GEMINI INTERNET PROTOCOL
Written in c89 for fun in NOT spare time instead of doing actual work
AKA procrastination via programming. Please, send help X__xSingle header libs:
gmiu.h Parse, create and validate Gemini URI
gmif.h Fetch Gemini URI server response
gmip.h Parse text/gemini to: text, HTML, Markdown
gmir.h Parse Gemini response header WIPBuild all programs and run unit tests:
$ ./build # Dependencies: stdlib and OpenSSL /)_/)
(-.- )
Programs (run with -h for help): (")(")_o$ ./gmiu # URL parser
$ ./gmif # Fetch URL
$ ./gmip # Parse text/gemini to gmi/std/md/html
$ ./gmic # Client, interactive TUI WIPExamples of using programs together by passing parsed URL to fetch
program and piping result through parser.$ ./gmif $(./gmiu -f tilde.pink) | ./gmip
$ ./gmif $(./gmiu -f heathens.club) | ./gmip -f md
$ ./gmif $(./gmiu -f rawtext.club) | ./gmip -f htmlTODO Try one of simpler compilers: https://suckless.org/rocks/