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

yaf

v0.4.1

Published

Scsalable framework for structured and growable web apps.

Downloads

5

Readme

Yet Another Framework for "evolvable" web apps.

Provides structure and communication abstractions. It helps answer 2 questions:

  1. "How do I build UI components?"
  2. "How do I make those components communicate in a sane way?"

Nota bene!

The framework is intended to be "library-independent".

This project contains only basic abstractions and conventions.

You can find usable implementation of those abstractions built on top of AngularJS in yaf-angular project

The idea is based on organicjs abstractions. This is a playground for making those abstractions better by trying them on real use cases.

This is a Work-In-Progress implementation, API will change often and unpredictably.

Contents

  1. Why another framework?
  2. Main goals
  3. Scope of work
  4. Design decisions
  5. Delibirate known tradeoffs
  6. What's inside right now?
  7. Should I try using it?

Why another framework?

Angular provides general purpose abstractions and some useful tools.
But there are no official guidelines and conventions for app development.

This framework uses angular underneath, but provide some opinionated conventions and higher-level fine-grained abstractions.

Main goals

  1. Modular, reusable, replacable, self-contained web components (based on AMD/CommonJS).
  2. Fine-grained abstractions for "visible elements" with strict roles.
    element, composite, screen
  3. Limited number of powerfull dataflow abstractions.
    state, link, channel
  4. Portable and replacable web elements (make 'em once and use in all related projects).
  5. Logical "layered" project structure with easy navigation.
  6. Easier complexity and growth control.
  7. Explicit state and state relations with one-way explicit bindings.
  8. Interoperable with legacy angular code.

Scope of work

We are aiming to have a specification for structural and behavioral abstractions to build components.

Those abstractions should have these traits:

  1. Amorphous - Independent from language and preprocessors.
  2. Prepared - Be usable without build by default.
  3. Replaceable - Be granular enough to be thrown away easily
  4. Composable - Be usable in templates without much imperative scripting.
  5. Well-Defined - Be relatively simple and easy to reason about.

Design decisions

Delibirate known tradeoffs

What's inside right now?

There are only 6 key things you need to use.

Structural

These abstractions are "building blocks" for all visual things.

  • element
  • composite
  • screen

Behavioral

These abstractions help you to control the behaviour and data flow.

  • state
  • link
  • channel

Should I try using it?

You should give it a try if you are building an "evolvable" web app and have some room for experiments.

Here is a checklist to help you decide:

  • [ ] The app has non-trivial functionality (not a form-based CRUD).
  • [ ] The app will eventually grow and become more complex.
  • [ ] The app will be developed not only by you.
  • [ ] The feature set and requirements will constantly change.
  • [ ] You need to control the quality, retaining the constant development speed.
  • [ ] You will have some time to "reshuffle" the components once in a while.
  • [ ] There is a possibility to have the same type of the project with the same styles and behaviour in the future.

Have you checked 5 of those ticks? If yes, then we are on a single track.