npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

matrix-angular-sdk

v0.6.5

Published

Web front-end client for Matrix p2p chat platform written in Angular.js

Downloads

4

Readme

Matrix Angular SDK

.. image:: http://matrix.org/jenkins/buildStatus/icon?job=SynapseWebClient :target: http://matrix.org/jenkins/job/SynapseWebClient/

This project provides AngularJS services for implementing the Client-Server API_ on Matrix_ : an open standard for interoperable Instant Messaging and VoIP. It comes shipped with Synapse_ : a home server reference implementation.

This project also provides a complete, stand-alone client which can communicate with Matrix home servers using a web browser.

The Synapse_ homeserver ships the latest stable version of this library. If you wish it to serve up a development copy instead, then you must configure this checkout to be picked up by synapse::

$ python setup.py develop --user

Running

To run the stand-alone client, the syweb/webclient folder must be hosted. This can most easily be achieved by::

cd syweb/webclient python -m SimpleHTTPServer

Navigate to http://localhost:8000 to see the client.

Bugs / Feature Requests

Think you've found a bug? Want a new feature on the client? Please open an issue on JIRA:

  • Create an account and login to https://matrix.org/jira
  • Navigate to the SYWEB project.
  • Click Create Issue - Please be as descriptive as possible, with reproduction steps if possible.

All issues in JIRA are public.

Configuration

The web client can be configured by adding a config.js file in the syweb/webclient directory. This includes configuration for setting up ReCaptcha. An example file can be found at syweb/webclient/config.sample.js.

Structure

The app directory contains the SDK, which is split up into subfolders depending on the logical scope of the code. The components directory contains reusable components which are used in many places. More specific directories such as home and settings contain code specific to that part of the app: e.g. the home screen and settings page respectively.

The Client-Server API_ is encapsulated as an AngularJS service called matrixService. There are also complementary services such as eventStreamService which handle more complex non-HTTP client logic.

Services can be used independently provided their dependencies are satisfied.

  • matrixService is provided at the lowest level, as it just wraps the raw HTTP calls.
  • modelService allows models of matrix objects to be accessed, such as User, Room, RoomState and RoomMember, and provides convenience functions to perform HTTP calls on these objects (e.g. Room.leave).
  • eventHandlerService interprets raw Matrix events and determines what needs to be stored with the modelService.
  • eventStreamService controls long-polling behaviour on the /events HTTP call.
  • typingService controls the submission of typing events into a room.
  • presenceService controls the submission of presence events.

Alternatively, you can use different controllers and html templates and leave the services to work together as is.

Tests

Tests are contained in the test directory_. They require Karma (running PhantomJS) and Jasmine 2.x+ in order to run. Assuming you have the required karma plugins, you can run the tests by running karma start in the test directory.

Attributions

File icons are taken from http://medialoot.com/item/free-flat-filetype-icons/ and distributed under the terms of the Paid License (invoice #7355)

Keyboard and GIF icon from icons8: http://icons8.com/

.. _Synapse: https://github.com/matrix-org/synapse/ .. _Matrix: http://www.matrix.org .. _Client-Server API: http://matrix.org/docs/api/client-server/ .. _test directory: syweb/webclient/test