{"id":42761222,"url":"https://github.com/starwit/sae-database-writer","last_synced_at":"2026-01-29T20:34:09.957Z","repository":{"id":213406698,"uuid":"649079161","full_name":"starwit/sae-database-writer","owner":"starwit","description":"A redis/valkey client, that stores all SAE data into a database.","archived":false,"fork":false,"pushed_at":"2025-09-15T10:31:49.000Z","size":85,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-15T12:24:09.242Z","etag":null,"topics":["sae","vision-api"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starwit.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-03T17:53:27.000Z","updated_at":"2025-09-07T11:17:44.000Z","dependencies_parsed_at":"2025-08-22T18:56:13.138Z","dependency_job_id":"87da9040-94b3-4f5c-b40a-615553b7feba","html_url":"https://github.com/starwit/sae-database-writer","commit_stats":null,"previous_names":["starwit/vision-api-jms-client","starwit/sae-database-writer"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/starwit/sae-database-writer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fsae-database-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fsae-database-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fsae-database-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fsae-database-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starwit","download_url":"https://codeload.github.com/starwit/sae-database-writer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fsae-database-writer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28884291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T19:55:09.949Z","status":"ssl_error","status_checked_at":"2026-01-29T19:55:08.490Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["sae","vision-api"],"created_at":"2026-01-29T20:34:08.677Z","updated_at":"2026-01-29T20:34:09.949Z","avatar_url":"https://github.com/starwit.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database writer for Vision API\nThis repo implements a Valkey/Redis client, that can receive and parse Vision API messages and then writes the serialized messages in JSON format into a Postgres database. It attaches to multiple Valkey streams. Currently, message types `SAE`, `POSITION` and `DETECTION_COUNT` are supported.\n\nOn application start the database schema is created / validated using Flyway.\n\nThis component is part of the Starwit Awareness Engine (SAE). See umbrella repo here: https://github.com/starwit/starwit-awareness-engine\n\n## Development\n- Add vision-api package repository to your Maven config, as described [here](https://github.com/starwit/vision-api#java--maven)\n- `deployment` contains a docker compose file that can be used to start the necessary database and valkey instances\n- Use sae-tools / a running SAE instance to write interesting messages onto the configured streams\n```sh\n# Start database and Valkey instance (in deployments)\ndocker compose up\n\n# Start saedump playback (in starwit-awareness-engine/tools/sae-introspection)\n# You can use the short exemplary dumpfile src/test/resources/test_positionsource.saedump\npoetry run python play.py --fixed-interval 1s --adjust-timestamps \u003cdumpfile_name\u003e\n\n# Run database-writer (and log messages)\nLOGGING_LEVEL_DE_STARWIT=debug mvn spring-boot:run\n\n# Look at database entries arriving\nwatch \"docker compose exec db psql -U postgres database_writer -P pager=off -c 'SELECT * FROM messages order by id desc limit 1'\"\n```\n\n## Configuration\nSee `application.properties` for available configuration values.\n\n## Debugging\nThe log level of the relevant parts can be set through the Spring Boot property `LOGGING_LEVEL_DE_STARWIT`, default is `info`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarwit%2Fsae-database-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarwit%2Fsae-database-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarwit%2Fsae-database-writer/lists"}