Questions about usage of the Stack Exchange API in client-side browser JavaScript.

learn more… | top users | synonyms

22
votes
15answers
2k views

Soapi.JS : fluent JavaScript client library for the Stack Exchange API

Soapi.js If you are looking for a full featured, compact JavaScript client library that provides complete end to end coverage of the API, Soapi.JS is a good choice. You may also want to check out ...
11
votes
12answers
884 views

Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta preview

Soapi.JS2 var context = new Soapi.ApiContext(yourApiKey); context.initialize(function() { context.official.stackApps .Users().ById(14) .invoke(function(users) { ...
223
votes
12answers
20k views

StackTack, a JavaScript widget you can stick anywhere

Screenshot / Code Snippet <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script ...
13
votes
1answer
720 views

StackAd - An Easy Way to Display Open-Source Ads on Your Site/Blog

Note: This page is due for an update but until then you can add StackAd to your site by adding: <script type='text/javascript' ...
10
votes
0answers
1k views

Stack.JS - Powerful Event-driven Library for Accessing the Stack Exchange API in JavaScript.

About Stack.JS is the JavaScript equivalent of Stack.PHP and aims to replicate the request structure of that library as much as possible. The library is still a long ways from being complete ...
24
votes
0answers
938 views

SO Live! — live updates to your reputation score

Stack Exchange now updates your reputation score in real time. There is no more need to install this extension. Screenshot About This userscript, based on SOApi.js, injects itself in all ...
8
votes
0answers
8k views

How to call the API via JSONP in Plain Old JavaScript

This tips demonstrates how to call the API in JavaScript without the need of jQuery or other frameworks. In a lot of cases you will find that the JSONP implementations provided in various frameworks ...
12
votes
1answer
241 views

Support Cross-Origin Resource Sharing

Currently, the only way to call the API from javascript is to use JSONP, but this can be cumbersome and has security issues. If the following header was included in all API responses, the API could be ...
5
votes
1answer
170 views

StackAd Scroller

Screenshot About StackAd Scroller is a small web application that scrolls the open source ads from this Meta question. It is highly configurable and makes a nice page to leave your web browser ...
4
votes
1answer
642 views

StackScript JavaScript Wrapper

Code Snippet Demonstrates the StackUser class: // Global object var ss = new StackScript(''); function GetInfo() { // The provided callback will be called // when the data arrives var ...
2
votes
3answers
80 views

Stack Exchange userscript template / boilerplate

I find it annoying to have to type the entire list of Stack Exchange sites to include every single time I make a new userscript. Furthermore, jQuery isn't automatically included by default. Is there ...
17
votes
3answers
1k views

Stack Insight - Track a User's Activity Over all Stack Sites.

Screenshots ... but why not see the live site at http://stackinsight.com About Web application to show how all a user has been involve in the different stack sites over time. Just enter your ...
17
votes
2answers
537 views

VoteCounts: bookmarklet to display up/down votes even for rep less than 1000

Screenshot / Code Snippet About This small bookmarklet will allow anyone to use the "vulnerability" of the API that it allows you to check the up/down vote count - a feat you could normally ...
9
votes
1answer
543 views

ThirdPlace JavaScript chat library

Screenshot / Code Snippet var room = ThirdPlace.Room.GetCurrentRoom(); var message = new ThirdPlace.Message; message.room_id = room.id; message.content = "ThirdPlace.js is a library which ...
8
votes
0answers
146 views

StackTack - George Edison Remix (now with a few extra features!)

Screenshot About StackTack was originally listed here on Stack Apps. The idea was terrific and Soviut did such an awesome job building the application that I decided to fork it. My original ...
17
votes
0answers
316 views

SO Live! Chat Edition. — live updates to your reputation score, while chatting

Screenshot About This userscript, based on SOApi.js, injects itself in all SE sites' chat pages and polls the API for reputation changes every 60 seconds. When your reputation changes, this ...
6
votes
1answer
832 views

Is it safe to embed my API key into my javascript-only application?

I have an application I'm developing that's pure javascript and consumes the Stack API. My API key is embedded in the source which anyone could read. Is this safe?
2
votes
1answer
264 views

Web SENotify - Stack Exchange website new question notification

Screenshot About This website is a notification tool of new question on Stack Exchange website. License Public Domain Download Download http://senotify.jeb.be/ content (html, css, js from) ...
0
votes
2answers
44 views

How to use the StackExchange object on a userscript?

This object seems to be available in all Stack Exchange pages and contains interesting information about the actual page, site, user, among others. Just type StackExchange on the console to check it ...