Live data from Hacker News

Gmail.js – JavaScript API for Gmail

github.com

11–20 of 52 posts

Re: Gmail.js – JavaScript API for Gmail

#11
post #8
post #6

Earlier quoted context omitted.

We were creating a chrome / firefox extensions to manipulate the gmail UI, the project was unrelated to email protocols (but I understand the snark ;-) )

The snark was uncalled for, so is drawing noses on emoticons.

They are also running into this issue: https://xkcd.com/541/

Re: Gmail.js – JavaScript API for Gmail

#12
post #10
post #3

We used this for a project before, just be aware that the DOM changes regularly for gmail, and if an API you rely on breaks you will be SOL until someone fixes it.

It's open-source, if you rely on it, fork it and fix it yourself.

That still doesn't make it reliable. If it's known the DOM changes regularly and breaks this api library, then why bother in the first place? Sure you can fix it yourself, but why not avoid the hassle and use something standard that doesn't break as much.

If it's acceptable that it breaks often then it's fine to use, but if you're expecting reliability, then no.

Re: Gmail.js – JavaScript API for Gmail

#13
post #10
post #3

We used this for a project before, just be aware that the DOM changes regularly for gmail, and if an API you rely on breaks you will be SOL until someone fixes it.

It's open-source, if you rely on it, fork it and fix it yourself.

The issue is that gmail will update at anytime, without warning, so there will always be a period when your service will break. And you need to have unit tests running often to figure out when it breaks, and have a dev on call 24/7 to ensure a speedy fix. This is a universal problem with extensions targeting website DOM's, but worse if you have an SaaS product that has an SLA.

Re: Gmail.js – JavaScript API for Gmail

#15
post #8

Earlier quoted context omitted.

The snark was uncalled for, so is drawing noses on emoticons.

They are also running into this issue: https://xkcd.com/541/

The one thing I like about emoji is that it solves this problem.

> Linux (or BSD [U+1F642]) would

EDIT: Does HN not support emoji?

EDIT^2: How it should look: https://pastebin.com/raw/rKmTCdFX

Re: Gmail.js – JavaScript API for Gmail

#16
post #3

We used this for a project before, just be aware that the DOM changes regularly for gmail, and if an API you rely on breaks you will be SOL until someone fixes it.

Agree. I did a gmail plugin before gmail.js came out.

You kind have the same problem if you are the only one using your custom lib and you dont have a huge army of others who could fix it. And it's… so… much… more exhausting

Re: Gmail.js – JavaScript API for Gmail

#19

InboxSDK (from Streak) is the best API to use for Gmail.

They have slightly different usecases. I used them both extensively and one is intended for adding a sidebar style chrome extension ala Streak, while Gmail.js is a simpler event based system.

I personally found both to be lacking in different areas, too bad they weren't merged together to cover a broader base.

Re: Gmail.js – JavaScript API for Gmail

#20
post #13
post #10

Earlier quoted context omitted.

It's open-source, if you rely on it, fork it and fix it yourself.

The issue is that gmail will update at anytime, without warning, so there will always be a period when your service will break. And you need to have unit tests running often to figure out when it breaks, and have a dev on call 24/7 to ensure a speedy fix. This is a universal problem with extensions targeting website DOM's, but worse if you have an SaaS product that has an SLA.

Which Gmail addon did you work on?
Post reply on HN