{"id":16187291,"url":"https://github.com/fiatjaf/trello-web","last_synced_at":"2025-09-20T12:32:50.639Z","repository":{"id":34176999,"uuid":"38026250","full_name":"fiatjaf/trello-web","owner":"fiatjaf","description":"Promised and browserify-compatible CORS Trello client.","archived":false,"fork":false,"pushed_at":"2020-05-22T17:31:39.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T07:18:04.357Z","etag":null,"topics":["cors","promise","trello","trello-client"],"latest_commit_sha":null,"homepage":"","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/fiatjaf.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":"2015-06-25T03:43:17.000Z","updated_at":"2020-05-22T17:31:41.000Z","dependencies_parsed_at":"2022-09-06T05:01:33.582Z","dependency_job_id":null,"html_url":"https://github.com/fiatjaf/trello-web","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiatjaf%2Ftrello-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiatjaf%2Ftrello-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiatjaf%2Ftrello-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiatjaf%2Ftrello-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fiatjaf","download_url":"https://codeload.github.com/fiatjaf/trello-web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233606401,"owners_count":18701616,"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":["cors","promise","trello","trello-client"],"created_at":"2024-10-10T07:21:14.180Z","updated_at":"2025-09-20T12:32:50.313Z","avatar_url":"https://github.com/fiatjaf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"An alternative to [Trello's client.js](https://trello.com/docs/gettingstarted/clientjs.html) for interfacing with Trello from the browser, using CORS.\n\nAll calls return promises (with [lie](https://www.npmjs.com/package/lie)).\n\n### Install with\n\n```\nnpm install trello-web\n```\n\n\n```js\nconst Trello = require('trello-web')\nconst trello = new Trello(TRELLO_API_KEY)\n\nPromise.resolve().then(() =\u003e\n  localStorage.getItem('token')\n).then(existingToken =\u003e {\n  if (existingToken) {\n    trello.token = existingToken\n  } else {\n    return trello.auth({\n      name: 'My Trello App',\n      scope: {\n        read: true,\n        write: true,\n        account: true\n      },\n      expiration: '1hour'\n    })\n  }\n}).then(() =\u003e\n  trello.get(\"/1/tokens/\" + trello.token + \"/member\", {\n    fields: 'username,id,email'\n  })\n).catch(e =\u003e {\n  console.log('something bad happened, or the user took too long to authorize.', e)\n})\n```\n\nWhen you have a token, you can do `.get`, `.put`, `.post` and `.del`, for example:\n\n```js\ntrello.get('/1/boards').then(console.log)\ntrello.del('/1/cards/782346238742').then(() =\u003e console.log('deleted card'))\ntrello.post('/1/cards/21838932983/actions/comments', {text: 'hello'}).then(data =\u003e console.log('created comment', data))\ntrello.put('/1/cards/2342632532532/desc', {value: 'hello world!'}).then(console.log)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiatjaf%2Ftrello-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiatjaf%2Ftrello-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiatjaf%2Ftrello-web/lists"}