{"id":15427431,"url":"https://github.com/pryority/farframe","last_synced_at":"2026-04-13T21:03:39.214Z","repository":{"id":219797773,"uuid":"749931870","full_name":"Pryority/farframe","owner":"Pryority","description":"My attempt at building a Farcaster Frame. ","archived":false,"fork":false,"pushed_at":"2024-01-29T18:34:46.000Z","size":505,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T04:47:55.607Z","etag":null,"topics":["bun","elysia","farcaster","farcaster-frames","opengraph"],"latest_commit_sha":null,"homepage":"https://farframe.fly.dev","language":"TypeScript","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/Pryority.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":"2024-01-29T17:17:07.000Z","updated_at":"2024-12-30T00:41:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e63b3b7-0ec9-4942-86a3-a4c5e1f9ec1b","html_url":"https://github.com/Pryority/farframe","commit_stats":null,"previous_names":["pryority/farframe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pryority%2Ffarframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pryority%2Ffarframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pryority%2Ffarframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pryority%2Ffarframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pryority","download_url":"https://codeload.github.com/Pryority/farframe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245972670,"owners_count":20702721,"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":["bun","elysia","farcaster","farcaster-frames","opengraph"],"created_at":"2024-10-01T18:00:17.255Z","updated_at":"2026-04-13T21:03:39.182Z","avatar_url":"https://github.com/Pryority.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FarFrame\n\nMy attempt at building a Farcaster Frame. Less than 100 LOC.\n\n![Demo](./demo.png)\n\n## Made using Elysia.js\n\n```Typescript\nconst app = new Elysia()\n  .use(staticPlugin())\n  .use(html())\n  .get(\n    \"/\",\n    () =\u003e `\n    \u003c!DOCTYPE html\u003e\n    \u003chtml lang=\"en\"\u003e\n      \u003chead\u003e\n        \u003cmeta charset=\"UTF-8\"\u003e\n        \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n        \u003ctitle\u003eFarFrame\u003c/title\u003e\n        \u003cmeta property=\"og:title\" content=\"Frame\" /\u003e\n        \u003cmeta property=\"og:image\" content=\"${BASE_URL}/public/initial.png\" /\u003e\n        \u003cmeta property=\"fc:frame\" content=\"vNext\" /\u003e\n        \u003cmeta property=\"fc:frame:image\" content=\"${BASE_URL}/public/initial.png\" /\u003e\n        \u003cmeta property=\"fc:frame:button:1\" content=\"Roll\" /\u003e\n        \u003cmeta property=\"fc:frame:post_url\" content=\"${BASE_URL}/api/frame\" /\u003e\n      \u003c/head\u003e\n      \u003cbody\u003e\n        \u003ch1\u003eFarFrame\u003c/h1\u003e\n      \u003c/body\u003e\n    \u003c/html\u003e`\n  )\n  .post(\"/api/frame\", async ({ request }) =\u003e {\n    try {\n      await request.json();\n    } catch (error) {\n      return new Response(\n        JSON.stringify({ error: \"Invalid JSON in request body\" }),\n        {\n          status: 400,\n          headers: { \"Content-Type\": \"application/json\" },\n        }\n      );\n    }\n\n    return new Response(\n      `\u003c!DOCTYPE html\u003e\n        \u003chtml lang=\"en\"\u003e\n        \u003chead\u003e\n          \u003cmeta property=\"fc:frame\" content=\"vNext\" /\u003e\n          \u003cmeta property=\"fc:frame:image\" content=\"${BASE_URL}/public/roll.png\" /\u003e\n          \u003cmeta property=\"fc:frame:post_url\" content=\"${BASE_URL}/api/frame\" /\u003e\n        \u003c/head\u003e\n        \u003c/html\u003e`,\n      {\n        status: 200,\n        headers: { \"Content-Type\": \"text/html\" },\n      }\n    );\n  })\n  .listen(PORT!);\n```\n\n### Inspirations\n\n- [gskril](https://github.com/gskril)'s [farcast-frame](https://github.com/gskril/farcaster-frame)\n- [Zizzamia](https://github.com/Zizzamia)'s [a-frame-in-100-lines](https://github.com/Zizzamia/a-frame-in-100-lines)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpryority%2Ffarframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpryority%2Ffarframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpryority%2Ffarframe/lists"}