Skip to content

Custom DTD services #61061

@dumazy

Description

@dumazy

I wonder if it would be possible to add custom DTD services, to allow custom devtools extensions to run code outside of the front-end.

I'm currently dealing with an issue where I need to call an API in my devtools extension, but I'm blocked by CORS headers. I want to move the API request to run on the back-end to avoid this and was thinking if it would be possible to have an extension on the back-end side of the devtools.
Other solutions would be to run a separate app locally, acting as a proxy, to send the requests to the external API, but I want to avoid the tedious setup and have everything available via a single devtools extension.
I think this could allow a lot of other possibilities as well.

I've been looking into how DTD sets up internal services and registers them to a DtdClient, allowing devtools to interact with them and I wonder if we could extend this with custom services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.pkg-dtdFor issues related to the Dart Tooling Daemon (package:dtd or pkg/dtd_impl within the Dart SDK)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions