{"id":16560735,"url":"https://github.com/mathieu2301/blast-api","last_synced_at":"2026-06-01T02:31:35.193Z","repository":{"id":92266273,"uuid":"244533007","full_name":"Mathieu2301/blast-api","owner":"Mathieu2301","description":"Allows you to use global 'serverless' events in JavaScript (Node or Web)","archived":false,"fork":false,"pushed_at":"2020-03-24T11:37:28.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-07T10:07:23.205Z","etag":null,"topics":["blast","blast-api","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Mathieu2301.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":"2020-03-03T03:31:37.000Z","updated_at":"2020-03-26T11:12:00.000Z","dependencies_parsed_at":"2023-06-08T07:15:48.606Z","dependency_job_id":null,"html_url":"https://github.com/Mathieu2301/blast-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mathieu2301/blast-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2Fblast-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2Fblast-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2Fblast-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2Fblast-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mathieu2301","download_url":"https://codeload.github.com/Mathieu2301/blast-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2Fblast-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33757790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["blast","blast-api","javascript"],"created_at":"2024-10-11T20:29:53.205Z","updated_at":"2026-06-01T02:31:35.175Z","avatar_url":"https://github.com/Mathieu2301.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blast API\n Allows you to use global 'serverless' events in JavaScript (Node or Web)\n\n## Installation\n\n```\nnpm i blast-api\n```\n\n## Examples (Projects using Blast)\n- [MiBand Chat](https://github.com/Mathieu2301/miband-chat/)\n\n## Use \n(Check ``test.js`` file)\n\n\n### First, import Blast lib\n\n```javascript\nconst Blast = require('./blast')\n```\n\n### Then, init the client\n\nUsing an username and a password OR just an unique app token :\n```javascript\nconst client = new Blast({\n  username: 'username_test', // as you want\n  password: 'password_test', // as you want\n  // OR\n  app: 'XXXXXXXXXXXXXX', // as you want\n  \n  url: 'https://your-blast-server/', // (Optional) Default server is mine\n})\n```\n\n### Listen to an event\n\n```javascript\nclient.on('test', (...data) =\u003e {\n  console.log(...data)\n})\n```\n\n### Emit examples\n\n```javascript\nclient.emit('test', \"It works\") // =\u003e \"It Works\"\n\nclient.emit('test', \"It works\", \"OMG\") // =\u003e \"It Works OMG\"\n\nclient.emit('test', {\n  message: \"It works\",\n  reaction: \"OMG\"\n}) // =\u003e Object {message: \"It works\", reaction: \"OMG\"}\n```\n___\n## Problems\n\n If you have errors in console or unwanted behavior please create an issue [here](https://github.com/Mathieu2301/blast-api/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu2301%2Fblast-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathieu2301%2Fblast-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu2301%2Fblast-api/lists"}