What is it?
In my company, we follow a hexagonal architecture in Java on a project… which means every time you tweak an entity, you’re forced to manually update an Entity, a Mapper, a Controller, ports, adapters… rinse and repeat. That repetitive grind got old fast. So I built HexAPI Generator, a visual way to define your entities and automatically spit out every class you need via Jinja2 templates.
Why I made it
- To save hours of boilerplate work at the office.
- To solidify my full-stack chops and prove I can solve real-world pain points.
- To beef up my portfolio with a tool I actually use every day.
What’s inside (v0.1)
- Tkinter/ttkbootstrap GUI – define multiple entities, fields, types, comments, test values… all in one popup.
- JSON project config – company, project name, package, table metadata alongside your entity schemas.
- Jinja2 templates – generate Entity, Mapper, Controller, DataSource Port & Adapter, all following clean-code and DDD principles.
- Light/Dark mode support – because staring at code for hours demands a proper theme.
Try it yourself
This project is open source under Apache. Fork it, remix it, integrate it into your stack – just don’t forget to ⭐ the repo for a dopamine hit 🙏.
🔗 View the code on GitHub : https://github.com/Bertrand2808/Hexapi
Top comments (2)
This is exactly the kind of repetitive headache that needs automating - love that you made it visual and stuck with DDD. Bookmarked! Any plans to add templates for other languages or stacks in the future?
Thank you so much for your comment! 🙌
Indeed it is quite conceivable! Different stacks, different architectures, I can envisage many things for a future version, I'll have to look into it now!