{"id":37027169,"url":"https://github.com/soasada/popok","last_synced_at":"2026-01-14T03:12:54.802Z","repository":{"id":39747237,"uuid":"129934900","full_name":"soasada/popok","owner":"soasada","description":"Minimal interfaces and default classes to build HTTP based services on top of undertow.","archived":false,"fork":false,"pushed_at":"2025-06-27T17:46:38.000Z","size":295,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T15:19:23.132Z","etag":null,"topics":["http","http-api","http-server","https","jackson","java","json","json-async","undertow"],"latest_commit_sha":null,"homepage":"","language":"Java","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/soasada.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":"2018-04-17T16:33:39.000Z","updated_at":"2025-06-27T17:46:39.000Z","dependencies_parsed_at":"2024-04-16T18:01:16.347Z","dependency_job_id":"83524c40-e679-40d4-b06c-5c69637beab3","html_url":"https://github.com/soasada/popok","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/soasada/popok","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soasada%2Fpopok","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soasada%2Fpopok/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soasada%2Fpopok/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soasada%2Fpopok/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soasada","download_url":"https://codeload.github.com/soasada/popok/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soasada%2Fpopok/sbom","scorecard":{"id":835401,"data":{"date":"2025-08-11","repo":{"name":"github.com/soasada/popok","commit":"69e4563d50bcd47a41c6d5598723a671650b0f6a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 15 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":5,"reason":"6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T18:53:23.324Z","repository_id":39747237,"created_at":"2025-08-23T18:53:23.324Z","updated_at":"2025-08-23T18:53:23.324Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["http","http-api","http-server","https","jackson","java","json","json-async","undertow"],"created_at":"2026-01-14T03:12:54.091Z","updated_at":"2026-01-14T03:12:54.793Z","avatar_url":"https://github.com/soasada.png","language":"Java","readme":"[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.popokis/popok/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.popokis/popok) [![Total alerts](https://img.shields.io/lgtm/alerts/g/soasada/popok.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/soasada/popok/alerts/) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/soasada/popok.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/soasada/popok/context:java)\n\n# popok\nPopok provides useful classes to work with HTTP based APIs, execute SQL queries via raw JDBC and JSON asynchronous parsing.\n\n_Java 13 maven artifact_\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.popokis\u003c/groupId\u003e\n    \u003cartifactId\u003epopok\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.14\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### NOTE: Feel free to do a pull request or create an issue if you need any new features or find a bug.\n\n## Simple HTTP API example\n\nPopok use [undertow](https://github.com/undertow-io/undertow) as HTTP server, so creating a router is as simple as creating an undertow `HttpHandler`.\n\n```java\n// Router\nHttpHandler router = Handlers.path()\n  .addPrefixPath(\"/api/v1\", Handlers.routing()\n    .get(\"/hello\", (exchange) -\u003e {\n      exchange.setStatusCode(StatusCodes.OK);\n      exchange.getResponseSender().send(\"Hello World!\");\n    })\n  );\n// Create and start the server\nServer.builder(router)\n  .build()\n  .start();\n```\nAre you looking for a more advanced example? [Click here](https://github.com/soasada/undertow-vuejs)\n## Bootstrapping a Server\n\n[Server.java](/src/main/java/com/popokis/popok/http/Server.java) it's just an Undertow wrapper class to add some functionality such as: HTTPs/HTTP2 support and HTTP to HTTPs redirection. To instantiate a Server you have to provide an undertow `HttpHandler` as router and use the builder API that provides you the following methods:\n\n```java\n/**\n* Sets a different name for the properties configuration file.\n* If you don't use this method popok will look inside 'resources'\n* folder, looking for 'app.properties' default file.\n*/\npropertiesFilename(String name)\n```\n\n```java\n/**\n* Enables HTTPs support. You have to specify the keystore path,\n* popok will look inside 'resources' folder, looking for the 'keyStorePath'.\n*/\nenableHttps(String keyStorePath)\n```\n\n```java\n/**\n* Enables HTTP to HTTPs redirection. You have to specify which\n* HTTP `3XX` code you want to use.\n*/\nredirectToHttps(int statusCode)\n```\n\n```java\n/**\n* Enables HTTP2 support.\n*/\nenableHttp2()\n```\n\nThe mandatory fields, that popok needs for the properties configuration file, are:\n\n* `server.http.port` to specify the HTTP port (an integer).\n* `server.address` to specify the address of the server (an IP or `localhost`).\n\nAdditionally, you can specify optional configuration fields in order to activate HTTPs:\n\n* `server.https.port` to specify the HTTPs port (an integer).\n* `security.key.store.password` to specify the keystore password.\n\nAn example of `app.properties` file could be:\n\n```java\nserver.http.port=8080\nserver.address=localhost\nserver.https.port=8443\nsecurity.key.store.password=password\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoasada%2Fpopok","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoasada%2Fpopok","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoasada%2Fpopok/lists"}