{"id":50674000,"url":"https://github.com/parakeet-nest/parakeet4j","last_synced_at":"2026-06-08T14:04:01.655Z","repository":{"id":243185087,"uuid":"811709449","full_name":"parakeet-nest/parakeet4j","owner":"parakeet-nest","description":"🦜🪺☕️ Parakeet4J is a Java library, made to simplify the development of small generative AI applications with Ollama 🦙.","archived":false,"fork":false,"pushed_at":"2024-08-17T20:50:02.000Z","size":109,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-08-18T06:27:25.001Z","etag":null,"topics":["ai","genai","java","llm","ollama","slm"],"latest_commit_sha":null,"homepage":"","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/parakeet-nest.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":"2024-06-07T06:32:22.000Z","updated_at":"2024-08-18T06:21:54.000Z","dependencies_parsed_at":"2024-06-07T08:00:48.571Z","dependency_job_id":"e0499b42-f8d4-49be-9edc-ffa5c6cfc936","html_url":"https://github.com/parakeet-nest/parakeet4j","commit_stats":null,"previous_names":["parakeet-nest/parakeet4j"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/parakeet-nest/parakeet4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parakeet-nest%2Fparakeet4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parakeet-nest%2Fparakeet4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parakeet-nest%2Fparakeet4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parakeet-nest%2Fparakeet4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parakeet-nest","download_url":"https://codeload.github.com/parakeet-nest/parakeet4j/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parakeet-nest%2Fparakeet4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34065357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":["ai","genai","java","llm","ollama","slm"],"created_at":"2026-06-08T14:04:00.798Z","updated_at":"2026-06-08T14:04:01.646Z","avatar_url":"https://github.com/parakeet-nest.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦜🪺☕️ Parakeet4J\n\nParakeet4J is the simplest Java library to create **GenAI apps** with **[Ollama](https://ollama.com/)**.\n\n\u003e A GenAI app is an application that uses generative AI technology. Generative AI can create new text, images, or other content based on what it's been trained on. So a GenAI app could help you write a poem, design a logo, or even compose a song! These are still under development, but they have the potential to be creative tools for many purposes. - [Gemini](https://gemini.google.com)\n\n\u003e ✋ Parakeet4J is only for creating GenAI apps generating **text** (not image, music,...).\n\n## Hello World!\n\n```java\npublic class Hello\n{\n    public static void main( String[] args )\n    {\n        Options options = new Options()\n                .setTemperature(0.0)\n                .setRepeatLastN(2);\n\n        var systemContent = \"You are a useful AI agent, expert with programming\";\n        var userContent = \"Generate a Hello World program in GoLang.\";\n\n        List\u003cMessage\u003e messages = List.of(\n                new Message(\"system\", systemContent),\n                new Message(\"user\", userContent)\n        );\n\n        Query queryChat = new Query(\"deepseek-coder\", options).setMessages(messages);\n\n        var resultAnswer = ChatStream(\"http://0.0.0.0:11434\", queryChat,\n                chunk -\u003e {\n                    System.out.print(chunk.getMessage().getContent());\n                    return null;\n                });\n\n        if(resultAnswer.exception().isEmpty()) {\n            System.out.println(\"🙂: \" + \n                    resultAnswer.getAnswer().getMessage().getContent()\n            );\n        } else {\n            System.out.println(\"😡: \" + \n                    resultAnswer.exception().toString()\n            );\n        }\n    }\n}\n```\n\n## Install\n\nThis library project use the [GitHub Maven Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry). So, to use it in your projects, use the following steps.\n\n### First\n\nCreate (or update) a file: `~/.m2/settings.xml` with the following content\n\n```xml\n\u003csettings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\"\n  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n  xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0\n                      http://maven.apache.org/xsd/settings-1.0.0.xsd\"\u003e\n\n  \u003cactiveProfiles\u003e\n    \u003cactiveProfile\u003egithub\u003c/activeProfile\u003e\n  \u003c/activeProfiles\u003e\n\n  \u003cprofiles\u003e\n    \u003cprofile\u003e\n      \u003cid\u003egithub\u003c/id\u003e\n      \u003crepositories\u003e\n        \u003crepository\u003e\n          \u003cid\u003ecentral\u003c/id\u003e\n          \u003curl\u003ehttps://repo1.maven.org/maven2\u003c/url\u003e\n        \u003c/repository\u003e\n        \u003crepository\u003e\n          \u003cid\u003egithub\u003c/id\u003e\n          \u003curl\u003ehttps://maven.pkg.github.com/parakeet-nest/parakeet4j\u003c/url\u003e\n          \u003csnapshots\u003e\n            \u003cenabled\u003etrue\u003c/enabled\u003e\n          \u003c/snapshots\u003e\n        \u003c/repository\u003e\n      \u003c/repositories\u003e\n    \u003c/profile\u003e\n  \u003c/profiles\u003e\n\n  \u003cservers\u003e\n    \u003cserver\u003e\n      \u003cid\u003egithub\u003c/id\u003e\n      \u003cusername\u003eyour GitHub handle\u003c/username\u003e\n      \u003cpassword\u003eyour GitHub token\u003c/password\u003e\n    \u003c/server\u003e\n  \u003c/servers\u003e\n\u003c/settings\u003e\n```\n\n### Then\n\nAdd this section to your `pom.xml` file:\n\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.parakeetnest.parakeet4j\u003c/groupId\u003e\n        \u003cartifactId\u003eparakeet4j\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.7\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparakeet-nest%2Fparakeet4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparakeet-nest%2Fparakeet4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparakeet-nest%2Fparakeet4j/lists"}