2
5 Comments

UI for setting rules

Ok so here is the dilema:

I need to alow users to set up rules for pasing incomming JSON data. What I struggle to decide is how to set up the UX for them to be able to do it as painless as possible.

This is for my webhok.com project where you get the ability to consume webhook JSON data and set rules that then trigger actions.

As you can imagine webhok JSON data can be quite big. So what would be the most intuitive way to design rules?

p.s. For example GitHub/Bitbucket JSON data. Based on the JSON received you want to trigger some CI pipelines for example. And you could set a finegrained rulles that certain CI/CD triggers only for specific tags in a git repo (I personally used this aproach to build docker containers)

Any feed back will be much appreciated! :)

on July 3, 2023
  1. 1

    I don't know if it is helpful but checkout https://pipedream.com/
    They have similar feature (http/webhook API), they are open-source and they way they handle UI for JSON payload is pretty good.

    1. 1

      I had a look, can take inspiration from this. Is simmilar to what I planed to do.

      Are you an active user of pipedream? How did you find them?

      1. 2

        I am not an active user, only used it once or twice in my previous company.

        Took me 5min to build a custom workflow to trigger an API whenever user complete a google form so I am quite happy with the product. I think zapier/IFTTT were quite expensive so I was looking for an alternative. I managed to stay within free tier with Pipedream.

  2. 1

    As you can imagine webhook JSON data can be quite big. So what would be the most intuitive way to design rules?

    I would say there are two things you could do:

    • A generic editor using jq [1] where people could save templates. Maybe even build a separate page to build jq-templates
    • Provide templates to non-technical people.
    • If this gets traction you might want to build something like that people can highlight the things in the JSON they are looking for and you create the jq query programmatically (or even with Chat GPT)

    [1] https://jqlang.github.io/jq/

    1. 1

      What I'm thinking right now is to just have a table with key/value pairs and a search box. So you can easily find the data you are looking for and then set simple rules like 'mustMatch | startsWith | endsWith | contains'.

      After I get some traction and paid users I can see most frequent usecases and add templates for those scenarios. But in the start for paid users they could save rules as private templates too.

  3. 1

    This comment was deleted 2 years ago.

Trending on Indie Hackers
I spent $0 on marketing and got 1,200 website visitors - Here's my exact playbook User Avatar 58 comments Veo 3.1 vs Sora 2: AI Video Generation in 2025 🎬🤖 User Avatar 27 comments Codenhack Beta — Full Access + Referral User Avatar 21 comments I built eSIMKitStore — helping travelers stay online with instant QR-based eSIMs 🌍 User Avatar 20 comments 🚀 Get Your Brand Featured on FaceSeek User Avatar 18 comments Day 6 - Slow days as a solo founder User Avatar 16 comments