Allow transformation on subscription
Feature request: Please add support for applying transformations directly on subscription events within hook0. This would enable modifying data before forwarding to downstream services, improving flexibility for use cases where raw event data is not sufficient. Example scenarios: masking sensitive fields, mapping keys, enriching payload, performing format conversions.
Hi! This is indeed a feature we would like to have but it is not trivial to design nor implement. We probably won't release this soon except if we have a customer that needs it and can provide us feedback as we work on it. Could you tell me a bit more about your particular use case?
Feature request: Please add support for applying transformations directly on subscription events within hook0. This would enable modifying data before forwarding to downstream services, improving flexibility for use cases where raw event data is not sufficient. Example scenarios: masking sensitive fields, mapping keys, enriching payload, performing format conversions.
1/ @nikhilmuz Could you please provide some real world scenario you have with example data in and data out transformation ?
2/ @nikhilmuz In what language are you fluent ? What would be the best language to support from your PoV and your requirements ?
Hi @FGRibreau Thanks for showing interest in issue.
Could you please provide some real world scenario you have with example data in and data out transformation ?
There can be several use cases I can think of and most of such service already have this feature. We require such implementation in our org to send out B2B events where we can do out of the box event syncing by transforming source payload as per receiving end ERP. This fastens integrations in B2B scenario or enterprise level deals where we are not providing standard webhook payload as a product rather consuming subscribed events to their ERP without involving much code or developer effort.
Example:
Assume two ecommerce portals having business deal that they delegate few of their orders to their partner and sync order status through webhooks. First portal is custom built and integrated this project for webhooks and pushing all of their events to it and other is using something like Shopify.
The first portal sends some event like
{"type": "ecomm.delivery.success", "order_id": "1234", "message":"Order Delivered"}
The other portal can directly consume this but with a transformation like
{ "delivery": { "status": "delivered" }, "external_order_id": "1234" }
In what language are you fluent ? What would be the best language to support from your PoV and your requirements ?
We are language agonistic and transformation logic doesn't involve lot of code anyway but as per me Javascript is best for this rather than building custom markup language and provided it's dynamic nature and vast user-base.
Thank you for this detailed proposal. We truly appreciate the effort and thought you've put into it.
While custom transformations are a powerful idea, they are not on our immediate public roadmap as our team is focused on other core priorities.
However, we do offer prioritized feature development as a commercial service. If this is something you'd be interested in sponsoring, please reach out to us at [email protected]. We'd be happy to discuss the scope and provide a quote.
Thanks again for your valuable input!