{"id":29200867,"url":"https://github.com/datopian/giftless-client-js","last_synced_at":"2025-07-02T11:06:04.136Z","repository":{"id":55011905,"uuid":"322668927","full_name":"datopian/giftless-client-js","owner":"datopian","description":"A JS client for the Giftless git-lfs server https://github.com/datopian/giftless","archived":false,"fork":false,"pushed_at":"2021-01-15T11:52:10.000Z","size":396,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-09T10:08:03.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tech.datopian.com/giftless/","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/datopian.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}},"created_at":"2020-12-18T18:01:35.000Z","updated_at":"2024-03-01T22:37:38.000Z","dependencies_parsed_at":"2022-08-14T09:00:58.483Z","dependency_job_id":null,"html_url":"https://github.com/datopian/giftless-client-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datopian/giftless-client-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fgiftless-client-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fgiftless-client-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fgiftless-client-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fgiftless-client-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datopian","download_url":"https://codeload.github.com/datopian/giftless-client-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fgiftless-client-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260173541,"owners_count":22969861,"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":[],"created_at":"2025-07-02T11:06:03.487Z","updated_at":"2025-07-02T11:06:04.126Z","avatar_url":"https://github.com/datopian.png","language":"JavaScript","readme":"# giftless-client-js\n\n\u003cdiv align=\"center\"\u003e\n  \n[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n\n\u003c/div\u003e\n\nJavascript implementation of [giftless-client](https://github.com/datopian/giftless-client)\n\n## Installation\n\nYou can install directly from npm:\n\n```bash\n$ npm i giftless-client\n```\n\n## API\n\nThis implementation of giftless-client exposes a main class called `Client` which contains a low-level LFS API commands callled `batch`.\n\n### instantiating Client\n\n```js\nimport { Client } from \"giftless-client\";\n\nclient = new Client(\"https://git-lfs.example.com\", \"somer4nd0mT0ken==\", [\n  \"basic\",\n]);\n```\n\n### Sending an LFS batch API request\n\n```js\nclient.batch(\n  \"myorg/myrepo\",\n  \"download\",\n  [\n    {\n      oid: \"12345678\",\n      size: 123,\n    }\n  ]\n  )\n);\n```\n\n### Upload to Gitless LFS Server\n\nResources can be uploaded to lfs server using the client upload method `upload(file, organisationId, datasetId, onProgress)`\n\n```js\nimport { open } from 'frictionlessjs`;\n\nconst file = open('/path/resource.csv');\nawait client.upload(file, 'my-org','dataset-name');\n\n```\n\n## License\n\nGiftless Client Javascript is free software distributed under the terms of the MIT license. See [LICENSE](LICENSE) for details.\n\nGiftless Client Javascript is (c) 2020 Datopian / Viderum Inc.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatopian%2Fgiftless-client-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatopian%2Fgiftless-client-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatopian%2Fgiftless-client-js/lists"}