Is it possible to somehow give panel a blueprint from code? What I mean - instead of loading yaml file, the panel should run some code-in this case a database query-and get the blueprint that way?
(I assume that yaml is internally converted to json upon loading)
No, you need the yaml files, unless you somehow generate them via code or create custom views.
So no runtime blueprints?
Wait, no; reading the source code and documentation in here: https://getkirby.com/docs/reference/plugins/extensions/blueprints, there actually is a way to programmatically create a blueprint… woo
Thanks @texnixe anyway