{"id":20950586,"url":"https://github.com/dsx-tech/rhea","last_synced_at":"2026-04-29T02:02:48.066Z","repository":{"id":96506347,"uuid":"217071641","full_name":"dsx-tech/rhea","owner":"dsx-tech","description":"Reactive configuration framework for Kotlin and Java","archived":false,"fork":false,"pushed_at":"2020-07-19T13:17:38.000Z","size":1378,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-31T17:59:36.845Z","etag":null,"topics":["config","java","kotlin","reactive"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/dsx-tech.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":"2019-10-23T14:00:41.000Z","updated_at":"2021-09-15T19:06:48.000Z","dependencies_parsed_at":"2023-04-30T19:01:21.176Z","dependency_job_id":null,"html_url":"https://github.com/dsx-tech/rhea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dsx-tech/rhea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsx-tech%2Frhea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsx-tech%2Frhea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsx-tech%2Frhea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsx-tech%2Frhea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsx-tech","download_url":"https://codeload.github.com/dsx-tech/rhea/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsx-tech%2Frhea/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"online","status_checked_at":"2026-04-29T02:00:06.602Z","response_time":110,"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":["config","java","kotlin","reactive"],"created_at":"2024-11-19T00:49:14.250Z","updated_at":"2026-04-29T02:02:48.038Z","avatar_url":"https://github.com/dsx-tech.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rhea\n**Rhea** is a type-safe dynamic configuration library for JVM applications. This library uses *asynchronous data flows* that gives a natural auto-reloading feature in runtime, so it allows to change configuration properties and get the freshest values in your application without the need to restart.\n\n## Features\n* Open source project under the MIT License\n* Extendable with user-defined property types\n* Extendable with user-defined configuration sources\n* Supports reading configuration from files (.yaml, .properties, .json), Vault, JDBC, MongoDB\n\n## Getting Started\n\n### Setting up dependency\nTo get started, add `uk.dsxt:rhea-core:\u003cversion\u003e` as a dependency:\n\n#### Gradle\n```groovy\ndependencies {\n  compile group: \"uk.dsxt\", name:\"rhea-core\", version: \"0.0.1-SNAPSHOT\"\n}\n```\n\n#### Maven\n```xml\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003euk.dsxt\u003c/groupId\u003e\n    \u003cartifactId\u003erhea-core\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.1-SNAPSHOT\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n### Configuration Sources\nTo read configuration from source other than .properties, add its rhea module as a dependency.\nFor example, to add .json as configuration source:\n\n#### Gradle\n```groovy\ndependencies {\n  ...\n  compile group: \"uk.dsxt\", name:\"rhea-json\", version: \"0.0.1-SNAPSHOT\"\n}\n```\n\n#### Maven\n```xml\n\u003cdependencies\u003e\n    ...\n  \u003cdependency\u003e\n    \u003cgroupId\u003euk.dsxt\u003c/groupId\u003e\n    \u003cartifactId\u003erhea-json\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.1-SNAPSHOT\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\nNote: If configuration source is not supported, you can add it by implementing ConfigSource interface.\n                                                                                    \n## Usage\n### Java\n1. Build a configuration object that holds properties, add configuration sources \n\n    ```java\n    ConfigSource jsonSource =\n        new JsonConfigSource(Paths.get(\"src\" + File.separator + \"test\" + File.separator + \"resources\"), \"jsonSource.json\");\n        \n    ReactiveConfig config = new ReactiveConfig.Builder()\n        .addSource(\"jsonConfig\", jsonSource)\n        .build();\n    ```\n2. Create reloadable properties \n\n    ```java\n    Reloadable\u003cBoolean\u003e isSomethingOn = config.get(\"flag\", PropertyTypesKt.booleanType);\n    Reloadable\u003cInteger\u003e port = config.get(\"port\", PropertyTypesKt.intType);\n    \n    // access the freshest typed values with get()\n    Server server = new Server(port.get(), \"host\");\n    if (isSomethingOn.get()) {\n        server.start();\n    }\n    ```\n3. Also, you can add some complex logic that will execute every time the property is changed\n\n    ```java\n    port.onChange((Integer newValue) -\u003e {\n        // for example, restart server\n    });\n    ```\n### Kotlin\n1. Build a configuration object that holds properties, add configuration sources \n\n    ```kotlin\n    val jsonSource: ConfigSource =\n        JsonConfigSource(Paths.get(\"src\" + File.separator + \"test\" + File.separator + \"resources\"), \"jsonSource.json\")\n        \n    val config: ReactiveConfig = ReactiveConfig.Builder()\n        .addSource(\"jsonConfig\", jsonSource)\n        .build()\n    ```\n\n2. Create reloadable properties or declare objects that extend PropertyGroup to define hierarchies of properties\n\n    ```kotlin\n    val isSomethingOn: Realoadable\u003cBoolean\u003e = config[\"flag\", booleanType]\n    object server : PropertyGroup() {\n        val name by stringType\n        val port by intType\n    }\n    \n    // access the freshest typed values with get()\n    val server = Server(config[server.port].get(), config[server.name].get())\n    if (isSomethingOn.get()) {\n        server.start()\n    }\n    ```\n\n3. Also, you can add some complex logic that will execute every time the property is changed\n\n    ```kotlin\n    val port: Reloadable\u003cInt\u003e = config[server.port]\n    \n    port.onChange() {\n        // for example, restart server\n    }\n    ```\n## Extending\n### Property Types\nTo add a custom property type, you should create an instance of PropertyType class and provide it with default property value and parse function.\n\n### Configuration Sources\nTo support a new configuration source, you should implement ConfigSource interface.\n\n## Contributors\n* **Dmitry Vologin** - [GitHub account](https://github.com/vologin-dmitry)\n* **Alexandra Osipova** - [GitHub account](https://github.com/FemiLame)\n* **Anton Plotnikov** - [GitHub account](https://github.com/pltanton)\n* **Philipp Dolgolev** - [GitHub account](https://github.com/phil-dolgolev)\n\n## License\nThis project is licensed under the MIT License. The full text could be found in [LICENSE.md](https://github.com/dsx-tech/rhea/blob/master/LICENSE).\n\n## Acknowledgments\n* Inspired by Tinkoff ReactiveConfig and [Konfig](https://github.com/npryce/konfig)\n\n## Notes\n* [Rhea](https://en.wikipedia.org/wiki/Rhea_(mythology)) is one of the Titans in Greek mythology, the mother of the first generation of the Olympian gods\n* Rhea's name is believed to be derived from the word ῥέω (rheo), meaning “flow” or “ease”\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsx-tech%2Frhea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsx-tech%2Frhea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsx-tech%2Frhea/lists"}