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

angularfire-lite

v6.0.3

Published

Lightweight library to use Firebase API with Angular.

Downloads

249

Readme

angularfire-lite-illustration

travis circleci npmv npmdown daviddep daviddevdep greenkeeper

Join the chat at https://gitter.im/angularfire-lite/Lobby Ng-packgr license

| Features | AngularFire Lite | AngularFire2 | | ------------- |:-------------:| :-------------------: | | Authentication | :heavy_check_mark: | :heavy_check_mark: | | Firestore | :heavy_check_mark: | :heavy_check_mark: | | Storage               | :heavy_check_mark:   | :heavy_check_mark:| | Realtime Database | :heavy_check_mark: | :heavy_check_mark: | | Cloud Messaging | :heavy_check_mark: | :x: | | Server Side Rendering | :heavy_check_mark: | :heavy_plus_sign: :heavy_minus_sign: | | State Transfer | :heavy_check_mark: | :x: | | Transactions and Batched Writes | :heavy_check_mark: Observable Based | :x: | | NPM Package Size | 84 KB :zap: | 124 KB :turtle: |

angluarfire-lite-ssr

Finally SSR with Firebase!


Angularfire Lite is the very first angular library to support server side rendering with firebase.

  • :file_folder: Supports Both Firebase Databases: Firestore & Realtime Database

  • :tada: No Flickering whatsoever when the app bootstraps

  • :zap: Better performance

  • :mag: Search engine optimization

  • :relaxed: Easy implementation

angularfire-lite-step-1

Reminder: don't forget to install nodejs first.

 
npm install --save angularfire-lite firebase
 

angularfire-lite-step-2

How?:

  • Create a firebase account and login to your dashboard

  • Click on 'Add Firebase to your web app' icon and copy the config object

  • Add it to environment.ts & environment.prod.ts located under /src/environments/

export const environment = {
  production: false, // production: true => in `enviroment.prod.ts`
  config: {
    apiKey: '<your-key>',
    authDomain: '<your-project-authdomain>',
    databaseURL: '<your-database-URL>',
    projectId: '<your-project-id>',
    storageBucket: '<your-storage-bucket>',
    messagingSenderId: '<your-messaging-sender-id>'
  }
};

angularfire-lite-step-3

How?:

  • Import the config object we created from enviroment.ts

  • Import AngularFireLite and pass it the config object

import { AngularFireLite } from 'angularfire-lite';
import {environment} from '../environments/environment';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AngularFireLite.forRoot(environment.config)
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

angularfire-lite-api

  • Observable based: Every function returns an Observable that you should subscribe to it to get back the data.

  • Simple API: AngularFire Lite has a simple straight forward syntax similar to the native Firebase API plus some simple additions.

angularfire-lite-faq

Users


  • Will be there any breaking changes to AngularFire Lite?

AngularFire Lite will try to avoid breaking changes as much as possible and keep the API consistent across all the firebase services provided.

Contributors:


  • How can I contribute?

We want to keep AngularFire Lite in sync with the Firebase API so if any new feature comes out don't hesitate to send a PR.

  • Why AngularFire Lite is so simple?

Why add unnecessary complexity in simplicity draws a straight line to productivity.

  • Why there are no tests?

currenty the demo is our primary test but there will be proper tests in the future.

angularfire-lite-credits

Author:


Maintainers:


Doors are open! I will personally design for you a maintainer card just like the one above too :wink: