{"id":15010595,"url":"https://github.com/nodejs/examples","last_synced_at":"2025-10-19T22:31:20.198Z","repository":{"id":41243920,"uuid":"252568745","full_name":"nodejs/examples","owner":"nodejs","description":"A repository of runnable Node.js examples that go beyond \"hello, world!\"","archived":true,"fork":false,"pushed_at":"2024-06-22T16:42:43.000Z","size":60,"stargazers_count":677,"open_issues_count":26,"forks_count":379,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-09-24T00:34:59.066Z","etag":null,"topics":["examples","node","nodejs"],"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/nodejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-04-02T21:31:33.000Z","updated_at":"2025-08-22T13:46:54.000Z","dependencies_parsed_at":"2024-04-12T11:21:06.919Z","dependency_job_id":"517c7c3e-de6e-4ce3-9f1a-6df22696676f","html_url":"https://github.com/nodejs/examples","commit_stats":{"total_commits":41,"total_committers":5,"mean_commits":8.2,"dds":0.3414634146341463,"last_synced_commit":"b29f1b74ed46b6df328e2c8b2d623c8fdf5ebb3f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nodejs/examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodejs","download_url":"https://codeload.github.com/nodejs/examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs%2Fexamples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279927568,"owners_count":26245503,"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","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"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":["examples","node","nodejs"],"created_at":"2024-09-24T19:34:57.398Z","updated_at":"2025-10-19T22:31:19.929Z","avatar_url":"https://github.com/nodejs.png","language":"JavaScript","readme":"⚠️⚠️⚠️\n\nThe contents of this repository are not up to date.\nThe opinions and information expressed here do not necessarily reflect the up-to-date opinions of the Node.js project.\nIt is kept here as a public archive.\n\n⚠️⚠️⚠️\n\n-----\n\n# Node.js Examples\n\nThis repository is a collective of opinionated and real-world examples of how you can use Node.js to build things.\n\n## How This Repository is Structured\n\nThis repository is structured in a specific way:\n\n- **Top-level directories** are **category directories** of applications - for example `CLI`, `server`, and `utility` - that enable you to find the specific _kind_ of example you're looking for.\n- **Second-level directories** are **project directories** named after specific modules, frameworks, platforms, or tools - for example, `yargs` is a CLI framework, both `express` and `fastify` are web frameworks, and `moment` is a utility.\n- **Third-level directories** are **example directories**, where specific examples live. You can find a full list of these examples in the [Examples](#examples) section below.\n\nHere is an example of the structure in general terms:\n\n```text\n- examples (root)\n  - category\n    - project\n      - example\n  - category\n    - project\n      - example\n      - example\n      - example\n    - project\n      - example\n      - example\n  - category\n    - project\n      - example\n    - project\n      - example\n      - example\n```\n\nEach **example** has a few properties (if one doesn't, please [let us know](https://github.com/nodejs/examples/issues/new)):\n\n- Usable example code.\n- Passing tests.\n- A README.md that explains what the example does and how to use it.\n\n## Examples\n\n### CLI\n\nCommand Line Interfaces (CLIs) are tools that can be accessed exclusively from the command line that generally serve some utility. There is a vibrant community of Node.js CLI utilities, ranging from packages to make it slightly easier to accomplish something to full frameworks for building CLI experiences.\n\n- [CLI](./cli)\n  - [yargs](./cli/yargs)\n    - [countEntriesInDirectory](./cli/yargs/countEntriesInDirectory): A small command line tool that shows how to use yargs and Node.js together, leveraging Node.js's `path` and `fs` modules to read a directory passed by the CLI user\n\n## Contributing\n\nWe've documented how to meaningfully contribute in [CONTRIBUTING.md](./CONTRIBUTING.md) 🤗\n\n### Thank You To Our Contributors\n\n\u003e We use All Contributors for this section of the README. Please ensure you have the `all-contributors-cli` installed if you're modifying it. See the [All Contributors CLI Usage](https://allcontributors.org/docs/en/cli/usage) documentation for details on usage. See the [emoji key](https://allcontributors.org/docs/en/emoji-key) for details on what each emoji represents.\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://bnb.im\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/502396?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTierney Cyren\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/node/examples/commits?author=bnb\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#content-bnb\" title=\"Content\"\u003e🖋\u003c/a\u003e \u003ca href=\"https://github.com/node/examples/commits?author=bnb\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/node/examples/commits?author=bnb\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/mcollina\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/52195?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatteo Collina\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#infra-mcollina\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"#ideas-mcollina\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://thiru.xyz/\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/7230720?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eThiru\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#example-Thiruppathi\" title=\"Examples\"\u003e💡\u003c/a\u003e \u003ca href=\"#maintenance-Thiruppathi\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodejs%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs%2Fexamples/lists"}