{"id":16716822,"url":"https://github.com/fxfactorial/ocaml-emoji","last_synced_at":"2025-10-09T01:33:43.643Z","repository":{"id":16296172,"uuid":"79681498","full_name":"fxfactorial/ocaml-emoji","owner":"fxfactorial","description":"Emojis in OCaml, use them in your CLIs or whatever","archived":false,"fork":false,"pushed_at":"2024-05-24T00:24:58.000Z","size":968,"stargazers_count":27,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-14T01:31:52.841Z","etag":null,"topics":["cli","cute","emoji","ocaml"],"latest_commit_sha":null,"homepage":"hyegar.com/ocaml-emoji","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fxfactorial.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}},"created_at":"2017-01-22T00:12:29.000Z","updated_at":"2024-05-24T00:28:27.000Z","dependencies_parsed_at":"2024-10-28T16:31:22.395Z","dependency_job_id":null,"html_url":"https://github.com/fxfactorial/ocaml-emoji","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxfactorial%2Focaml-emoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxfactorial%2Focaml-emoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxfactorial%2Focaml-emoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxfactorial%2Focaml-emoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fxfactorial","download_url":"https://codeload.github.com/fxfactorial/ocaml-emoji/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234837046,"owners_count":18894523,"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":["cli","cute","emoji","ocaml"],"created_at":"2024-10-12T21:27:59.017Z","updated_at":"2025-10-01T07:31:05.968Z","avatar_url":"https://github.com/fxfactorial.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emoji\n\nOCaml library providing byte sequences of all the Unicode (v17.0) emoji\ncharacters and sequences\n\n```\n$ opam install emoji\n```\n\nYou can see them by printing to the screen: \n```ocaml\n# Emoji.distorted_face;;\n- : string = \"🫪\"\n# Emoji.hairy_creature;;\n- : string = \"🫈\"\n# Emoji.orca;;\n- : string = \"🫍\"\n```\n\nYou can also get all emojis from the same category or subcategory:\n```ocaml\n# let best_animals = Emoji.sub_category_animal_reptile;;\nval best_animals : string array =\n  [|\"🐊\"; \"🐉\"; \"🐲\"; \"🦎\"; \"🦕\"; \"🐍\"; \"🦖\"; \"🐢\"|]\n```\n\nUsing `ocp-browser` shows the emoji\n\n![ocp-browser screenshot](./ocp-browser-emoji.png)\n\n# Development \n\nTo generate `emoji.ml`, first update the source html files:\n```\n$ wget \"https://www.unicode.org/emoji/charts/full-emoji-list.html\"\n$ wget \"https://www.unicode.org/emoji/charts/full-emoji-modifiers.html\"\n```\n\nthen run:\n```\n$ dune exec gencode/gencode.exe \u003e src/emoji.ml\n```\ntest with `dune runtest`, you can then `dune promote` to apply [mdx](https://github.com/realworldocaml/mdx) changes to keep this file up to date.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxfactorial%2Focaml-emoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffxfactorial%2Focaml-emoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxfactorial%2Focaml-emoji/lists"}