{"id":15980869,"url":"https://github.com/vitalets/ydb-sdk-lite","last_synced_at":"2025-10-12T22:32:58.069Z","repository":{"id":57403418,"uuid":"368097576","full_name":"vitalets/ydb-sdk-lite","owner":"vitalets","description":"Lightweight implementation of Yandex Database SDK for Node.js","archived":false,"fork":false,"pushed_at":"2023-12-08T14:44:19.000Z","size":1730,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T05:47:30.076Z","etag":null,"topics":["serverless","ydb-sdk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/vitalets.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},"funding":{"github":["vitalets"]}},"created_at":"2021-05-17T07:39:16.000Z","updated_at":"2024-05-21T08:06:01.000Z","dependencies_parsed_at":"2024-06-12T23:32:44.893Z","dependency_job_id":null,"html_url":"https://github.com/vitalets/ydb-sdk-lite","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalets%2Fydb-sdk-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalets%2Fydb-sdk-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalets%2Fydb-sdk-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalets%2Fydb-sdk-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitalets","download_url":"https://codeload.github.com/vitalets/ydb-sdk-lite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243887560,"owners_count":20363915,"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":["serverless","ydb-sdk"],"created_at":"2024-10-08T00:23:19.951Z","updated_at":"2025-10-12T22:32:53.007Z","avatar_url":"https://github.com/vitalets.png","language":"JavaScript","funding_links":["https://github.com/sponsors/vitalets"],"categories":[],"sub_categories":[],"readme":"# ydb-sdk-lite\nLightweight implementation of [ydb-sdk](https://github.com/yandex-cloud/ydb-nodejs-sdk) for Node.js.\nMainly for usage in serverless functions.\n\n## Features\n- Fast require time (100ms vs 300ms)\n- Small size (5Mb vs 40Mb)\n- DDL queries support\n- Infer parameters type by query text\n\n## Limitations\n- Only primitive types supported\n\n## Installation\n```\nnpm i ydb-sdk-lite\n```\n\n## Usage\n```js\nconst { Ydb } = require('ydb-sdk-lite');\n\n// create Ydb client\nconst ydb = new Ydb({ dbName: 'xxx', iamToken: 'yyy', tablePathPrefix: 'zzz' });\n\n// execute single query (DML only)\nconst [ users ] = await ydb.executeDataQuery('SELECT * FROM users');\n\n// execute single query with params\nconst query = `\n  DECLARE $userId AS int32;\n  SELECT * FROM users WHERE userId = $userId;\n`;\nconst [ users ] = await ydb.executeDataQuery(query, { $userId: 42 });\n\n// execute any YQL (DDL + DML)\nawait ydb.executeYql('DROP TABLE users');\n```\n\n[Full example](https://github.com/vitalets/ydb-sdk-lite/tree/main/examples/serverless) of using `ydb-sdk-lite` in serverless function.\n\n## API Reference\ntbd\n\n## License\nMIT @ [Vitaliy Potapov](https://github.com/vitalets)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitalets%2Fydb-sdk-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitalets%2Fydb-sdk-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitalets%2Fydb-sdk-lite/lists"}