{"id":18686254,"url":"https://github.com/sharetribe/flex-sdk-js","last_synced_at":"2025-07-03T15:13:06.926Z","repository":{"id":32830100,"uuid":"78525157","full_name":"sharetribe/flex-sdk-js","owner":"sharetribe","description":"✨ Sharetribe Flex SDK for JavaScript ✨","archived":false,"fork":false,"pushed_at":"2024-07-03T18:38:00.000Z","size":14855,"stargazers_count":27,"open_issues_count":12,"forks_count":17,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-14T15:48:35.889Z","etag":null,"topics":["api","sdk","sharetribe"],"latest_commit_sha":null,"homepage":"https://sharetribe.github.io/flex-sdk-js/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharetribe.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}},"created_at":"2017-01-10T10:57:46.000Z","updated_at":"2025-02-25T08:33:21.000Z","dependencies_parsed_at":"2023-02-11T04:30:30.786Z","dependency_job_id":"9c575a1f-3be9-4ede-bfd2-e22a1a08e616","html_url":"https://github.com/sharetribe/flex-sdk-js","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/sharetribe/flex-sdk-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharetribe%2Fflex-sdk-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharetribe%2Fflex-sdk-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharetribe%2Fflex-sdk-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharetribe%2Fflex-sdk-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharetribe","download_url":"https://codeload.github.com/sharetribe/flex-sdk-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharetribe%2Fflex-sdk-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259843391,"owners_count":22920320,"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":["api","sdk","sharetribe"],"created_at":"2024-11-07T10:26:47.006Z","updated_at":"2025-07-03T15:13:06.899Z","avatar_url":"https://github.com/sharetribe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sharetribe SDK for JavaScript\n\nUse Sharetribe Marketplace API with ease.\n\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/sharetribe/flex-sdk-js/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/sharetribe/flex-sdk-js/tree/master)\n\n## Table of Contents\n\n* [What is it?](#what-is-it)\n* [Installation](#installation)\n* [Usage](#usage)\n* [Examples](#examples)\n* [Documentation](#documentation)\n* [License](#license)\n\n## What is it?\n\nThe SDK is the **easiest** way to interact with Sharetribe Marketplace API\nand Asset Delivery API.\n\nIt handles **groundwork** such as authentication, renewing\nauthentication tokens and serializing and deserializing data to and from\nJavaScript data structures.\n\nThis lets you to **concentrate on building your marketplace\nfront-end** instead of setting up the necessary boilerplate to\ncommunicate with the API.\n\n## Installation\n\nYarn:\n\n```sh\nyarn add sharetribe-flex-sdk\n```\n\n## Usage\n\n```js\nconst sharetribeSdk = require('sharetribe-flex-sdk');\n\n// Create new SDK instance\n// To obtain a client ID, see Applications in Console\nconst sdk = sharetribeSdk.createInstance({\n  clientId: '\u003cYour Client ID here\u003e'\n});\n\n// Query first 5 listings\nsdk.listings\n  .query({ perPage: 5 })\n  .then(res =\u003e {\n    // Print listing titles\n    res.data.data.forEach(listing =\u003e {\n      console.log(`Listing: ${listing.attributes.title}`)\n    });\n  })\n  .catch(res =\u003e {\n    // An error occurred\n    console.log(`Request failed with status: ${res.status} ${res.statusText}`);\n  });\n```\n\nClient ID is required to create a new SDK instance.\nSee [this  article](https://www.sharetribe.com/docs/background/applications/)\nto learn how to create an application and get the client ID.\n\n## Examples\n\nSee [examples/](https://github.com/sharetribe/flex-sdk-js/tree/master/examples/) directory in Github repository.\n\n## Documentation\n\n[Documentation can be found here](https://sharetribe.github.io/flex-sdk-js/).\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/sharetribe/flex-sdk-js/tree/master/CHANGELOG.md).\n\n## License\n\nDistributed under [The Apache License, Version 2.0](https://github.com/sharetribe/flex-sdk-js/tree/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharetribe%2Fflex-sdk-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharetribe%2Fflex-sdk-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharetribe%2Fflex-sdk-js/lists"}