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

@web-atoms/core

v2.4.8

Published

Web Atoms Core

Downloads

1,630

Readme

Action Status npm version codecov

Web-Atoms Core

Lightweight JavaScript framework with MVU Pattern with Data Binding in JSX.

Note, MVVM is now deprecated, we have realized that MVVM often adds more code then the benefits. Since JavaScript allows mixin, its easy to incorporate reusable logic with mixin rather than MVVM. MVU pattern is better suitable for faster development.

Web Features

  1. Data Binding, simple arrow functions to bind the UI elements
  2. Styled Support
  3. AtomRepeater - Lightweight List Control to manage list of items
  4. Chips control
  5. Dual View support (Mobile and Desktop)
  6. Smallest syntax
  7. Faster rendering
  8. Simple Data Validations
  9. RetroFit inspired REST API Support
  10. No additional build configurations
  11. Event re routing, it helps in reducing number of event listeners on page.
  12. UMD and SystemJS Module Loader
  13. Packer, to pack all JavaScript in single module along with dynamic module loader support
  14. FetchBuilder, fetch builder allows you to build REST request in fluent way and execute them with single await.

Web Controls

  1. ComboBox (wrapper for SELECT element)
  2. AtomControl (base class for all other controls)
  3. AtomRepeater
  4. PopupWindow, PopupWindowPage

Services

  1. WindowService - to host AtomWindow and retrieve result
  2. RestService - RetroFit kind of service for simple ajax
  3. BrowserService - An abstract navigation service for Web and Xamarin

Development guidelines

  1. Use TypeScript module pattern
  2. Do not use namespace
  3. Organize single module in single TypeScript file
  4. Import only required module and retain naming convention
  5. Use default export for UI component
  6. No Atom.get and Atom.set
  7. Do not use underscore _ anywhere, not in field name not in get/set
  8. Do not use set_name method name, instead use get name() and set name(v: T) syntax for properties.

How to run unit tests?

  1. Import test class src\test.ts
  2. Run node .\dist\test.js

How to get code coverage?

  1. Install istanbul, npm install istanbul --save-dev
  2. Install remap-istanbul, npm install remap-istanbul
  3. Cover Run, .\node_modules\.bin\istanbul.cmd cover .\dist\test.js
  4. Report Run, .\node_modules\.bin\remap-istanbul -i .\coverage\coverage.json -t html -o html-report
  5. Open generated html-report on browser