{"id":17132706,"url":"https://github.com/araxeus/tiny-update-notifier","last_synced_at":"2025-08-29T03:43:09.375Z","repository":{"id":65432021,"uuid":"583970954","full_name":"Araxeus/tiny-update-notifier","owner":"Araxeus","description":"Tiny update notifier utility for rust cli programs","archived":false,"fork":false,"pushed_at":"2023-12-13T15:51:35.000Z","size":117,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T20:49:27.827Z","etag":null,"topics":["rust","update-checker","update-notifier"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/tiny_update_notifier","language":"Rust","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/Araxeus.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,"zenodo":null}},"created_at":"2022-12-31T17:44:00.000Z","updated_at":"2023-01-31T22:55:26.000Z","dependencies_parsed_at":"2025-04-13T07:56:11.121Z","dependency_job_id":"670911e8-bf20-4400-84fe-84c86788681c","html_url":"https://github.com/Araxeus/tiny-update-notifier","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Araxeus/tiny-update-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Araxeus%2Ftiny-update-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Araxeus%2Ftiny-update-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Araxeus%2Ftiny-update-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Araxeus%2Ftiny-update-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Araxeus","download_url":"https://codeload.github.com/Araxeus/tiny-update-notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Araxeus%2Ftiny-update-notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272620302,"owners_count":24965518,"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-08-29T02:00:10.610Z","response_time":87,"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":["rust","update-checker","update-notifier"],"created_at":"2024-10-14T19:27:55.419Z","updated_at":"2025-08-29T03:43:09.337Z","avatar_url":"https://github.com/Araxeus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003e🔔 Tiny Update Notifier 🔔\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Araxeus/tiny-update-notifier\" target=\"_blank\"\u003e\n    \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/tiny_update_notifier\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/crates/v/tiny_update_notifier?logo=semanticweb\u0026style=for-the-badge\u0026labelColor=yellow\u0026color=grey\" onerror='this.onerror=undefined; this.src=\"https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000\"'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Araxeus/tiny-update-notifier/blob/main/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/Araxeus/tiny-update-notifier?color=blue\u0026style=plastic\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/Araxeus/tiny-update-notifier\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=plastic\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nTiny update notifier utility for rust cli programs\n\u003c/p\u003e\n\n---\n\nChecks for update if **more than 24h have passed** since the last check (Customizable),\n\nThen pops up a notification if a new version was found 📢\n\u003e supports crates.io and github releases\n\n![App Screenshot](https://user-images.githubusercontent.com/78568641/210151741-701ca397-d9bb-4acc-8e62-292a1d7495d4.png)\n\n## Installation\n\nInstall tiny_update_notifier using Cargo\n\n```bash\n  cargo add tiny_update_notifier\n```\n    \n## Usage\n##### Multi-threaded / Non-blocking :\n```rust\n// check on crates.io\ntiny_update_notifier::check_cratesIO(pkg_version, pkg_name);\n\n// check on github releases\ntiny_update_notifier::check_github(pkg_version, pkg_name, pkg_repo_url);\n```\n\n##### Single-threaded / Blocking\n```rust\ntiny_update_notifier::Notifier::new(\n    tiny_update_notifier::Source,\n    pkg_version,\n    pkg_name,\n    pkg_repo_url\n)\n.interval(Duration) //Optional, default is 24h\n.run();\n```\n\n## Examples\n\n```rust\n// Spawns a thread to check for updates on Crates.io and notify user if there is a new version available.\nuse tiny_update_notifier::check_cratesIO;\n\nfn main() {\n    check_cratesIO(\n        env!(\"CARGO_PKG_VERSION\"),\n        env!(\"CARGO_PKG_NAME\"),\n    );\n}\n```\n```rust\n// Spawns a thread to check for updates on GitHub Releases and notify user if there is a new version available.\nuse tiny_update_notifier::check_github;\n\nfn main() {\n    check_github(\n        env!(\"CARGO_PKG_VERSION\"),\n        env!(\"CARGO_PKG_NAME\"),\n        env!(\"CARGO_PKG_REPOSITORY\"),\n    );\n}\n```\n\n```rust\n// Equivalent to check_github, except the interval is changed to 1 week\nuse std::{thread, time::Duration};\nuse tiny_update_notifier::{Notifier, Source};\n\nfn main() {\n    thread::spawn(|| {\n        Notifier::new(\n            Source::GitHub,\n            env!(\"CARGO_PKG_VERSION\"),\n            env!(\"CARGO_PKG_NAME\"),\n            env!(\"CARGO_PKG_REPOSITORY\"),\n        )\n        .interval(Duration::from_secs(60 * 60 * 24 * 7))\n        .run();\n    });\n}\n```\n----\n\u003e Used by https://github.com/Araxeus/ls-interactive/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faraxeus%2Ftiny-update-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faraxeus%2Ftiny-update-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faraxeus%2Ftiny-update-notifier/lists"}