An open API service indexing awesome lists of open source software.

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

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__x

Single 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 WIP

Build 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 WIP

Examples 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 html

TODO Try one of simpler compilers: https://suckless.org/rocks/