{"id":20535027,"url":"https://github.com/jhuntdev/blest-angular","last_synced_at":"2026-02-14T16:30:45.643Z","repository":{"id":178404662,"uuid":"661836933","full_name":"jhuntdev/blest-angular","owner":"jhuntdev","description":"An Angular 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:48.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-26T15:57:10.210Z","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/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-07-03T19:09:13.000Z","updated_at":"2024-12-27T17:13:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a2d3e94-a9f9-46d9-9d7f-f29067895866","html_url":"https://github.com/jhuntdev/blest-angular","commit_stats":null,"previous_names":["jhuntdev/blest-angular"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jhuntdev/blest-angular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhuntdev","download_url":"https://codeload.github.com/jhuntdev/blest-angular/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhuntdev%2Fblest-angular/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29449369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-16T00:29:02.479Z","updated_at":"2026-02-14T16:30:45.621Z","avatar_url":"https://github.com/jhuntdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BLEST Angular\n\nAn Angular 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 Angular from npm\n\nWith npm:\n```bash\nnpm install --save blest-angular\n```\nor using yarn:\n```bash\nyarn add blest-angular\n```\n\n## Usage\n\nAdd `BlestService` to your AppModule providers.\n\n```typescript\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { BlestService } from 'blest-angular';\n\nimport { AppComponent } from './app.component';\nimport { ExampleComponent } from './example/example.component';\n\n@NgModule({\n  declarations: [\n    AppComponent,\n    ExampleComponent\n  ],\n  imports: [\n    BrowserModule\n  ],\n  providers: [\n    { provide: BlestService, useFactory: () =\u003e new BlestService({ url: 'http://localhost:8080', headers: { 'Authorization': 'Bearer token' } }) },\n  ],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nInclude `blestService` in your component constructor and use its `request` method to perform requests.\n\n```typescript\nimport { Component } from '@angular/core';\nimport { BlestService } from 'blest-angular';\n\n@Component({\n  selector: 'example-component',\n  templateUrl: './example.component.html',\n  styleUrls: ['./example.component.scss']\n})\nexport class ExampleComponent {\n\n  data:any = null;\n  error:any = null;\n  loading:boolean = false;\n\n  constructor(private blestService: BlestService) {}\n\n  ngOnInit(): void {\n    this.blestService.request('listItems', { limit: 24 }, { select: ['nodes', ['pageInfo', ['endCursor', 'hasNextPage']]] })\n    .subscribe({\n      next: (response) =\u003e {\n        this.data = response.data;\n        this.error = response.error;\n        this.loading = response.loading;\n      },\n      error: (error) =\u003e {\n        console.error(error);\n      }\n    })\n  }\n\n}\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-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhuntdev%2Fblest-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhuntdev%2Fblest-angular/lists"}