ng-web-apis / Common
Licence: mit
A set of common utils for consuming Web APIs with Angular
Stars: ✭ 259
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
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
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
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
Common utils for Web APIs
Part of Web APIs for Angular
A set of common utils for consuming Web APIs with Angular
Tokens
-
WINDOW
— provides access to globalwindow
object -
NAVIGATOR
— provides access towindow.navigator
object -
NETWORK_INFORMATION
— provides access towindow.navigator.connection
object -
USER_AGENT
— provides access towindow.navigator.userAgent
string -
PERFORMANCE
— provides access towindow.performance
object -
ANIMATION_FRAME
— shared Observable based onwindow.requestAnimationFrame
-
CSS
— provides access towindow.CSS
object or mock object if it's not available (i.e. in IE) -
LOCATION
— provides access towindow.location
object -
LOCAL_STORAGE
— provides access towindow.localStorage
object -
SESSION_STORAGE
— provides access towindow.sessionStorage
object -
SPEECH_RECOGNITION
— provides access toSpeechRecognition
class or returnsnull
if browser does not support it -
SPEECH_SYNTHESIS
— provides access towindow.speechSynthesis
object -
PAGE_VISIBILITY
— wrapper fordocument.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 |
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].