{"id":37679596,"url":"https://github.com/nlsfi/hakunapi","last_synced_at":"2026-01-16T12:22:32.938Z","repository":{"id":81589301,"uuid":"586891278","full_name":"nlsfi/hakunapi","owner":"nlsfi","description":"OGC API Features Java server","archived":false,"fork":false,"pushed_at":"2025-12-29T14:20:57.000Z","size":2926,"stargazers_count":16,"open_issues_count":23,"forks_count":4,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-01-01T16:53:19.767Z","etag":null,"topics":["gis","java","ogc-api","web-gis"],"latest_commit_sha":null,"homepage":"https://github.com/nlsfi/hakunapi","language":"Java","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/nlsfi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","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-01-09T13:29:35.000Z","updated_at":"2025-10-21T05:48:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f428b7f-1c3e-4d0a-8830-5106f7728e50","html_url":"https://github.com/nlsfi/hakunapi","commit_stats":{"total_commits":121,"total_committers":6,"mean_commits":"20.166666666666668","dds":0.3471074380165289,"last_synced_commit":"0a92711b7f1f21906ba54f5716bbbd85eb5fdd4b"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/nlsfi/hakunapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlsfi%2Fhakunapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlsfi%2Fhakunapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlsfi%2Fhakunapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlsfi%2Fhakunapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlsfi","download_url":"https://codeload.github.com/nlsfi/hakunapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlsfi%2Fhakunapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["gis","java","ogc-api","web-gis"],"created_at":"2026-01-16T12:22:32.854Z","updated_at":"2026-01-16T12:22:32.924Z","avatar_url":"https://github.com/nlsfi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"hakunapi_logo_v1.png\" alt=\"hakunapi logo\" width=\"350\"/\u003e\n\n# Hakunapi OGC API Features Server\n\nA server implementation of OGC API Features\n\n* OGC API - Features - Part 1: Core\n* OGC API - Features - Part 2: Coordinate Reference Systems by Reference\n* OGC API - Features - Part 3: Filtering and Common Query Language (CQL2)\n\nA server implementation of OGC API Features\n(follow development @ https://ogcapi.ogc.org/features/)\n\nFocus on:\n\n* Simple features backed by a PostGIS database\n* High performance (achieved with streaming and by reducing the amount of garbage created)\n\nhakunapi-simple-servlet module builds into a \"off-the-shelf\" OGC API Features server that you drop into your servlet\ncontainer and configure with an outside configuration file.\n\nhakunapi can also be used as a \"framework\" for building your own customized implementation (for example if you want to\nsupport Complex Features). The framework is modular and the modules should fit together well, you are free to\nmix-and-match.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## Example\n\nCheck out [Finnish addresses](examples/finnish_addresses)\n\n## Quick Start\n\n### Docker\n\nTo quickly get started with hakunapi, you can use the provided docker compose file found under `docker`.\n\nThis is broken down into two parts\n\n#### Database (db)\n\nThis is a postgis database (as of now using postgres 18) with example data and tables.\n\n- Username: address_reader\n- Password: test\n\n#### Hakunapi server (hakunapi)\n\nThis is the hakunapi server running in a tomcat container (tomcat 10).\n\n- URL: http://localhost:8080/features\n\nBy default, this will be exposed on port 8080.\nYou can also remotely connect to it via JVM debug using port 41467.\n\n#### Building and running\n\nTo build and run the docker containers, navigate to the `docker` folder and run\n\n```shell\ncd docker\ndocker compose up -d\n```\n\nIf you need to rebuild the images (for example if you have made changes to the code), run\n\n```shell\ncd docker\ndocker compose up -d --build\n```\n\nYou can also modify the docker compose to mount the features.war from your local build if you want to test changes without rebuilding the image.\n\n```yaml\n    volumes:\n      # mount the working example config dir so hakunapi can read addresses.properties (read-only)\n      - ./cfg:/app/config:ro \n      - ../webapp-jakarta/hakunapi-simple-webapp-jakarta/target/features.war:/usr/local/tomcat/webapps/features.war:ro\n```\n\n### Docker - Hotreload development\n\nThere is another docker compose file that will set up the image for hot reaload using [hotswap agent](https://hotswapagent.org/index.html).\n\n#### Dockerfile-hotreload\n\nA multi-stage Dockerfile is provided to build hakunapi and run it on Tomcat.\n\nBecause of this some potential oddities\n\n- This is pulling a new jdk and not using the provided 21 image.\n    - This is because the default jdk does not support dvcem needed for hot reload of classes.\n- It is downloading hotswap agent from github releases.\n    - This will allow hot reload of classes when debugging remotely. (along with the updated JDK)\n\n#### Building and running\n\nIn order to get the full benefit of hot reloading, you need to do a `mvn clean install -DskipTests` to build the\nclasses.\n\nThen you can build and run the docker container with\n\n```shell\ncd docker\ndocker compose -f docker-compose-hot-reload.yml up -d --build\n```\n\nOnce everything is up and running, you can access the server at http://localhost:8080/features.\n\nTo hot reload\n - You must connect to the container from your IDE, this will trigger the changes to be reflected in the running container.\n   - IntelliJ IDEA: Run -\u003e Edit Configurations -\u003e Remote JVM Debug\n     - Make sure to set port to \"41467\", don't use the default \"5005\" (or edit the docker compose file to match)\n     - Also Be sure that you have \"Reload classes after compilation: Always\" ON in IntelliJ IDEA in HotSwap section in your IDEA preferences.\n     - See https://hotswapagent.org/mydoc_setup_intellij_idea.html for a little more info (you can ignore most of the set up, just step 4+5)\n   - Eclipse: Run -\u003e Debug Configurations -\u003e Remote Java Application (untested)\n - After connecting, you can make changes to the code and recompile (usually Ctrl+F9 or Cmd+F9) and the changes should be reflected in the running container.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlsfi%2Fhakunapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlsfi%2Fhakunapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlsfi%2Fhakunapi/lists"}