How shaikumarr/post-craft works
PostCraft collects an achievement, tone, and skills in a browser form, sends them to the Spring endpoint, generates post content with Gemini, and returns content, hashtags, and engagement tips for display. The README also documents saving generated posts to a database. The persistence implementation is not present in the supplied tree, so it is represented without an invented source path. The agent-service implementation and request DTO were not excerpted; their relationships are included only where the README explicitly describes them.
Main entry points: LinkedinAgentService.java Post generation workflow · LinkedinController.java Generate endpoint · index.html PostCraft interface · app.js Form and results
Components 14
Browser experience
- PostCraft interface
src/main/resources/static/index.html - Form and results
src/main/resources/static/app.js - Responsive styling
src/main/resources/static/style.css
Generation backend
- Generate endpoint
src/main/java/com/linkedin_agent_ai/controller/LinkedinController.java - Post request
src/main/java/com/linkedin_agent_ai/dto/PostRequest.java - Post generation workflow
src/main/java/com/linkedin_agent_ai/service/LinkedinAgentService.java - Gemini prompt and parsing
src/main/java/com/linkedin_agent_ai/service/GeminiService.java - Post response
src/main/java/com/linkedin_agent_ai/dto/PostResponse.java - Post history persistence
- Spring Boot application
src/main/java/com/linkedin_agent_ai/LinkedinAgentAiApplication.java - HTTP client configuration
src/main/java/com/linkedin_agent_ai/config/RestTemplateConfig.java
External services
- Post history database
- Google Gemini API
Other components
- Post creator
Connections 13
- Post creator → PostCraft interface: enters details
README.md - PostCraft interface → Form and results: loads interface
README.md - Form and results → Generate endpoint: POSTs request
README.md - Generate endpoint → Post request: accepts
src/main/java/com/linkedin_agent_ai/controller/LinkedinController.java - Generate endpoint → Post generation workflow: delegates
src/main/java/com/linkedin_agent_ai/controller/LinkedinController.java - Post generation workflow → Gemini prompt and parsing: requests generation
README.md - Gemini prompt and parsing → Google Gemini API: calls generateContent
src/main/java/com/linkedin_agent_ai/service/GeminiService.java - Post generation workflow → Post history persistence: saves post
README.md - Post history persistence → Post history database: stores history
README.md - Post generation workflow → Post response: returns result
README.md - Form and results → Post response: renders result
README.md - PostCraft interface → Responsive styling: uses styling
README.md - Spring Boot application → Generate endpoint: serves endpoint