-
Notifications
You must be signed in to change notification settings - Fork 23
Home
SpazCore is a component library designed to make development of Twitter (and other “lifestream” services) clients easier. It is written in JavaScript, and suitable for applications based on AIR, Titanium, and webOS, although most browser engine-based platforms should be able to utilize many aspects.
SpazCore is made up of four major elements: libraries (libs
), helpers
, platform-specific extensions (platforms
), and vendor libraries (vendors
)
These are components that handle more complex functionality. Right now SpazCore has the following libs:
-
SpazCore (
libs/spazcore.js
): the base library -
SpazTwit (
libs/spaztwit.js
): a Twitter API library -
SpazPingFM (
libs/spaztwit.js
): a Twitter API library -
SpazPrefs (
libs/spazprefs.js
): a preferences library -
SpazTemplate (
libs/spaztemplate.js
): a simple library for storing and parsing templating methods -
SpazCron (
libs/spazcron.js
): a library for handling repeating tasks
As of this writing, many of these libraries range from “mostly done and usable” to “barely a skeleton.” Additionally, database abstraction and possibly ORM libraries are planned.
Helpers are single-task functions to handle common tasks. All helpers in SpazCore are under the sc.helpers.###
namespace to avoid collisions. Helper definitions are separated by task into different files:
-
Date and Time (
helpers/datetime.js
): functions to handle common date/time tasks, like generating relative time descriptions -
JavaScript (
helpers/javascript.js
): JS language helpers for things like typechecking -
JSON (
helpers/json.js
): JSON encoding and decoding helpers (based on the JSON2.js library) -
Strings (
helpers/string.js
): string tasks, like converting URLs and Twitter @usernames into links -
System (
helpers/sys.js
): Platform and OS-related tasks like platform detection and file manipulation -
View (
helpers/view.js
): Helpers for common view (UI) tasks, like removing duplicate elements in an HTML Twitter timeline -
XML (
helpers/xml.js
): XML processing helpers