Crate - Design by Introspection for D web APIs
Bogdan Szabo
contact at szabobogdan.com
Tue Mar 3 10:03:09 UTC 2026
On Tuesday, 3 March 2026 at 08:33:38 UTC, WebFreak001 wrote:
> 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
This is cool! I did not know this feature existed. I will add a
tamplate based on how I use it in my projects.
For web frontends, I use Ember because Ember Data with the REST
adapter is just awesome.
More information about the Digitalmars-d-announce
mailing list