Send data from frontend to jupyter-server without kernel

I want to setup messaging between back-end and front-end without kernel. Want to send data to back-end via API or some others tools. What approaches i can use?