{"id":17992791,"url":"https://github.com/leostera/blast64","last_synced_at":"2025-04-04T04:45:54.746Z","repository":{"id":141534805,"uuid":"66042369","full_name":"leostera/blast64","owner":"leostera","description":":zap: An apparently even faster base64 decoder for Chrome","archived":false,"fork":false,"pushed_at":"2018-05-19T02:54:07.000Z","size":239,"stargazers_count":6,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T20:43:36.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/leostera.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}},"created_at":"2016-08-19T01:24:29.000Z","updated_at":"2017-11-28T13:25:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"e74019d2-777c-4577-b362-2d5bf87adce7","html_url":"https://github.com/leostera/blast64","commit_stats":null,"previous_names":["leostera/blast64","ostera/blast64"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fblast64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fblast64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fblast64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fblast64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leostera","download_url":"https://codeload.github.com/leostera/blast64/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123099,"owners_count":20887259,"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":[],"created_at":"2024-10-29T20:09:15.711Z","updated_at":"2025-04-04T04:45:54.723Z","avatar_url":"https://github.com/leostera.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡️ blast64\n\u003e Apparently the fastest way of decoding Base64 in Chrome.\n\n## Installation\n\n```\nnpm install blast64\n```\n\n## Usage\n\n```javascript\nvar blast64 = require('blast64');\n\n// From base64 to UTF-8 string\nblast64.decode(base64string);\n\n// From base64 to Uint8Array\nblast64.decode_to_array(base64string);\n```\n\n## Testing and Benchmark\n\nThis is the average time from encoded string to UTF-8 encoded result.\n\nThe 💓  was ran `10000000` times.\n\nThe [~355kb payload](https://github.com/ostera/blast64/tree/master/test/sample.js) was ran `1000` times.\n\n| Load   | atob+TextDecoder | js-base64  | fast64    | base64-js | blast64   |\n|--------|------------------|------------|-----------|-----------|-----------|\n| 💓      | 0.0019 ms        | 0.0025 ms  | 0.0031 ms | 0.0018 ms | 0.0010 ms |\n| ~355kb | 31.257 ms        | 4.5263 ms  | 2.9529 ms | 1.7501 ms | 1.3920 ms |\n\nAnd this are the average times without the `TextDecoder` step where relevant:\n\n| Load   | fast64[0] | atob      | blast64.decode_to_array   |\n|--------|-----------|-----------|---------------------------|\n| 💓      | 0.0017 ms | 0.0008 ms | 0.0005 ms                 |\n| ~355kb | 2.5336 ms | 1.7580 ms | 1.0701 ms                 |\n\n[0] `fast64.decode(str, {uint8Array: true})`\n\nNot bad for a few hours of hacking I'd say! But it's still only decoding, would have to sit down and make it encode as well at some point.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleostera%2Fblast64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleostera%2Fblast64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleostera%2Fblast64/lists"}