Live data from Hacker News

Show HN: API Marketplace for Developers by Developers

askmacgyver.com

31–40 of 43 posts

Re: Show HN: API Marketplace for Developers by Developers

#31
Ok, so the signup and things are working now, how do I actually add an api endpoint?

You have docs for accessing it but I can't find any for me building an api endpoint. The docs also seem to suggest I use a client library called "kittn", which I'm pretty sure is wrong.

Your FAQ is empty.

Your blog has nothing (as far as I can see) to do with your product.

I've made a new program, but it's asking me for "the program file". What file? What formats, how do I specify dependencies, what API should I be building this against?

I'm trying not to be too negative, but I am really actually trying to use your product and am failing.

Re: Show HN: API Marketplace for Developers by Developers

#32
post #31

Ok, so the signup and things are working now, how do I actually add an api endpoint? You have docs for accessing it but I can't find any for me building an api endpoint. The docs also seem to suggest I use a client library called "kittn", which I'm pretty sure is wrong. Your FAQ is empty. Your blog has nothing (as far as I can see) to do with your product. I've made a new program, but it's asking me for "the program…

>You have docs for accessing it but I can't find any for me building an api endpoint. The docs also seem to suggest I use a client library called "kittn", which I'm pretty sure is wrong.

No you are absolutely right. The docs are not built out yet and you are seeing the template data. We will curate this process and provide documentation. But a quick overview is as follows.

The API endpoint is static.

POST https://macgyver.services

The payload is a dynamic JSON object that has the following properties.

program id, user key, program_data (as defined on the program input page)

It would look something like this -

{ id: "9s9z6J6b", key: "private-live-6w9c2p10G5p3b6y" program_data: {} }

As far as how the program should function I can just show you the addition program as example.

The program should be called "main" with a file extension that corresponds to the run time you want macgyver to call.

So the addition program is a javascript file called "main.js"

// user specified data format

var data = '';

var sum =0;

data = JSON.parse(data);

for(var i=0; ivar result = { "sum" : sum }

// This gets returned to the client

console.log(JSON.stringify(result));

The variable 'data' will have it's string content be populated with the clients payload send data at the time of execution.

https://askmacgyver.com/explore/program/addition/2c2c5w7W

There is some information on that here.

https://askmacgyver.com/how-it-works

Re: Show HN: API Marketplace for Developers by Developers

#34

$.ajax({ ... key: "private-live-6w9c2p10G5p3b6y", ... }); I haven't signed up, but if this is going in an ajax request, how do you prevent people from getting your key? Is this specifically meant for node where you can guard such things?

I just changed that to take the public key, thanks!. Users get a private and public key, the private key will work in all areas but should never be exposed. The public key can be exposed and in the dashboard you can white list the allowed origins.

Re: Show HN: API Marketplace for Developers by Developers

#36
post #26

I see you joining the bands of "serverless" computing - this is no easy feat - can you speak to what is in your backend and how you plan to support heavy workloads?

It shouldn't be an issue - the API currently sits on Google's Cloud Platform which provides the infrastructure and tools to scale the service. IMO Snapchat's usage of the platform really speaks to the stability and capability of it.

1) Site's hosted on DigitalOcean, not GCP

2) How's Snapchat using this? which endpoint exactly?

3) Your website has already been down several times (see other comments).

So sketchy!

Re: Show HN: API Marketplace for Developers by Developers

#37
post #19

As someone with a research interest in such services maybe you allow me to ask a few questions (you don't have to answer all of them) - What separates you from existing API Marketplaces (e.g. Algorithmia) - What kind of run time environments do you allow? - Do you have programmer APIs other than JS? - From your blog I am assuming you use docker for running the algorithms? Will the docker images be made open too? - Ho…

> - What separates you from existing API Marketplaces (e.g. Algorithmia) Macgyver differs from Mashape in that we host the program and actually run the program against the data (processing). This allows us to have more control over verifying the up-time as well as any changes to the program which might affect an end user's application (we do our own versioning so any new changes will be pushed as an incremental versi…

Algorithmia doesn't have special development tools or languages. Everything is over REST. Not sure what you're saying here.

Re: Show HN: API Marketplace for Developers by Developers

#38
post #30

Reminds me of Microsoft's newer offerings: https://www.microsoft.com/cognitive-services

Ya Google has a counterpart product to that - https://cloud.google.com/vision/

Regardless Google and Microsoft have offered a narrow slice of what can potentially be done in this space. They are still not seeing that we really need is a marketplace that has the ability to let machine learning specialists surface their work to businesses for a profit.

Re: Show HN: API Marketplace for Developers by Developers

#40
post #26

I see you joining the bands of "serverless" computing - this is no easy feat - can you speak to what is in your backend and how you plan to support heavy workloads?

It shouldn't be an issue - the API currently sits on Google's Cloud Platform which provides the infrastructure and tools to scale the service. IMO Snapchat's usage of the platform really speaks to the stability and capability of it.

If I am going to trust you my API I want to know that you have top notch SLAs on your service, and since I am providing the code you are going to want to monitor the heck out of it so that you know that in case of failure whose fault it is.
Post reply on HN