{"id":20518281,"url":"https://github.com/tricked-dev/lowestbins","last_synced_at":"2025-04-14T00:55:22.868Z","repository":{"id":60450902,"uuid":"389206335","full_name":"Tricked-dev/lowestbins","owner":"Tricked-dev","description":"Lowestbins made in rust for maximum efficiency","archived":false,"fork":false,"pushed_at":"2024-06-30T19:28:49.000Z","size":3905,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T15:01:45.153Z","etag":null,"topics":["api","hyper","hypixel","hypixel-skyblock","isahc","lowestbins","nbt","rust","skyblock"],"latest_commit_sha":null,"homepage":"https://lb.tricked.pro","language":"Rust","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/Tricked-dev.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":"2021-07-24T21:35:24.000Z","updated_at":"2025-03-16T02:03:58.000Z","dependencies_parsed_at":"2023-01-30T22:45:46.845Z","dependency_job_id":null,"html_url":"https://github.com/Tricked-dev/lowestbins","commit_stats":{"total_commits":138,"total_committers":5,"mean_commits":27.6,"dds":0.3695652173913043,"last_synced_commit":"a600720e90f71840f65aae58ae745af230a97b16"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Flowestbins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Flowestbins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Flowestbins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Flowestbins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tricked-dev","download_url":"https://codeload.github.com/Tricked-dev/lowestbins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804784,"owners_count":21164131,"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","hyper","hypixel","hypixel-skyblock","isahc","lowestbins","nbt","rust","skyblock"],"created_at":"2024-11-15T21:39:22.938Z","updated_at":"2025-04-14T00:55:22.844Z","avatar_url":"https://github.com/Tricked-dev.png","language":"Rust","readme":"![](assets/logo.png)\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg alt=\"Logo\" src=\".github/assets/logo.png\" width=\"200\"\u003e\n\n[![GitHub issues](https://img.shields.io/github/issues/Tricked-dev/lowestbins)](https://github.com/Tricked-dev/lowestbins/issues) [![GitHub forks](https://img.shields.io/github/forks/Tricked-dev/lowestbins)](https://github.com/Tricked-dev/lowestbins/network)\n[![GitHub stars](https://img.shields.io/github/stars/Tricked-dev/lowestbins)](https://github.com/Tricked-dev/lowestbins/stargazers)\n[![GitHub license](https://img.shields.io/github/license/Tricked-dev/lowestbins)](https://github.com/Tricked-dev/lowestbins/blob/master/LICENSE)\n![Website](https://img.shields.io/website?url=https%3A%2F%2Flb.tricked.dev%2F)\n[![Discord](https://img.shields.io/discord/748956745409232945)](https://discord.gg/mY8zTARu4g)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/tricked-dev)](https://github.com/sponsors/Tricked-dev)\n\n[![forthebadge](https://forthebadge.com/images/badges/ctrl-c-ctrl-v.svg)](https://forthebadge.com)\n[![forthebadge](https://forthebadge.com/images/badges/made-with-rust.svg)](https://forthebadge.com)\n\n# Lowestbins-rs\n\n\u003c/div\u003e\n\nA fast and effecient lowestbins implementation this uses parrallel requests to fetch all lowestbins in less than **2.5 SECONDS** and uses the hyper server allowing for practically unlimited requests per second while only using 50mb of ram!  \nLowestbins-rs is used by [Skytils](https://github.com/Skytils/SkytilsMod) for the lowestbins feature.\n\n## Hosted Instance\n\n- [lb.tricked.dev/](https://lb.tricked.dev/)\n\nIf you are using this in a project please credit me! or sponsor me on github [github.com/sponsors/Tricked-dev](https://github.com/sponsors/Tricked-dev)\n\n## Using in your code\n\n### Javascript\n\n**node:**\n\n```js\nconst fetch = require(\"undici\"); // node-fetch also works\nlet json = await fetch(\"https://lb.tricked.dev/lowestbins\").then((res) =\u003e\n  res.json()\n);\n\nconsole.log(json[\"ENCHANTMENT_ULTIMATE_SWARM_2\"]);\n```\n\n**web/deno:**\n\n```js\nlet json = await fetch(\"https://lb.tricked.dev/lowestbins\").then((res) =\u003e\n  res.json()\n);\nconsole.log(json[\"ENCHANTMENT_ULTIMATE_SWARM_2\"]);\n```\n\n### Python\n\n```py\nimport requests\njson = requests.get(\"https://lb.tricked.dev/lowestbins\").json()\nprint(json[\"ENCHANTMENT_ULTIMATE_SWARM_2\"])\n```\n\n### Api endpoints\n\n#### `/lowestbins` | `/lowestbins.json` | `/auctions/lowestbins`\n\n\u003e Returns a json object with all lowestbins\n\n#### `/lowestbins.txt`\n\n\u003e Returns a text file with all lowestbins easier to parse and smaller in size\n\n#### `/auction/{item}` | `lowestbin/{item}`\n\n\u003e Returns the price of a item as number this endpoint can be used to get more up to date prices due to it not being cached as often\n\n#### `/metrics`\n\n\u003e Returns prometheus metrics of the prices\n\n#### `/`\n\n\u003e Returns basic data about the api and update time\n\n## Usage\n\n### Docker\n\n```bash\ndocker run  --name lowestbins -p 8080:8080 -e HOST=0.0.0.0 -e UPDATE_SECONDS=120 -d ghcr.io/tricked-dev/lowestbins:latest\n```\n\n## Building\n\n- If you're on Linux, you can go to releases and download the binary\n- Windows/MacOS: you need to install cargo and run `cargo build --release` and the exe/binary should be in the `./target/release/lowestbins`.\n\n## Config Options\n\nEnv variables\n\n```env\nPORT # The port to run the server on\nHOST # The host to run the server on\nSAVE_TO_DISK # set to 0 to not save the auctions to disk\nOVERWRITES # Overwrite values format: `BLESSED_BAIT:200,ROCK_CANDY:6000,NON_EXISTENT_ITEM:200`\nUPDATE_SECONDS # The amount of seconds to wait before updating the lowestbins\nWEBHOOK_URL # The webhook url used for reporting the requests (discord/discord compatible)\nRUST_LOG # The log level lowestbins=debug recommended\n```\n\n## Features\n\n- NBT parsing\n- Fetching auctions and returning the lowest bin\n- hyper server\n- skytils compatible\n- metrics endpoint `/metrics`\n- rust\n\n## Todo\n\n- use quiche for faster quests\n- use cargo pgo to optimize binaries\n\n\u003e Licensed under the [Apache 2](./LICENSE) License\n","funding_links":["https://github.com/sponsors/Tricked-dev"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricked-dev%2Flowestbins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftricked-dev%2Flowestbins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricked-dev%2Flowestbins/lists"}