{"id":"secret-rare/threads-luau","name":"threads-luau","scope":"secret-rare","platform":"roblox","description":"Mirrored from the Wally registry.","version":"0.3.0","latest":"0.3.0","versions":["0.1.0","0.2.0","0.3.0"],"license":"GPL-3.0","licenseRating":"unsafe","licenseCaveats":["Strong copyleft: shipping this in your game plausibly requires releasing your game's entire source under GPL-3.0. Not recommended for closed-source projects."],"licenseVerified":false,"dependencies":{},"integrity":"e006f471bb1d294e185821da8bf6aa08afc09f993afaac34f68d8701081a1a45","likes":0,"downloads":0,"install":"forest install secret-rare/threads-luau","url":"https://forest.dev/p/roblox/secret-rare/threads-luau","files":"https://api.forest.dev/ai/package/roblox/secret-rare/threads-luau/files","readme":"# threads-luau\r\n\r\nA Roblox server-side client for the [Threads](https://github.com/filoxen/threads) service. Handles reuploading clothing assets through your Threads instance.\r\n\r\n## Installation\r\n\r\nAdd to your `wally.toml` dependencies:\r\n\r\n```toml\r\n[server-dependencies]\r\nThreadsClient = \"secret-rare/threads-luau@0.3.0\"\r\n```\r\n\r\nThen run:\r\n\r\n```bash\r\nwally install\r\n```\r\n\r\n## Setup\r\n\r\n1. Host your own [Threads](https://github.com/filoxen/threads) instance.\r\n\r\n2. Add your API key to the **Secrets Store** in the Creator Dashboard with the name `THREADS_API_KEY` (or a custom name).\r\n\r\n## Usage\r\n\r\n```luau\r\nlocal ThreadsClient = require(path.to.ThreadsClient)\r\n\r\nThreadsClient.configure({\r\n    baseUrl = \"https://your-threads-instance.com\",\r\n    apiKeySecretName = \"THREADS_API_KEY\", -- optional, this is the default\r\n})\r\n\r\nlocal newAssetId = ThreadsClient.create(assetId)\r\n\r\nif newAssetId ~= -1 then\r\n    print(\"Reuploaded to:\", newAssetId)\r\nend\r\n```\r\n","readmeTruncated":false}