Skip to main content

Command Palette

Search for a command to run...

Flux + URLEng

Using URLEng with Flux/IOx Clients

Updated
Flux + URLEng

Using Flux with URL Engine

👇 Ready? Get your own table in zero minutes ⏱️

You're about to create your very own serverless, storage persistent URL Engine table - fast, free and always accessible from anywhere. Since there are no logins or signups, all data is hidden in public. The only protection is your own secret URL path.

Choose a unique URL path

We will use the Flux HTTP Client to query data to/from our service.

Let's go through our examlpe using FluxPipe

Live Demo

Replace mY5uPeRs3Cre7tok3N with your Token and click Run

Flux Script

Here is the full Flux script for reference

import "experimental/http/requests"
import ejson "experimental/json"
import "json"
import "array"

urleng = "https://urleng.com/mY5uPeRs3Cre7tok3N"

store =
 requests.post(
         url: urleng,
         body: json.encode(v: [{"key":"flux","value":100}]),
         headers: ["Content-Type": "application/json"],
     )

response =
     requests.get(
         url: urleng
     )

data = ejson.parse(data: response.body)
array.from(rows: data)

CURL

We can perform the same actions using curl or any other HTTP GET/POST client.

POST ndjson

curl -s -XPOST https://urleng.com/mY5uPeRs3Cre7tok3N-H 'Content-Type:application/x-ndjson' --data-binary @ndjson.txt

POST json

curl -X POST https://url-engine.metrico.in/mY5uPeRs3Cre7tok3N-H 'Content-Type: application/json' -d '[{"key":"curl","value":1}]'

GET json

curl -X GET https://urleng.com/mY5uPeRs3Cre7tok3N


That's it

Enjoy your free, bottomless URL table! Use it to share small datasets, states, k/vs and anything you can think of between your nodes as if they were a distributed cluster.

💬 Found a problem? Got some feedback or ideas?
Please open an Issue or start a Discussion in our community

🟨🟨🟨
🟨🟨🟨
🟥🟨🟨

More from this blog

U

URLENG.COM

3 posts

Like a pastie, but for database tables. Free, Serverless, Distributed.