All Projects → ng-web-apis → Common

ng-web-apis / Common

Licence: mit
A set of common utils for consuming Web APIs with Angular

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Common

Mercure
Server-sent live updates: protocol and reference implementation
Stars: ✭ 2,608 (+906.95%)
Mutual labels:  api, web-api, hacktoberfest
Symfony Flex Backend
Symfony Flex REST API template project
Stars: ✭ 214 (-17.37%)
Mutual labels:  api, hacktoberfest
Pokeapi
The Pokémon API
Stars: ✭ 2,695 (+940.54%)
Mutual labels:  api, hacktoberfest
Horaires Ratp Api
Webservice pour les horaires et trafic RATP en temps réel
Stars: ✭ 232 (-10.42%)
Mutual labels:  api, hacktoberfest
Streamdecksharp
A simple .NET wrapper for Stream Deck
Stars: ✭ 203 (-21.62%)
Mutual labels:  api, hacktoberfest
Share Api Polyfill
A polyfill for the sharing that can be used in desktop too, so your users can shere in their twitter, facebook, messenger, linkedin, sms, e-mail, print, telegram or whatsapp.
Stars: ✭ 210 (-18.92%)
Mutual labels:  api, native
Bookmarks.dev
Bookmarks and Code Snippets Manager for Developers & Co
Stars: ✭ 218 (-15.83%)
Mutual labels:  api, hacktoberfest
Go Reddit
Go library for accessing the Reddit API.
Stars: ✭ 175 (-32.43%)
Mutual labels:  api, hacktoberfest
Abibliadigital
A RESTful API for Bible
Stars: ✭ 251 (-3.09%)
Mutual labels:  api, hacktoberfest
Quora Api
An unofficial API for Quora.
Stars: ✭ 250 (-3.47%)
Mutual labels:  api, web-api
Minha Receita
🏢 Sua API web para consulta de informações do CNPJ da Receita Federal
Stars: ✭ 255 (-1.54%)
Mutual labels:  api, hacktoberfest
Api
API for Current cases and more stuff about COVID-19 and Influenza
Stars: ✭ 2,323 (+796.91%)
Mutual labels:  api, hacktoberfest
Linebot
🤖 SDK for the LINE Messaging API for Node.js
Stars: ✭ 184 (-28.96%)
Mutual labels:  api, hacktoberfest
InternalSteamWebAPI
Documenting the unofficial and internal Steam Web API
Stars: ✭ 126 (-51.35%)
Mutual labels:  web-api, webapi
Demo
Demo app for the API Platform framework
Stars: ✭ 184 (-28.96%)
Mutual labels:  api, hacktoberfest
Chartbrew
Open-source web platform for creating charts out of different data sources (databases and APIs) 📈📊
Stars: ✭ 199 (-23.17%)
Mutual labels:  api, hacktoberfest
Blinkpy
A Python library for the Blink Camera system
Stars: ✭ 174 (-32.82%)
Mutual labels:  api, hacktoberfest
Rails api base
API boilerplate project for Ruby On Rails 6
Stars: ✭ 172 (-33.59%)
Mutual labels:  api, hacktoberfest
Mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Stars: ✭ 3,448 (+1231.27%)
Mutual labels:  api, hacktoberfest
Laravel Query Builder
Easily build Eloquent queries from API requests
Stars: ✭ 3,083 (+1090.35%)
Mutual labels:  api, hacktoberfest

logo Common utils for Web APIs

Part of Web APIs for Angular

npm version npm bundle size Travis (.org) Coveralls github

A set of common utils for consuming Web APIs with Angular

Tokens

  • WINDOW — provides access to global window object
  • NAVIGATOR — provides access to window.navigator object
  • NETWORK_INFORMATION — provides access to window.navigator.connection object
  • USER_AGENT — provides access to window.navigator.userAgent string
  • PERFORMANCE — provides access to window.performance object
  • ANIMATION_FRAME — shared Observable based on window.requestAnimationFrame
  • CSS — provides access to window.CSS object or mock object if it's not available (i.e. in IE)
  • LOCATION — provides access to window.location object
  • LOCAL_STORAGE — provides access to window.localStorage object
  • SESSION_STORAGE — provides access to window.sessionStorage object
  • SPEECH_RECOGNITION — provides access to SpeechRecognition class or returns null if browser does not support it
  • SPEECH_SYNTHESIS — provides access to window.speechSynthesis object
  • PAGE_VISIBILITY — wrapper for document.addEventListener('visibilityChange') api

How to use

Just inject a token you need. You can also take a look at Stackblitz sample

What advantages do we get from abstract entities in our app?

  • It is easy to understand: you see all dependencies of your entity in its constructor
  • It is easy to test: you can just mock any of your dependencies to test
  • It is easy to reuse: your components and directives can be used in any context if it has dependencies that they need to be created
  • It is enviroment agnostic: you can start your app in SSR or other environments (see also @ng-web-apis/universal)

See also

Other Web APIs for Angular by @ng-web-apis

Core team

Alex Inkin
Alex Inkin
Roman Sedov
Roman Sedov
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].