{"id":16398105,"url":"https://github.com/hebilicious/vueflare","last_synced_at":"2025-07-22T21:04:52.471Z","repository":{"id":210813161,"uuid":"502879014","full_name":"Hebilicious/vueflare","owner":"Hebilicious","description":"POC Edge HTML Streaming Vue 3 Framework for Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2023-12-05T02:20:51.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T09:29:30.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Hebilicious.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},"funding":{"github":["Hebilicious"]}},"created_at":"2022-06-13T08:55:12.000Z","updated_at":"2023-04-02T16:17:39.000Z","dependencies_parsed_at":"2023-12-05T03:37:28.746Z","dependency_job_id":null,"html_url":"https://github.com/Hebilicious/vueflare","commit_stats":null,"previous_names":["hebilicious/vueflare"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hebilicious/vueflare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvueflare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvueflare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvueflare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvueflare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hebilicious","download_url":"https://codeload.github.com/Hebilicious/vueflare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hebilicious%2Fvueflare/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266572334,"owners_count":23950002,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2024-10-11T05:11:52.177Z","updated_at":"2025-07-22T21:04:52.451Z","avatar_url":"https://github.com/Hebilicious.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Hebilicious"],"categories":[],"sub_categories":[],"readme":"# Vueflare\n\n## TODO :\n\n- [x] Working POC on miniflare\n- [ ] Working deployed POC\n- [ ] Add Cloudflare Caching Control\n- [ ] Add Hydration islands\n- [ ] Add File routing\n\nOpinionated Edge Rendered Vue 3 Micro Framework for Cloudflare Workers to create blazing fast Progressive Web Applications.\n\n- HTML Streaming (Vue PipeToWebstream)\n- Cloudflare Workers (Wrangler 2, module syntax)\n- Modern Toolchain : Vue 3 + Typescript + Vite\n- Isomorphic PWA\n- Islands Architecture\n- Auto - import, File routing\n- Zero Config\n\n## Getting Started\n\nCreate a `/islands/Countdown.vue`\nThis is a client side component.\n\n```vue\n\u003cscript lang=\"ts\" setup\u003e\nconst { target } = defineProps\u003c{ target: string }\u003e()\nconst now = ref(new Date())\nlet timer\nonMounted(() =\u003e {\n  timer = setInterval(() =\u003e {\n    now.value = new Date()\n  }, 1000)\n})\nonUnmounted(() =\u003e {\n  clearInterval(timer)\n})\nwatch(target, () =\u003e {\n  if (now.value \u003e target) clearInterval(timer)\n})\nconst secondsLeft = computed(() =\u003e Math.floor((target.getTime() - now.value.getTime()) / 1000))\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cspan v-if=\"now \u003e target\"\u003eDone !\u003c/span\u003e\n  \u003cspan v-else\u003e {{ new Intl.RelativeTimeFormat(\"en-GB\").format(secondsLeft, \"seconds\") }} \u003c/span\u003e\n\u003c/template\u003e\n```\n\nCreate a dynamic page ...\n`/pages/[name].vue`\n\n```vue\n\u003cedge lang=\"ts\"\u003e\nconst { request, context, params } = useEdge({ swr: 60 }) // Revalidate every 60 seconds\nconst data = await fetch(\"https://name-api.com\", params.name) // Named parameters comes from vue-router\nconst realName = await data.json().name || \"Evan\"\nconst response = await context.vueflare({ realName })\nresponse.headers.set(\"X-Custom-Header\", \"VueFlare\")\nreturn response\n\u003c/edge\u003e\n\n\n\u003cscript lang=\"ts\" setup\u003e\nconst { realName } = getEdgeProps() //The props come from context.vueflare() in the edge block\nconst date = new Date()\ndate.setHours(date.getHours() + 1)\nconst target = date.toISOString()\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003ch1\u003eThis name {{ realName }} comes from the Edge !\u003ch1\u003e\n  \u003cform\u003e\n  \u003cinput type=\"text\" name=\"query\" :value=\"name\" /\u003e\n  \u003cbutton type=\"submit\"\u003eChange Name\u003c/button\u003e\n  \u003c/form\u003e\n  \u003cCountdown :target=\"target\" /\u003e\n\u003c/template\u003e\n```\n\n### Inspiration\n\n- Vitesse (antfu)\n- Iles (https://iles.pages.dev/)\n- Fresh (lucacasonato)\n- Vite plugin SSR (brillout)\n- Serverless PWA React Cloudflare Workers https://blog.cloudflare.com/serverless-pwa-react-cloudflare-workers/\n- Flarereact\n- Nitro (unjs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhebilicious%2Fvueflare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhebilicious%2Fvueflare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhebilicious%2Fvueflare/lists"}