Skip to content

juleswhi/sapphire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sapphire Protocol

Custom protocol for data communication based on TCP

REQUEST

VERSION: 1 BYTE TYPE: 1 BYTE - GET / POST etc { GET = 0, GIVE = 1, INCR = 2 }

HOST: 4 BYTE INCREMENTAL: 1 BYTE

PATH_LEN: 2 BYTE PATH: * BYTE

CONTENT_LEN: 4 BYTE CONTENT_TYPE: 1 BYTE CONTENT: * BYTE

RESPONSE

VERSION: 1 BYTE TYPE: 1 BYTE

STATUS CODE: 1 BYTE

INCREMENTAL: 1 BYTE INCREMENTAL_IDENTIFIER: 4 BYTE

DATE_LEN: 2 BYTE DATE: * BYTE

CONTENT_LEN: 4 BYTE CONTENT_TYPE: 1 BYTE CONTENT: * BYTE

  • Server

  • Custom url = saph://{url}

  • Github Addy - "repo.user.github"

  • Front end

  • GTK - prolly

  • Language ??? C / Rust / Golang?

  • Render markdown

  • WASM?

Status Codes

  • 20 / OK
  • 30 / SERVER ERROR
  • 31 / RESOURCE NOT FOUND

Markdown Flavour

Normal markdown BUT

::{ script.lua }

  • To source a script

-> Name *To name a component

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages