{"id":20886989,"url":"https://github.com/fleetbase/fleetbase-js","last_synced_at":"2025-05-12T19:33:00.105Z","repository":{"id":44359422,"uuid":"177120638","full_name":"fleetbase/fleetbase-js","owner":"fleetbase","description":"Fleetbase Javascript/ Node SDK","archived":false,"fork":false,"pushed_at":"2024-03-27T08:25:46.000Z","size":9887,"stargazers_count":6,"open_issues_count":3,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-09-30T07:09:35.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fleetbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2019-03-22T10:30:24.000Z","updated_at":"2024-06-07T12:12:14.000Z","dependencies_parsed_at":"2024-01-25T04:26:13.791Z","dependency_job_id":"27073099-7b99-4cbf-ad7d-070703e56b65","html_url":"https://github.com/fleetbase/fleetbase-js","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Ffleetbase-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Ffleetbase-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Ffleetbase-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Ffleetbase-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fleetbase","download_url":"https://codeload.github.com/fleetbase/fleetbase-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224896178,"owners_count":17388065,"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":"2024-11-18T08:18:42.065Z","updated_at":"2024-11-18T08:18:43.129Z","avatar_url":"https://github.com/fleetbase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://flb-assets.s3.ap-southeast-1.amazonaws.com/static/fleetbase-logo-svg.svg\" width=\"380\" height=\"100\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\nFast, powerful, and easy to use JavaScript SDK for building on-demand and last-mile apps using Fleetbase API.\nBuild custom real-time on-demand experiences, and easily manage the flow from start to finish.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@fleetbase/sdk\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@fleetbase/sdk\" alt=\"Version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@fleetbase/sdk\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dw/@fleetbase/sdk\" alt=\"Downloads/week\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/package/@fleetbase/sdk@1.0.0\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/min/@fleetbase/sdk\" alt=\"Bundle Size\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/fleetbase/fleetbase-js/blob/master/LICENSE.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/fleetbase/fleetbase-js\" alt=\"License\" /\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://fleetbase.io\"\u003efleetbase.io\u003c/a\u003e | \u003ca href=\"https://twitter.com/fleetbase_io\"\u003e@fleetbase_io\u003c/a\u003e | \u003ca href=\"https://discord.gg/Q78hkXNK\"\u003eDiscord\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n### With NPM\n\n`npm install @fleetbase/sdk`\n\n### With Yarn\n\n`yarn add @fleetbase/sdk`\n\n## Documentation\n\nSee the [documentation webpage](https://fleetbase.io/docs).\n\nIf you would like to make contributions to the Fleetbase Javascript SDK documentation source, here is a [guide](https://github.com/fleetbase/fleetbase-js/blob/master/CONTRIBUTING.md) in doing so.\n\n## Quick Start for Browser\n\n```js\nimport Fleetbase from '@fleetbase/sdk';\n\nconst fleetbase = new Fleetbase('Your Public Key');\n\n// create a place\nconst speceNeedle = await fleetbase.places.create({\n    name: 'Space Needle',\n    street1: '400 Broad Street',\n    city: 'Seattle',\n    state: 'WA',\n    country: 'US',\n});\n```\n\n## Quick Start for Node\n\n```js\nimport Fleetbase from '@fleetbase/sdk';\n\nconst fleetbase = new Fleetbase('Your Secret Key');\n\n// create a place\nconst speceNeedle = await fleetbase.places.create({\n    name: 'Space Needle',\n    street1: '400 Broad Street',\n    city: 'Seattle',\n    state: 'WA',\n    country: 'US',\n});\n```\n\n## Create a custom adapter\n\nYou're able to create a custom adapter to handle network request in the Fleetbase SDK.\nThe Fleetbase SDK ships with two standard adapters. The BrowserAdapter which is based on `fetch()` and\nthe NodeAdapter based on axios.\n\n```js\nimport { Adapter } from '@fleetbase/sdk';\n\nclass CustomAdapter extends Adapter {\n    constructor(config) {\n        super(config);\n    }\n\n    get() {}\n    post() {}\n    put() {}\n    patch() {}\n    delete() {}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleetbase%2Ffleetbase-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffleetbase%2Ffleetbase-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleetbase%2Ffleetbase-js/lists"}