{"id":18369856,"url":"https://github.com/cawfree/mnist-dataset","last_synced_at":"2025-07-09T17:05:11.278Z","repository":{"id":57299358,"uuid":"238328284","full_name":"cawfree/mnist-dataset","owner":"cawfree","description":"✍️ Yann LeCun's MNIST handwritten digit dataset, made available to Node.js.","archived":false,"fork":false,"pushed_at":"2020-02-05T00:41:53.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T17:03:55.937Z","etag":null,"topics":["dataset","deep","digit","handwriting","handwritten","learning","mnist","network","neural","number"],"latest_commit_sha":null,"homepage":null,"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/cawfree.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}},"created_at":"2020-02-04T23:29:30.000Z","updated_at":"2020-02-05T00:42:42.000Z","dependencies_parsed_at":"2022-08-26T17:00:54.301Z","dependency_job_id":null,"html_url":"https://github.com/cawfree/mnist-dataset","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cawfree/mnist-dataset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Fmnist-dataset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Fmnist-dataset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Fmnist-dataset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Fmnist-dataset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cawfree","download_url":"https://codeload.github.com/cawfree/mnist-dataset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Fmnist-dataset/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502110,"owners_count":23618552,"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":["dataset","deep","digit","handwriting","handwritten","learning","mnist","network","neural","number"],"created_at":"2024-11-05T23:32:40.491Z","updated_at":"2025-07-09T17:05:09.612Z","avatar_url":"https://github.com/cawfree.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/cawfree"],"categories":[],"sub_categories":[],"readme":"# mnist-dataset\n✍️ Yann LeCun's MNIST handwritten digit dataset, made available to Node.js. This library contains all of the utilities you need to download and parse the raw unfiltered dataset, which is expressed as JSON arrays. It uses [fs](https://nodejs.org/api/fs.html) to cache to your system's [`tmpdir()`](https://nodejs.org/api/os.html#os_os_tmpdir) so that you don't have to keep downloading the dataset between successive executions of your software.\n\n\u003ca href=\"#badge\"\u003e\n    \u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./public/image.jpeg\" width=\"480\" height=\"360\" /\u003e\n\u003c/p\u003e\n\n## 🚀 Getting Started\n\nUsing [`npm`]():\n\n```bash\nnpm install --save mnist-dataset\n```\n\nUsing [`yarn`]():\n\n```bash\nyarn add mnist-dataset\n```\n\n## ✍️ Usage\n\n```javascript\nimport { cache, trainingImagesUrl, trainingLabelsUrl } from 'mnist-dataset';\n\n(\n  async () =\u003e {\n    const trainingImages = await cache(trainingImagesUrl); // [[Number]] (i.e. [[0, 0, 0, ...], [0, 0, 0, ...], ...])\n    const trainingLabels = await cache(trainingLabelsUrl); // [[Number]] (i.e. [[7], [2], ...])\n\n    const toString = e =\u003e\n      [...Array(28)]\n        .map((_, i) =\u003e\n          [...Array(28)].map((_, j) =\u003e (e[i * 28 + j] \u003e 128 ? \"#\" : \" \")).join(\"\")\n        )\n        .join(\"\\n\");\n\n    const [number7] = trainingImages;\n    console.log(toString(number7));\n  }\n)();\n```\n\n## ✌️ License\n[MIT](https://opensource.org/licenses/MIT)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.buymeacoffee.com/cawfree\"\u003e\n    \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy @cawfree a coffee\" width=\"232\" height=\"50\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcawfree%2Fmnist-dataset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcawfree%2Fmnist-dataset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcawfree%2Fmnist-dataset/lists"}