{"id":20535842,"url":"https://github.com/vlucas/seamless-cloud-js","last_synced_at":"2026-04-09T23:48:56.589Z","repository":{"id":66085707,"uuid":"316013773","full_name":"vlucas/seamless-cloud-js","owner":"vlucas","description":"JavaScript (Web + Node) Client for Seamless.cloud","archived":false,"fork":false,"pushed_at":"2022-06-25T15:19:43.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-16T13:56:33.101Z","etag":null,"topics":["database","javascript","nodejs","sql"],"latest_commit_sha":null,"homepage":"https://www.seamless.cloud","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vlucas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-25T17:47:00.000Z","updated_at":"2022-01-01T17:21:13.000Z","dependencies_parsed_at":"2023-02-23T03:16:11.133Z","dependency_job_id":null,"html_url":"https://github.com/vlucas/seamless-cloud-js","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlucas%2Fseamless-cloud-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlucas%2Fseamless-cloud-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlucas%2Fseamless-cloud-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlucas%2Fseamless-cloud-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vlucas","download_url":"https://codeload.github.com/vlucas/seamless-cloud-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242141030,"owners_count":20078461,"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":["database","javascript","nodejs","sql"],"created_at":"2024-11-16T00:34:24.943Z","updated_at":"2026-04-09T23:48:51.547Z","avatar_url":"https://github.com/vlucas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seamless.cloud JS Client\n\nThis JS client is for Node.js and is currently SERVER-SIDE ONLY.\n\nPLEASE don't use this client-side. You don't want to leak your API key and let any rando run SQL queries against your\ndatabase...\n\n## Install\n\nInstall with NPM or Yarn:\n\n```javascript\nnpm i seamless-cloud\n```\n\n## Usage\n\nYou must initialize the `SeamlessClient` class with a `SeamlessClientConfig` object, and a `fetch` function to use.\nSpecifying this function yourself keeps this client portable across server and client applications.\n\n```javascript\nimport { SeamlessClient, sql } from 'seamless-cloud';\n\nconst client = new SeamlessClient(\n  {\n    account: 'accountUsername',\n    project: 'project-name',\n    apiKey: 'my-api-key-here',\n  },\n  fetch\n);\n```\n\nOnce initialized, you can now run queries using the `sql` helper (imported from `seamless-cloud`):\n\n```javascript\nconst authorId = 1;\nconst results = await client.query(sql`SELECT * FROM posts WHERE authorId = ${authorId} LIMIT 20`);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlucas%2Fseamless-cloud-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvlucas%2Fseamless-cloud-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlucas%2Fseamless-cloud-js/lists"}