{"id":27958880,"url":"https://github.com/janmalch/ktor-revfile","last_synced_at":"2025-05-07T18:26:44.201Z","repository":{"id":246272568,"uuid":"820602037","full_name":"JanMalch/ktor-revfile","owner":"JanMalch","description":"Ktor server plugin for automatically revisioning static files.","archived":false,"fork":false,"pushed_at":"2025-02-07T21:37:10.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T22:30:46.888Z","etag":null,"topics":["kotlin","ktor","ktor-plugin","ktor-server"],"latest_commit_sha":null,"homepage":"https://janmalch.github.io/ktor-revfile/","language":"Kotlin","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/JanMalch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-06-26T20:01:08.000Z","updated_at":"2025-02-07T21:37:14.000Z","dependencies_parsed_at":"2025-02-07T22:36:08.320Z","dependency_job_id":null,"html_url":"https://github.com/JanMalch/ktor-revfile","commit_stats":null,"previous_names":["janmalch/ktor-revfile"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMalch%2Fktor-revfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMalch%2Fktor-revfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMalch%2Fktor-revfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMalch%2Fktor-revfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JanMalch","download_url":"https://codeload.github.com/JanMalch/ktor-revfile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252933057,"owners_count":21827439,"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":["kotlin","ktor","ktor-plugin","ktor-server"],"created_at":"2025-05-07T18:26:42.610Z","updated_at":"2025-05-07T18:26:44.181Z","avatar_url":"https://github.com/JanMalch.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ktor RevFile\n\n[![Maven Central Version](https://img.shields.io/maven-central/v/io.github.janmalch/ktor-revfile-core)](https://central.sonatype.com/artifact/io.github.janmalch/ktor-revfile-core)\n\nA [Ktor server plugin](https://ktor.io/docs/server-plugins.html) made for automatically revisioning static files.\n\nA revisioned file will include a short hash of its content in the file name.\nThis enables optimal caching without you ever having to change the name of the local file.\n\n## Installation\n\nThis library is available on Maven Central.\n\n```kotlin\nimplementation(\"io.github.janmalch:ktor-revfile-core:0.2.0\")\nimplementation(\"io.github.janmalch:ktor-revfile-html:0.2.0\") // add for kotlinx.html interop\n```\n\n## Usage\n\n```kotlin\npackage com.example\n\nobject AppAssets : RevFileRegistry(\"/assets/\") {\n    val main = resource(\"main.js\")\n    val styles = resource(\"styles.css\")\n}\n\nfun Application.module() {\n    install(RevFilePlugin) {\n        +AppAssets\n    }\n}\n```\n\nCheckout the [complete documentation](https://janmalch.github.io/ktor-revfile) for usage details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanmalch%2Fktor-revfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanmalch%2Fktor-revfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanmalch%2Fktor-revfile/lists"}