{"id":20535002,"url":"https://github.com/jhuntdev/blest-vue","last_synced_at":"2026-02-06T03:03:21.103Z","repository":{"id":176568289,"uuid":"655801457","full_name":"jhuntdev/blest-vue","owner":"jhuntdev","description":"A Vue client for BLEST (Batch-able, Lightweight, Encrypted State Transfer), an improved communication protocol for web APIs which leverages JSON, supports request batching by default, and provides a modern alternative to REST.","archived":false,"fork":false,"pushed_at":"2024-12-27T17:13:37.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T21:36:15.455Z","etag":null,"topics":["api","blest","client","vue","vuejs"],"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/jhuntdev.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}},"created_at":"2023-06-19T16:15:09.000Z","updated_at":"2024-12-27T17:13:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"cda8d780-391a-4adf-8f7d-dc97213195ec","html_url":"https://github.com/jhuntdev/blest-vue","commit_stats":null,"previous_names":["jhuntdev/blest-vue"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jhuntdev/blest-vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhuntdev","download_url":"https://codeload.github.com/jhuntdev/blest-vue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-vue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29147409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","blest","client","vue","vuejs"],"created_at":"2024-11-16T00:28:56.216Z","updated_at":"2026-02-06T03:03:21.087Z","avatar_url":"https://github.com/jhuntdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BLEST Vue\n\nA Vue client for BLEST (Batch-able, Lightweight, Encrypted State Transfer), an improved communication protocol for web APIs which leverages JSON, supports request batching by default, and provides a modern alternative to REST.\n\nTo learn more about BLEST, please visit the website: https://blest.jhunt.dev\n\n## Features\n\n- Built on JSON - Reduce parsing time and overhead\n- Request Batching - Save bandwidth and reduce load times\n- Compact Payloads - Save even more bandwidth\n- Single Endpoint - Reduce complexity and facilitate introspection\n- Fully Encrypted - Improve data privacy\n\n## Installation\n\nInstall BLEST Vue from npm\n\nWith npm:\n```bash\nnpm install --save blest-vue\n```\nor using yarn:\n```bash\nyarn add blest-vue\n```\n\n## Usage\n\nWrap your app (or just part of it) with `BlestProvider`.\n\n```html\n\u003ctemplate\u003e\n  \u003cBlestProvider url='http://localhost:8080' options={{ headers: { Authorization: 'Bearer token' } }}\u003e\n    \u003c!-- Your app here --\u003e\n  \u003c/BlestProvider\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { BlestProvider } from 'blest-vue'\nexport default {\n  data() {\n    return {\n    };\n  },\n  mounted() {\n  },\n  methods: {\n  },\n};\n\u003c/script\u003e\n```\n\nUse the `blestRequest` function to perform passive requests on mount and when parameters change.\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cp v-if=\"loading\"\u003eLoading...\u003c/p\u003e\n    \u003cp v-else-if=\"error\"\u003eError: {{ error.message }}\u003c/p\u003e\n    \u003cp v-else\u003e{{ JSON.stringify(data) }}\u003c/p\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { blestRequest } from 'blest-vue'\nexport default {\n  setup() {\n    const { data, error, loading } = blestRequest('listItems', { limit: 24 }, { select: ['edges', ['pageInfo', ['endCursor', 'hasNextPage']]] })\n\n    return { data, error, loading }\n  }\n};\n\u003c/script\u003e\n```\n\nUse the `blestCommand` function to generate a request function you can call when needed.\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003c!-- Your form here --\u003e\n    \u003cbutton v-on:click=\"handleSubmit()\"\u003eSubmit\u003c/button\u003e\n    \u003cp v-if=\"loading\"\u003eLoading...\u003c/p\u003e\n    \u003cp v-else-if=\"error\"\u003eError: {{ error.message }}\u003c/p\u003e\n    \u003cp v-else\u003e{{ JSON.stringify(data) }}\u003c/p\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { blestLazyRequest } from 'blest-vue'\nexport default {\n  setup() {\n    const [submitForm, { data, loading, error }] = blestLazyRequest('submitForm')\n\n    const handleSubmit = () =\u003e {\n      submitForm({\n        hello: 'World'\n      })\n    }\n\n    return { handleSubmit, data, loading, error }\n  }\n};\n\u003c/script\u003e\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhuntdev%2Fblest-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhuntdev%2Fblest-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhuntdev%2Fblest-vue/lists"}