{"id":13767698,"url":"https://github.com/ncitron/oframl","last_synced_at":"2025-07-10T12:30:38.425Z","repository":{"id":220446858,"uuid":"751664243","full_name":"ncitron/oframl","owner":"ncitron","description":"A framework for building Farcaster Frames in OCaml","archived":false,"fork":false,"pushed_at":"2024-02-04T02:36:50.000Z","size":16,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T13:38:06.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/ncitron.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}},"created_at":"2024-02-02T03:53:31.000Z","updated_at":"2024-03-20T03:39:40.000Z","dependencies_parsed_at":"2024-08-03T16:05:45.071Z","dependency_job_id":null,"html_url":"https://github.com/ncitron/oframl","commit_stats":null,"previous_names":["ncitron/oframl"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ncitron/oframl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncitron%2Foframl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncitron%2Foframl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncitron%2Foframl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncitron%2Foframl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncitron","download_url":"https://codeload.github.com/ncitron/oframl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncitron%2Foframl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264578848,"owners_count":23631552,"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":[],"created_at":"2024-08-03T16:01:11.131Z","updated_at":"2025-07-10T12:30:38.125Z","avatar_url":"https://github.com/ncitron.png","language":"OCaml","readme":"## Oframl\nOframl is a simple framework for building Farcaster Frames in OCaml.\n\n## Usage\n\n```OCaml\nopen Oframl\n\nlet image_handler (data : string) =\n  let str = if String.equal data \"initial\" then\n    \"Click to fetch FID\"\n  else\n    [%string \"FID: %{data}\"]\n  in\n  [%string\n    {|\u003csvg width='191' height='100' xmlns='http://www.w3.org/2000/svg'\u003e\n        \u003crect width='100%' height='100%' fill='black'/\u003e\n        \u003ctext x='95.5' y='50' text-anchor='middle'\n          dominant-baseline='middle'\n          font-family='Arial' font-size='12' fill='white'\u003e\n          %{str}\n        \u003c/text\u003e\n      \u003c/svg\u003e|}]\n;;\n\nlet frame_handler (): frame = \n  { title = \"FID Check\"\n  ; image_extra_data = \"initial\"\n  ; post_extra_data = \"\"\n  ; buttons = [ { content = \"Check FID\" } ]\n  }\n;;\n\nlet post_handler (act : action) (_data : string) : frame =\n  { title = \"FID Check\"\n  ; image_extra_data = string_of_int act.fid\n  ; post_extra_data = \"\"\n  ; buttons = []\n  }\n;;\n\nlet base_url = \"https://df78-72-69-118-50.ngrok-free.app\" in\nlet start = Server.start base_url frame_handler post_handler image_handler in\nLwt_main.run start\n```\n\n## Examples\nTo view more examples see [examples](./examples)\n","funding_links":[],"categories":["Useful Tools \u0026 Libraries","Developer Resources"],"sub_categories":["Boilerplate repos","Farcaster Frames"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncitron%2Foframl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncitron%2Foframl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncitron%2Foframl/lists"}