
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
firebase-template
Advanced tools
A Firebase backed system designed for apps which contain practically no logic.
A Firebase backed system designed for apps which contain practically no logic.
It is intended to be used with browserify or webpack.
npm install firebase-template
Using data attributes, you mark up your HTML pages for binding, iteration, and conditional display.
data-jwt is a token generated server side and is used to authenticate with the Firebase server.
data-path is used to specify where in the firebase structure an element should fetch its data from. If a path does not begin with / it will be treated as relative and will added to the path of its first parent with a path specified.
data-show conditionally displays an element based on whether its value is truthy.
data-type specifies how the targetted value is to be treated. It defaults to 'value' but can be specified as 'collection, which will cause the content of an element to be repeated and bound to
data-action provides a small number of actions (add, remove) that can manipulate the structure of the state tree.
The following snippet is the minimal bootstrap code you need to get it up and running. Once this executes, it'll start a two way binding with Firebase as configured in the HTML Page.
var FirebaseTemplate = require('firebase-template')
var template = new FirebaseTemplate();
template.start();
<!DOCTYPE html>
<html>
<head>
<title>Firebase Template Example</title>
</head>
<body data-path="https://example.firebaseio.com/app1" data-jwt="TOKEN_HERE">
<h1>Firebase Template Example</h1>
Name: <input data-path="/name" /><br><br>
Email: <input data-path="/email" /><br><br>
Photo: <img data-path="/photo" width="100" data-show="/photo" />
<input type="file" data-path="/photo" />
<button data-action="remove" data-path="/photo"><br><br>
<h2>Children</h2>
<ul data-path="/children" data-type="collection">
<li>Name: <input data-path="name" />
</ul>
<button data-action="add" data-path="/children">Add Child</button>
<script src="bundle.js"></script>
</body>
</html>
FAQs
A Firebase backed system designed for apps which contain practically no logic.
We found that firebase-template 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.