
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
firebase-lite
Advanced tools
Tiny modular Firebase library
Refactored from firebase-auth-lite
What Firebase does is great. How it does it is sometimes not so great.
The two main issues I always run into when using Firebase is that their client-side libraries, even the new tree-shakeable modular v9 ones, are big and seem bloated. This means your site is going to be slower to load and have worse Lighthouse scores which carry over into SEO metrics. Also, Firebase auth has become the source of many auth-related user issues. From "oh no, they signed in with Google so now they can't sign-in with facebook again unless you perform a ritual" to plain old "oh no, they have a new iOS device so you now have to customize how auth loads to make it work at all". Even when it works, it does crazy things such as loading another 270Kb iframe on mobile devices.
All this was maybe acceptable (was it really though? tolerated perhaps ...) in the time of "Single Page App All The Things!" but with the resurgence in Multi Page Apps, it's way too much to load and then re-load on each and every page request.
Even for a SPA, I'd prefer the majority of my app code to be my own app, not just the bit that tells me who people are.
This library takes a minimalist approach.
It talks directly to Google Identity Platform API (the real auth system - firebase auth is just a veneer on top).
Even though it's only about 2.5Kb all together, it's still modular and tree-shakeable. So you can eek out every saving possible and create the absolute smallest code you need for each page. i.e. Don't bundle all the auth code just to show the user's current auth status, only include the sign-in code on the sign-in page, and the sign-in-redirect handling in the redirect page and so on. The pieces end up so tiny they can be inlined into those pages for even better performance.
Just because it's tiny doesn't mean it can't do everything required. It provides:
Todo
FAQs
Firebase, but tiny
We found that firebase-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.