DEV Community

Hans-Helge Buerger
Hans-Helge Buerger

Posted on

Looking for good practices for JS SDK

I have built an online service with Laravel*, which has a REST API to interact with. Now I'm going to build a CLI tool to send data to the service using JS. I'm fairly new to CLI tools with JS. For this CLI tool I want to write a separated SDK so others can use it as well.

What are good / best practices to write an REST SDK in JavaScript? Do you have some advice for me or do you know a good SDK I can dig into?

I appreciate your help!

* it's called Speedtest Collector if you're interested.

Top comments (3)

Collapse
 
obstschale profile image
Hans-Helge Buerger

Thx. That looks promising. I will take a deeper look in the next days.

 
obstschale profile image
Hans-Helge Buerger

Kind of. Depends on you if its interessting ;)

You probably know speedtest.net or other speedtest sites. I work on a service, which saves the speedtest and displays graphs and statistics for your internet connection. The service is called Speedtest Collector.

To make it easier for the user, I work on a JS CLI tool to make speedtests and send them directly to my service. Therefore, I want to create an SDK to dogfeed it in my CLI tool.

If you're interested, you can sign up for the newsletter and I send you an eMail whenever its ready.

Collapse
 
obstschale profile image
Hans-Helge Buerger

It seems there are not good practices for JS SDKs. ¯_(ツ)_/¯