STXT: Introduction
STXT is a Human-First language, where documents
are readable and expressive,
and at the same time reliable for machines.
Documents
STXT is a hierarchical and semantic textual format aimed at:
- Representing documents and data clearly.
- Being extremely simple to read and write.
- Being trivial to parse in any language.
- Allowing both structured content and free text.
- Applying content rules via
@stxt.schemaor@stxt.template.
An STXT document balances human clarity with an explicit semantic structure, ideal for documents, wikis, and configurations:
Email: From: John Smith To: Mery Adams Cc: Keyla Brown Title: Project report Body Content >> Hello Mery! The book is finished!
Documents with namespace and schemas
STXT allows the use of namespaces, as well as schemas and templates to validate content.
An Email document from the com.example.docs namespace:
Email (com.example.docs): From: John Smith To: Mery Adams Cc: Keyla Brown Title: Project report Body Content >> Hello Mery!! The book is finished!!
And the template definition:
Template (@stxt.template): com.example.docs Structure >> Email: From: EMAIL To: EMAIL Cc: EMAIL Bcc: EMAIL Title: (?) Body Content: (1) TEXT Metadata (com.google): (?)