{"id":16608065,"url":"https://github.com/ikskuh/zig-gemtext","last_synced_at":"2025-03-21T14:30:55.329Z","repository":{"id":68601304,"uuid":"344644010","full_name":"ikskuh/zig-gemtext","owner":"ikskuh","description":"A zig library to manipulate gemini text files","archived":false,"fork":false,"pushed_at":"2024-10-04T10:39:13.000Z","size":163,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T02:02:59.015Z","etag":null,"topics":["gemini","gemini-language","gemini-protocol","markup","markup-converter","parser","zig","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ikskuh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"MasterQ32"}},"created_at":"2021-03-05T00:07:29.000Z","updated_at":"2025-01-30T09:38:05.000Z","dependencies_parsed_at":"2024-10-28T10:29:27.930Z","dependency_job_id":"05bcfeba-96c5-43f9-9e20-00b21bb8419c","html_url":"https://github.com/ikskuh/zig-gemtext","commit_stats":null,"previous_names":["ikskuh/zig-gemtext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fzig-gemtext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fzig-gemtext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fzig-gemtext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fzig-gemtext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikskuh","download_url":"https://codeload.github.com/ikskuh/zig-gemtext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244815091,"owners_count":20514884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gemini","gemini-language","gemini-protocol","markup","markup-converter","parser","zig","zig-package","ziglang"],"created_at":"2024-10-12T01:24:59.216Z","updated_at":"2025-03-21T14:30:55.048Z","avatar_url":"https://github.com/ikskuh.png","language":"Zig","funding_links":["https://github.com/sponsors/MasterQ32"],"categories":[],"sub_categories":[],"readme":"# Gemini Text Processor\n\nThis is a library and a tool to manipulate [gemini text files](https://gemini.circumlunar.space/docs/specification.html).\n\nIt provides both an easy-to-use API as well as a streaming parser with minimal allocation requirements and a proper separation between temporary allocations required for parsing and allocations for returned text fragments.\n\nThe library is thoroughly tested with a lot of gemini text edge cases and all (tested) cases are handled reasonably.\n\n## Features\n\n- Fully spec-compliant gemini text parsing\n- Non-blocking streaming parser\n- Provides both a convenient [Zig](src/gemtext.zig) and [C](include/gemtext.h) API\n- Rendering to several formats\n  - Gemini text\n  - HTML\n  - Markdown\n  - RTF\n\n## Example\n\nThis is a simple example that parses a gemini file and converts it into a HTML file.\n\n```zig\npub fn main() !void {\n    var document = try gemtext.Document.parse(\n      std.heap.page_allocator,\n      std.io.getStdIn().reader(),\n    );\n    defer document.deinit();\n\n    try gemtext.renderer.html(\n      document.fragments.items, \n      std.io.getStdOut().writer(),\n    );\n}\n```\n\nMore examples can be found the the examples folder:\n- `gem2html` ([C](examples/gem2html.c), [Zig](examples/gem2html.zig))\n- `gem2md` ([C](examples/gem2md.c), [Zig](examples/gem2md.zig))\n- `streaming-parser` ([C](examples/streaming-parser.c), [Zig](examples/streaming-parser.zig))","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikskuh%2Fzig-gemtext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikskuh%2Fzig-gemtext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikskuh%2Fzig-gemtext/lists"}