Gathering detailed insights and metrics for data-tier
Gathering detailed insights and metrics for data-tier
Gathering detailed insights and metrics for data-tier
Gathering detailed insights and metrics for data-tier
npm install data-tier
Typescript
Module System
Node Version
NPM Version
73.8
Supply Chain
98.8
Quality
76
Maintenance
100
Vulnerability
100
License
JavaScript (99.85%)
HTML (0.15%)
Total Downloads
70,653
Last Day
11
Last Week
58
Last Month
242
Last Year
2,651
ISC License
11 Stars
748 Commits
1 Forks
3 Watchers
3 Branches
4 Contributors
Updated on Feb 14, 2024
Minified
Minified + Gzipped
Latest Version
3.6.6
Package Id
data-tier@3.6.6
Unpacked Size
53.89 kB
Size
17.34 kB
File Count
14
NPM Version
9.5.0
Node Version
18.14.2
Published on
Mar 03, 2023
Cumulative downloads
Total Downloads
1
data-tier
Starting v4
data-tier
's NPM will be relocated to the scoped @gullerya/data-tier.
data-tier
('tier' from 'to tie') is a two way binding (MVVM) library targeting client (browser) HTML/JavaScript applications.
Primary reasons for data-tier
(or - why bother):
object-observer
It is highly advised to briefly review the library's Lifecycle documentation for a main concepts.
Once ready,
data-tier
's approach to client app architecture will provide a full author's take on when and how to employ data binding in a modern client applications in a non-intrusive, non-prisoning, managable and extensible way.
data-tier
relies on an Observable
-driven event cycle, having an embedded object-observer as the default Observable
provider.
data-tier
implements a data binding declaration API (part of this library), which specifies tying data source to element's:
The simplest example of usage, just to give some look'n'feel:
1DataTier.ties.create('key1', { firstName: 'Uria' });
1<span data-tie="key1:firstName"></span>
Support matrix:
61+ |
60+ |
79+ |
13+
Changelog is found here.
Use regular npm install data-tier --save-prod
to use the library from your local environment:
1import * as DataTier from 'node_modules/data-tier/dist/data-tier.min.js';
Alternatively, a CDN deployment available (AWS driven), so one can import it as following:
1import * as DataTier from 'https://libs.gullerya.com/data-tier/x.y.z/data-tier.min.js';
Note: replace the
x.y.z
by the desired version, one of the listed in the changelog.
CDN features:
Use cases - WebComponents, ShadowDOM, MicroFrontends
Security policy is described here. If/when any concern raised, please follow the process.
The easiest point to start from is the walkthrough examples.
Additionally, there are few the CodePen
snippets:
input
element, its change
event and span
reflecting the changed valueinput
tied to the reflecting span
by an input
event (immediate changes), while all of those scoped within a web-component
, each instance of which has its own encapsulated modelHere we'll overview a rather simple, but quite self explanatory case.
2 elements below are both views tied to the same model.
span
is one-way bound to reflect the data.
input
employs two-way binding.
1<input data-tie="tieKeyA:status => value => input"> 2<br> 3<span data-tie="tieKeyA:status"></span>
This is our model initialization to make it all play together:
1import { ties } from 'https://libs.gullerya.com/data-tier/3.1.6/data-tier.js'; 2 3const model = ties.create('tieKeyA', { 4 status: 'better than ever' 5});
For more details see API reference.
I believe, that data-tier
as a framework should serve a single purpose of tying the model with the view in its very basic form: propagating the changes/values to the relevant recipient/s (more conceptual details and examples here).
Functionalities like repeater
, router
and other well known UI paradigms should be provided by a dedicated components, probably, yet not necessary, built on top of data-tier
or any other framework.
Me myself investing some effort in building data-tier
oriented components. I'll maintain the list below, updating it from time to time (please update me if you have something to add here).
data-tier-list
- repeater-like component to render a list of a similar items based on a single templatei18n
- internationalization library, mostly concerned with translation, where dynamic replacement of the localized texts upon active locale change is driven by data-tier
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-04-21
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-15.4%
11
Compared to previous day
Last Week
-23.7%
58
Compared to previous week
Last Month
-52.8%
242
Compared to previous month
Last Year
-77.8%
2,651
Compared to previous year