{"id":34552726,"url":"https://github.com/usedatabrew/fly-machines-sdk","last_synced_at":"2025-12-24T08:03:59.361Z","repository":{"id":202824940,"uuid":"708214752","full_name":"usedatabrew/fly-machines-sdk","owner":"usedatabrew","description":"JS/TS SDK for Fly.io - Allows you to create and manage applications by API","archived":false,"fork":false,"pushed_at":"2024-07-21T17:15:54.000Z","size":712,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-29T01:09:14.314Z","etag":null,"topics":["databrew","devops","devtools","flyio"],"latest_commit_sha":null,"homepage":"https://fly.io","language":"TypeScript","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/usedatabrew.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-21T21:42:06.000Z","updated_at":"2025-05-07T14:10:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"fecf2ab3-6f44-437b-bc4b-425434f4ba2f","html_url":"https://github.com/usedatabrew/fly-machines-sdk","commit_stats":null,"previous_names":["usedatabrew/fly-machines-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/usedatabrew/fly-machines-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usedatabrew%2Ffly-machines-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usedatabrew%2Ffly-machines-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usedatabrew%2Ffly-machines-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usedatabrew%2Ffly-machines-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usedatabrew","download_url":"https://codeload.github.com/usedatabrew/fly-machines-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usedatabrew%2Ffly-machines-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27998473,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["databrew","devops","devtools","flyio"],"created_at":"2025-12-24T08:03:20.675Z","updated_at":"2025-12-24T08:03:59.356Z","avatar_url":"https://github.com/usedatabrew.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fly.IO Machines SDK for Node.JS\n\n![FlyDocs Image](./images/fly.png)\n\n### Install package\n\n```shell\nnpm i fly-machines-sdk\n```\n\n### Init SDK\n\nGet Fly.io API Token\n\n```shell\nexport FLY_TOKEN=$(fly auth token)\n```\n\n```ts\nimport { FlyMachinesSDK } from 'fly-machines-sdk';\n\nconst apiKey = process.env.FLY_TOKEN;\nconst orgSlug = 'personal';\n\nconst sdk = new FlyMachinesSDK(apikey, orgSlug);\n```\n\n### Create new application\nSince fly.io migrated to app v2 each application should have a machine\nBut two requests will be executed. \n1. Create application\n2. Assign machine with the application\n\n```ts\nawait sdk.createApplicationOnMachine({ name: 'app_name', config: {} });\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusedatabrew%2Ffly-machines-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusedatabrew%2Ffly-machines-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusedatabrew%2Ffly-machines-sdk/lists"}