News for hackers. Stuff that matters.

kartikt

The original comment is meant as an observation rather than an attack. It's great to see the author of the post use gmail.js to quickly get the sentiment analysis working with 30 lines of code.

The library was a fun side project and has been used by many companies (big and small) over the past few years. Its always nice to see someone make a cool extension on top of gmail.

Here is another one that came out a while ago (uses gmail.js) and on the same theme as this original post:

http://www.slate.com/blogs/xx_factor/2015/12/29/new_chrome_a...

lol
Re:Gmail.js – JavaScript API for Gmail on Wednesday July 20, 2016 @05:34PM (#12132706)
Thank you for the kind words!
Re:Gmail.js – JavaScript API for Gmail on Wednesday July 20, 2016 @04:15PM (#12132126)
Creator of gmail.js here - please see my comment to nathancahill on this thread :-)
Re:Gmail.js – JavaScript API for Gmail on Wednesday July 20, 2016 @02:33PM (#12131360)
Creator of gmail.js here - thanks Nathan! I started working on this almost 3 years ago for a personal project. At that time there weren't many libraries available to work on top of gmail so I decided to compile all the helper functions into a standalone library hoping that after it goes on github, others might contribute.

After I did a Show HN in late 2013 a lot of people expressed interest in using this and ever since then, gmail.js has been used by a lot of individuals and startups. I'm really happy that people still frequently contribute to the library by adding features and/or reporting bugs and it has definitely gotten stronger and more stable over the past year (a very special thanks to Brent Kelly)

As a funny observation, the public sentiment towards gmail's DOM still remains the same as it was 3-4 years ago, and while I agree that it changes quite often, I do believe that the severity of those changes is heavily overstated. The disadvantage of an abstraction layer like gmail.js is that you always have to be on top of the DOM, but gmail.js is at a place where enough people are using it that if some major change occurs to the gmail UI, it'll be reported a lot faster because there is now a community using the library. In the past 3.5 years, only a single DOM change on gmail (about 2 weeks ago) has made a breaking change that affected all users from this library.

The whole thing is intentionally designed to be a single file where majority of the functions are standalone so if something goes wrong, anyone can easily understand how it works! That being said, a lot of the focus of this library is to abstract network events so developers making extensions on top of gmail can fire off events when a gmail user gets a new email, sends email, deletes etc. Those things rely very little on the DOM.

And as always, feedback and bugs welcomed :-)

Re:Gmail.js – JavaScript API for Gmail on Wednesday July 20, 2016 @02:03PM (#12131117)
This is primarily designed to make chrome extensions on top of gmail
Re:YC at Hack the North on Friday September 11, 2015 @04:04PM (#10205865)
yup!
Creator of gmail.js here. Can confirm
Re:A Request for a Startup: Gmail 'Waiting For Reply' Tab on Saturday March 01, 2014 @07:49PM (#7327059)
Adding UI heavy features with that library is going to be painful (especially a whole new tab interface). It's designed for a rather 'active' interaction with emails (I made it). Most of the auto reply algorithmic stuff can be accomplished through context.io
Re:Ask HN: What are your 2014 Predictions? on Wednesday January 01, 2014 @02:49AM (#6994522)
People will start switching to Google+
Re:When "Life Hacking" Is Really White Privilege on Thursday December 19, 2013 @02:12PM (#6937026)
I agree. Found this on twitter so decided to post it here.
Re:Cryptsy: Trade over 60 different types of cryptocurrencies on Monday December 02, 2013 @09:17PM (#6838072)
Check out this guy's tweets. So many negative reviews on the internet https://twitter.com/WayTooGosu

Also, the entire site seems to be running on PHP..

Re:Show HN: Gmail.js – JavaScript API for Gmail on Thursday November 28, 2013 @12:27PM (#6815484)
Hey zrgiu_, there isn't a native observer for that action yet but the closest call is to check if the user is inside an email. I've created a gh issue out of it so hopefully you'll be able to set triggers with the observer method, instead of setInterval
Re:Show HN: Gmail.js – JavaScript API for Gmail on Thursday November 28, 2013 @12:01PM (#6815316)
Thanks!
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @11:49PM (#6813076)
Thanks Rohit!
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @10:39PM (#6812891)
Most email data related methods are making the API calls. The DOM is being used for methods like checking if a user inside an email or if the user has preview panes enabled. Since the primary goal of the library is to aid with chrome extension development, checking items in the DOM is quicker.
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @08:00PM (#6812415)
Surely! I think the having it out there for anyone to contribute and modify will benefit all our us. Feel free to add on your suggestions or features that are missing :)
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @06:52PM (#6812110)
Thank you Andy!
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @05:51PM (#6811731)
Hey catmanjan, see jamesjyu's comment :-)
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @05:19PM (#6811557)
Thanks James! Your library was the inspiration for the observer methods. I agree with the maintenance part but I think having this out there will help reduce duplicating efforts.
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @05:11PM (#6811515)
SMTP? Never heard of it. This library is more for developing chrome extensions that take advantage of gmail's DOM and UI state
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @04:51PM (#6811398)
haha will not disagree
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @04:14PM (#6811181)
Thanks for your feedback. I agree, which is why i decided to put it out there because I use the library in a chrome extension and if something breaks, I would be trying to get the extension fixed - patching gmail.js. Still better than finding random solutions from here and there or duplicating efforts. :-) I'd be interested in seeing what you guys are working so, so I'll ping you soon
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @04:05PM (#6811137)
Definitely! Mind creating an issue out of it? I'll add it to the list
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @03:17PM (#6810828)
Planning to switch the Gmail code on https://trysignal.com to gmail.js. That should be out soon
Re:Show HN: Gmail.js – JavaScript API for Gmail on Wednesday November 27, 2013 @03:01PM (#6810708)
Neat suggestion. It could totally be uploaded to a cdn where people can simply import it and once a change occurs on Gmail and the script gets updated, everybody benefits.
Re:PennApps Spring 2014 is on February 14th on Tuesday November 19, 2013 @05:21PM (#6764927)
It's a date!

Older »