{"id":16331071,"url":"https://github.com/siman/csv-upload","last_synced_at":"2026-04-29T12:32:21.047Z","repository":{"id":146942131,"uuid":"85078328","full_name":"siman/csv-upload","owner":"siman","description":"Use HTML5 File.slice() to read CSV file on a client and send bulk of lines to server until entire file is read.","archived":false,"fork":false,"pushed_at":"2017-03-15T14:51:17.000Z","size":322,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T14:11:19.520Z","etag":null,"topics":["csv","html5","html5-fileapi","js","nodejs","react"],"latest_commit_sha":null,"homepage":"","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/siman.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":"2017-03-15T13:53:03.000Z","updated_at":"2017-07-13T21:37:54.000Z","dependencies_parsed_at":"2023-04-06T10:00:28.633Z","dependency_job_id":null,"html_url":"https://github.com/siman/csv-upload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siman/csv-upload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman%2Fcsv-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman%2Fcsv-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman%2Fcsv-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman%2Fcsv-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siman","download_url":"https://codeload.github.com/siman/csv-upload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman%2Fcsv-upload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32426571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T12:24:25.982Z","status":"ssl_error","status_checked_at":"2026-04-29T12:24:24.439Z","response_time":110,"last_error":"SSL_read: 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":["csv","html5","html5-fileapi","js","nodejs","react"],"created_at":"2024-10-10T23:25:27.821Z","updated_at":"2026-04-29T12:32:21.021Z","avatar_url":"https://github.com/siman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV upload\n\nClient app uses HTML5 `File.slice()` to read CSV file on a client and send bulk of lines to server \nuntil entire file has been read.\n\n![Webapp screenshot: Uploading a CSV](./screenshots/webapp-uploading-torn.png)\n\n## Storage\n\nOn server we use **SQLite3** to store and retrieve saved user records.\n\nApp can work with both in-file or in-memory version of SQLite. To change a storage type go to file \n[./db.js](./db.js) and change a block of code in `function createDb(...)`:\n\n```js\n} else {\n  createDbInFile(onDbCreatedFn); // Inserting users to in file DB is veeeery slooow. About 30 ops/s.\n  //createDbInMemory(onDbCreatedFn); // Insert into memory is a way faster.\n}\n```\n\n## Install\n\n```bash\nnpm i\n```\n\n## Test\n\n```bash\n./test.sh\n```\n\n## Run a web app\n\n```bash\n./prod_build_run.sh\n```\n\nThen open in a browser http://localhost:3000\n\n## Generate CSV files?\n\nNeed to generate sample CSV files?\n\n### Generate CSV with 20K lines of user data:\n\n```bash\nnode gen-20K-lines-csv.js\n```\n\n### Generate 10MB CSV:\n\n```bash\nnode gen-10MB-csv.js\n```\n\n\n### or even 1GB CSV:\n\nIt will take some time. Be patient.\n\n```bash\nnode gen-1GB-csv.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiman%2Fcsv-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiman%2Fcsv-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiman%2Fcsv-upload/lists"}