{"id":13493625,"url":"https://github.com/typicode/steno","last_synced_at":"2025-05-14T12:09:41.317Z","repository":{"id":22160678,"uuid":"25492181","full_name":"typicode/steno","owner":"typicode","description":"Super fast async file writer with atomic write ⚡","archived":false,"fork":false,"pushed_at":"2024-06-16T19:14:56.000Z","size":323,"stargazers_count":683,"open_issues_count":1,"forks_count":41,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-02T02:09:48.816Z","etag":null,"topics":["atomic","file","fs","race-condition-prevention","safe","writer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/typicode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"typicode"}},"created_at":"2014-10-20T23:48:27.000Z","updated_at":"2025-03-27T12:22:30.000Z","dependencies_parsed_at":"2024-02-05T09:05:06.242Z","dependency_job_id":"2ddccf10-46d8-46c8-8d93-f1b225d40ddd","html_url":"https://github.com/typicode/steno","commit_stats":{"total_commits":150,"total_committers":10,"mean_commits":15.0,"dds":0.06666666666666665,"last_synced_commit":"7376d62410ec06e32ca18564d6b5c4b51f6aa14d"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fsteno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fsteno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fsteno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fsteno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typicode","download_url":"https://codeload.github.com/typicode/steno/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289426,"owners_count":20914464,"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":["atomic","file","fs","race-condition-prevention","safe","writer"],"created_at":"2024-07-31T19:01:17.216Z","updated_at":"2025-04-09T03:10:48.354Z","avatar_url":"https://github.com/typicode.png","language":"JavaScript","funding_links":["https://github.com/sponsors/typicode"],"categories":["JavaScript"],"sub_categories":[],"readme":"# Steno [![](http://img.shields.io/npm/dm/steno.svg?style=flat)](https://www.npmjs.org/package/steno) [![Node.js CI](https://github.com/typicode/steno/actions/workflows/node.js.yml/badge.svg)](https://github.com/typicode/steno/actions/workflows/node.js.yml)\n\n\u003e Super fast async file writer with atomic write\n\n**Steno** makes writing concurrently fast and safe.\n\nBattle-tested in [lowdb](https://github.com/typicode/lowdb).\n\n## Features\n\n- ⚡ Fast (see benchmark)\n- 🐦 Lightweight (~6kb)\n- 🩵 Written in TypeScript\n- 🖊️ Writes are atomic (no partial writes)\n- 🏎️ Writes are ordered even if they're async (no race conditions)\n- ♻️ Automatic retry\n\n## Usage\n\n```javascript\nimport { Writer } from 'steno'\n\n// Create a singleton writer\nconst file = new Writer('file.txt')\n\n// Use it in the rest of your code\nasync function save() {\n  await file.write('some data')\n}\n```\n\n## Benchmark\n\n`npm run benchmark` (see `src/benchmark.ts`)\n\n```\nWrite 1KB data to the same file x 1000\n  fs     :   62ms\n  steno  :    1ms\n\nWrite 1MB data to the same file x 1000\n  fs     : 2300ms\n  steno  :    5ms\n```\n\n_Steno uses a smart queue and avoids unnecessary writes._\n\n## Name\n\nhttps://en.wikipedia.org/wiki/Stenotype\n\n## License\n\nMIT - [Typicode](https://github.com/typicode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypicode%2Fsteno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypicode%2Fsteno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypicode%2Fsteno/lists"}