{"id":51509508,"url":"https://github.com/murphsicles/mime","last_synced_at":"2026-07-08T04:30:57.327Z","repository":{"id":358484149,"uuid":"1240879301","full_name":"murphsicles/mime","owner":"murphsicles","description":"MIME type parsing for Zeta — Mime, TopLevel, SubLevel types and constants","archived":false,"fork":false,"pushed_at":"2026-05-17T15:14:48.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T17:37:32.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/murphsicles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-16T17:25:06.000Z","updated_at":"2026-05-17T15:14:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/murphsicles/mime","commit_stats":null,"previous_names":["murphsicles/mime"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/murphsicles/mime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fmime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fmime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fmime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fmime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murphsicles","download_url":"https://codeload.github.com/murphsicles/mime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fmime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35252324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-07-08T04:30:56.539Z","updated_at":"2026-07-08T04:30:57.314Z","avatar_url":"https://github.com/murphsicles.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# MIME — Media Type Parsing for Zeta\n\nA Zeta port of the Rust `mime` crate. Provides types for parsing and working with MIME media types (formerly known as MIME types).\n\n## Features\n\n- `Mime` type with `top_level()`, `sub_level()`, `get_param()` accessors\n- `MediaRange` for Accept header matching\n- `FromStr` parser from `\"text/plain\"`, `\"application/json; charset=utf-8\"`, etc.\n- Well-known MIME type constants: `TEXT_PLAIN`, `APPLICATION_JSON`, `IMAGE_SVG`, etc.\n- `Attr` and `Value` types for parameters\n\n## Usage\n\n```zeta\n// Parse a MIME type\nvar mime = try Mime.from_str(\"text/plain; charset=utf-8\");\n\n// Inspect parts\nassert_eq(mime.top_level(), TopLevel.text);\nassert_eq(mime.sub_level(), SubLevel.plain);\nassert_eq(mime.get_param(Attr.charset), Value.utf_8);\n\n// Use constants\nassert_eq(Mime.TEXT_PLAIN_UTF_8, mime);\n```\n\n## Constants\n\n```zeta\npub const TEXT_PLAIN: Mime = Mime.new(TopLevel.text, SubLevel.plain);\npub const APPLICATION_JSON: Mime = Mime.new(TopLevel.application, SubLevel.json);\npub const IMAGE_SVG: Mime = Mime.new(TopLevel.image, SubLevel.svg);\n// ... and many more\n```\n\n## Release Notes\n\n### v0.4.1 — MIME Type Parsing for Zeta\n\n- Initial Zeta port of `mime` v0.3.6 from crates.io\n- Full `Mime` type with parsing, comparison, and constants\n- `MediaRange` for matching Accept headers\n- `Attr`/`Value` parameter support\n- 100+ well-known MIME type constants\n- MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Fmime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurphsicles%2Fmime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Fmime/lists"}