Skip to content

ir33k/gmix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

Releases

No releases published

Packages

No packages published