{"id":17215551,"url":"https://github.com/paambaati/neon-js-sdk","last_synced_at":"2025-04-13T09:25:42.481Z","repository":{"id":65798379,"uuid":"599587160","full_name":"paambaati/neon-js-sdk","owner":"paambaati","description":"TypeScript SDK for managing your Neon Serverless PostgreSQL projects","archived":false,"fork":false,"pushed_at":"2025-04-13T02:46:52.000Z","size":1147,"stargazers_count":18,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T03:40:14.424Z","etag":null,"topics":["deno","javascript","neon","nodejs","sdk","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/paambaati.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2023-02-09T13:09:34.000Z","updated_at":"2025-03-04T07:27:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3456f0e-61f1-4d02-9399-5fdc1bd0c73a","html_url":"https://github.com/paambaati/neon-js-sdk","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":"0.13793103448275867","last_synced_commit":"38f4d1ad86f94d47abe60c985bd45fb289ff08dc"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paambaati%2Fneon-js-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paambaati%2Fneon-js-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paambaati%2Fneon-js-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paambaati%2Fneon-js-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paambaati","download_url":"https://codeload.github.com/paambaati/neon-js-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661605,"owners_count":21141450,"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":["deno","javascript","neon","nodejs","sdk","typescript"],"created_at":"2024-10-15T03:24:46.905Z","updated_at":"2025-04-13T09:25:42.457Z","avatar_url":"https://github.com/paambaati.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `neon-sdk`\n\n[![CI](https://github.com/paambaati/neon-js-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/paambaati/neon-js-sdk/actions/workflows/ci.yml)\n[![NPM Version](https://img.shields.io/npm/v/neon-sdk.svg?logo=npm)](https://www.npmjs.com/package/neon-sdk)\n\nFully-typed, zero-dependency Node.js and Deno SDK for managing your [Neon](https://neon.tech/) Serverless Postgres projects.\n\n\u003e **Note**\n\n\u003e Neon is a fully managed serverless PostgreSQL with a generous free tier. Neon separates storage and compute and offers modern developer features such as serverless, branching, bottomless storage, and more. Neon is open source and written in Rust.\n\u003e \n\u003e [Learn more about Neon](https://neon.tech/docs/introduction/about)\n\n## Usage\n\n**Node.js (\u003e= v18.x)**\n\n1. Install `neon-sdk` as a dependency using the package manager of your choice.\n\n    ```bash\n    npm i neon-sdk\n    ```\n\n2. Initialize the client with your [Neon API token](https://neon.tech/docs/manage/api-keys#manage-api-keys-with-the-neon-api).\n\n    ```typescript\n    import { NeonClient } from 'neon-sdk';\n\n    const neonClient = new NeonClient({\n        TOKEN: '\u003cINSERT NEON API KEY HERE\u003e',\n    });\n\n    (async () =\u003e {\n        const projects = await neonClient.project.listProjects();\n        console.log(projects);\n    })()\n    ```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cstrong\u003eNode.js (\u003e= v16.15.x)\u003c/strong\u003e\u003c/summary\u003e\n\nYou can use the same steps to use this package if you're on Node.js v16.15.x or above, with one minor change; when running your code, you will need to pass the `--experimental-fetch` flag to `node`.\n\nFor example –\n\n```\nnode --experimental-fetch app.js\n```\n\u003c/details\u003e\n\n**Deno (\u003e= v1.28.x)**\n\n1. Simply import the `neon-sdk` from npm using the [`npm:` specifier](https://deno.land/manual@v1.30.3/node/npm_specifiers) and initialize the client with your [Neon API token](https://neon.tech/docs/manage/api-keys#manage-api-keys-with-the-neon-api).\n\n    ```typescript\n    // neon.ts\n    import { NeonClient } from \"npm:neon-sdk\";\n\n    const neonClient = new NeonClient({\n        TOKEN: \"\u003cINSERT NEON API KEY HERE\u003e\",\n    });\n    const projects = await neonClient.project.listProjects();\n    console.log(projects);\n    ```\n\n    Make sure to allow `net` permissions to `console.neon.tech` for the code to run.\n\n    ```bash\n    deno run --allow-net=console.neon.tech neon.ts\n    ```\n\n## Developer Notes\n\nThis package is auto-generated from [Neon's OpenAPI reference](https://neon.tech/api-reference/v2/) using [`openapi-typescript-codegen`](https://www.npmjs.com/package/openapi-typescript-codegen).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaambaati%2Fneon-js-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaambaati%2Fneon-js-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaambaati%2Fneon-js-sdk/lists"}