{"id":47940107,"url":"https://github.com/drissiomar98/spring-ai-webflux-streaming","last_synced_at":"2026-04-04T08:00:14.016Z","repository":{"id":342875879,"uuid":"1174843724","full_name":"drissiOmar98/Spring-Ai-WebFlux-Streaming","owner":"drissiOmar98","description":"Example project demonstrating how to stream LLM tokens reliably using Spring AI, WebFlux, and NDJSON instead of SSE. Includes backpressure handling, error recovery, and a Vaadin client consuming the NDJSON stream.","archived":false,"fork":false,"pushed_at":"2026-03-07T20:44:31.000Z","size":943,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-04T08:00:02.044Z","etag":null,"topics":["docker","docker-compose","java","llms","multi-stage-docker","ollama","spring-ai","spring-boot","streaming","vaadin","vaadin-flow","webflux"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drissiOmar98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-03-06T22:47:24.000Z","updated_at":"2026-03-20T03:13:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/drissiOmar98/Spring-Ai-WebFlux-Streaming","commit_stats":null,"previous_names":["drissiomar98/spring-ai-webflux-streaming"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drissiOmar98/Spring-Ai-WebFlux-Streaming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drissiOmar98%2FSpring-Ai-WebFlux-Streaming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drissiOmar98%2FSpring-Ai-WebFlux-Streaming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drissiOmar98%2FSpring-Ai-WebFlux-Streaming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drissiOmar98%2FSpring-Ai-WebFlux-Streaming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drissiOmar98","download_url":"https://codeload.github.com/drissiOmar98/Spring-Ai-WebFlux-Streaming/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drissiOmar98%2FSpring-Ai-WebFlux-Streaming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31392188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"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":["docker","docker-compose","java","llms","multi-stage-docker","ollama","spring-ai","spring-boot","streaming","vaadin","vaadin-flow","webflux"],"created_at":"2026-04-04T08:00:13.645Z","updated_at":"2026-04-04T08:00:13.994Z","avatar_url":"https://github.com/drissiOmar98.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring AI Streaming Demo\n\nProject for demonstrating the approach to streaming AI responses with NDJSON.\n\n## Project Structure\n\nThe project consists of two main modules:\n\n1. **frontend**: provides the Vaadin-based UI\n2. **backend**: provides AI-powered responses using Ollama\n\n## Prerequisites\n\n- Java 25\n- Docker and Docker Compose\n\n## Running the Application\n\n### Using Docker Compose\n\n1. Build and start the containers:\n   ```bash\n   docker-compose up -d\n   ```\n\n2. Access the frontend at http://localhost:8081\n\n### Running Locally\n\n1. Start Ollama:\n   ```bash\n   docker-compose up -d ollama\n   ```\n   \n   Alternatively, you can run Ollama locally:\n   ```bash\n   ollama pull llama3.2:3b\n   ollama serve\n   ```\n\n2. Build and run the frontend module:\n   ```bash\n   cd frontend\n   ./mvnw spring-boot:run\n   ```\n\n3. Build and run the backend module:\n   ```bash\n   cd backend\n   ./mvnw spring-boot:run\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrissiomar98%2Fspring-ai-webflux-streaming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrissiomar98%2Fspring-ai-webflux-streaming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrissiomar98%2Fspring-ai-webflux-streaming/lists"}