Hy

HyperMap – a new REST API standard that supports client-side JavaScript

Hacker News

HyperMap – a new REST API standard that supports client-side JavaScript

Hi HN! HyperMap is a new standard for REST APIs that supports client-side code execution. That means the server can send JavaScript or WebAssembly to the client to run locally. This is the same execution model as the Web, and given that it's pretty clear that client-side JavaScript has been instrumental to the Web's success I think we should be taking advantage of this capability for our APIs. This project was the result of many years of banging my head against a wall designing and integrating REST APIs. Over that time it feels like we want our APIs to do more and more, and the result is ever more documentation, specifications, and client wrappers/SDKs. It's a ton of work to build, maintain, and integrate. Is that the best we can do? Two approaches looked promising to me: hypermedia and GraphQL, but having spent time with both I don't think they were the silver bullet I was looking for. Hypermedia's focus on navigation didn't seem to solve problems I saw in most APIs, and GraphQL's initial hype seems to have died somewhat as people realise it's best in quite a narrow domain. It occurred to me a little while ago that the REST architecture was abstracted from the Web, and includes "code on demand" as an optional constraint — basically, sending JavaScript to run in the client. Could that be useful for APIs? After some experimentation with different hypermedia formats, I ended up designing a new, minimalist format that was very easy for existing JSON-based REST APIs to adopt, along with a mini-DOM like interface for scripts to interact with the representation. It's early but the results seem exciting! Using HyperMap you can do things like get rid of Webhooks, incorporate live, streaming data into your regular REST responses, and even move processing/analytics to the client for privacy or latency reasons. Because you have the full power of JavaScript and all the modern Web APIs to hand I expect a people to discover a whole load of interesting use cases I haven't even thought of! I'd love feedback on the direction and the design. The project's very early so there's still a substantial amount of design and development still do — contributions of any kind are more than welcome!

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports · Missing: reddit linkedin, podcasting, created
95%95% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: model, new, using · Missing: mac, agents, macos
78%78% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: exist, existing, ide · Missing: https docs, excited, just released
66%66% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface · Missing: plus, platform, intuitive
34%34% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
28%28% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
11%11% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

I
I made a REST API client in JavaScript36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a REST API client in JavaScript

Hacker News1
Ru
RubyShift – A Ruby Client for OpenShift REST API37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

RubyShift – A Ruby Client for OpenShift REST API

Hacker News3
We
Webhdfs-clj – Clojure Client for Hadoop WebHDFS Rest API46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Webhdfs-clj – Clojure Client for Hadoop WebHDFS Rest API

Hacker News1
Ye
Yet Another REST Client (JavaScript)47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Yet Another REST Client (JavaScript)

Hacker News1
Ep
Ephemeral REST API54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ephemeral REST API

Hacker News2
Ko
Kotlin-tutorial for securing a REST API30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Kotlin-tutorial for securing a REST API

Hacker News3
Qu
Quanra, a REST API for QuantLib40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Quanra, a REST API for QuantLib

Hacker News1
Qu
Quickbooks REST API40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Quickbooks REST API

Hacker News2
NJ
NJ Transit REST API40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

NJ Transit REST API

Hacker News6
NJ
NJ Transit REST API40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

NJ Transit REST API

Hacker News2