Crate - Design by Introspection for D web APIs

WebFreak001 d.forum at webfreak.org
Tue Mar 3 08:33:38 UTC 2026


On Friday, 27 February 2026 at 22:19:20 UTC, Bogdan Szabo wrote:
> Hey all,
>
> [...]
>
> Feedback welcome.

this is epic and just what I always needed, but never knew I 
wanted. Thanks for all the hard work on this!

Docs were well written and a treat to read, I'm very eager to try 
it out tonight.

Perhaps I can add this as a default project template with some 
kind of default React frontend + OpenAPI generation pipeline + 
vite to code-d as well.

btw, DUB also supports project templates / automatic 
initialization through `dub init -t crate` if you define a 
subpackage called `init-exec` and make it create the files and 
code like this (runs any D code so you can also do CLI prompts 
asking stuff):

https://github.com/rorm-orm/dorm/blob/5c54321367d11b0b2cfca02dc46c693fe07ca176/dub.json#L38
https://github.com/rorm-orm/dorm/blob/5c54321367d11b0b2cfca02dc46c693fe07ca176/init-template/source/app.d


More information about the Digitalmars-d-announce mailing list