{"id":13578540,"url":"https://github.com/neon-bindings/examples","last_synced_at":"2025-04-05T19:33:14.896Z","repository":{"id":37270184,"uuid":"156813870","full_name":"neon-bindings/examples","owner":"neon-bindings","description":"A collection of examples of Neon","archived":false,"fork":false,"pushed_at":"2024-01-29T18:03:43.000Z","size":3935,"stargazers_count":322,"open_issues_count":8,"forks_count":43,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-11-05T16:46:13.571Z","etag":null,"topics":["examples","native-module","neon","node","rust","v8"],"latest_commit_sha":null,"homepage":"","language":null,"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/neon-bindings.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":"2018-11-09T05:18:07.000Z","updated_at":"2024-09-07T01:13:15.000Z","dependencies_parsed_at":"2024-01-06T02:04:17.044Z","dependency_job_id":"e499b82c-6567-4aa8-945b-3cc9b784023f","html_url":"https://github.com/neon-bindings/examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neon-bindings%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neon-bindings%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neon-bindings%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neon-bindings%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neon-bindings","download_url":"https://codeload.github.com/neon-bindings/examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393052,"owners_count":20931803,"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":["examples","native-module","neon","node","rust","v8"],"created_at":"2024-08-01T15:01:31.634Z","updated_at":"2025-04-05T19:33:14.498Z","avatar_url":"https://github.com/neon-bindings.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# neon-examples\n\n![Github Actions](https://github.com/neon-bindings/examples/workflows/Test/badge.svg?branch=main)\n\nExamples and common patterns for [Neon][neon].\n\nAll examples are for [`napi-backend`][napi-migration]. For examples using `legacy-backend` see the [`legacy`][legacy] branch. \n\n[neon]: https://github.com/neon-bindings/neon\n[napi-migration]: https://github.com/neon-bindings/neon/blob/main/MIGRATION_GUIDE.md#n-api-migration-guide\n[legacy]: https://github.com/neon-bindings/examples/tree/legacy\n\n## Table of Contents\n\n| Example                        | Description                                |\n| ------------------------------ | ------------------------------------------ |\n| [`async-sqlite`][async-sqlite] | Async interface to a SQLite database       |\n| [`cpu-count`][cpu-count]       | Return the number of CPUs                  |\n| [`gzip-stream`][gzip-stream]   | Asynchronously compress a stream of data   |\n| [`hello-world`][hello-world]   | Return a JS String with a greeting message |\n| [`tokio-fetch`][tokio-fetch]   | Asynchronously fetch a node release date   |\n\n[async-sqlite]: examples/async-sqlite\n[cpu-count]: examples/cpu-count\n[gzip-stream]: examples/gzip-stream\n[hello-world]: examples/hello-world\n[tokio-fetch]: examples/tokio-fetch\n\n## Contributing\n\n### Setup\n\nThe `examples` repository uses the npm 7 [workspaces] feature.\n\n[workspaces]: https://docs.npmjs.com/cli/v7/using-npm/workspaces\n\n```\n# npm 7 is required\nnpm --version\n\ngit clone https://github.com/neon-bindings/examples.git\ncd examples\nnpm install\n```\n\n### Tests\n\n```\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneon-bindings%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneon-bindings%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneon-bindings%2Fexamples/lists"}