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

ame

v2.0.0-beta17.ame4

Published

Angular2 and all dependencies, packaged in a single, easily consumed file.

Downloads

2

Readme

ame

Angular Made Easy (Angular 2, for humans)

Travis-CI Build Prod Dependencies Dev Dependencies npm version

Stats Downloads

Why does this exist?

Angular 2 is great in a whole range of ways, but the minimal examples out there are typically a dozen or more files and require developers to understand and combine many seperate elements in order to get even the most basic of examples working.

This package is intended to be a cross-browser compatible, simplified distribution of Angular 2 and all commonly required dependencies and soften the learning curve.

Version Tracking

I will try to maintain as close as possible a version parity with Angular 2. My repository is tracked by the awesome greenkeeper for dependencies, so in theory you'll never be more than a few days out. As this project does not modify any of the dependencies other than concatenating them, it means that you're able to switch seamlessly away from this library when you're ready.

Efficiency vs Simplicity

Yes. Including all of the components by default isn't 100% efficient. In fact the ame.min.js file is a whopping __970__KB or so at last check. However, when served from a server with GZip compression support this drops to circa ~205KB, which is very easy to deal with for most scenarios.

In short, whilst you can make this more efficient by slotting in extra stuff like SystemJS or other components, the benefits are sufficiently nominal that this project. When you are ready to make that transition for your app, I fully encourage you to do so.

Version Choice

The files in /dist are:

  • ame.js (Full/uncompressed versions) - 2.7MB
  • ame.dev.js (Dev versions of components) - 6MB
  • ame.min.js (Minified versions of code, combined) - 1MB (200KB GZip)

Approximately 80-85% compression on suitable servers makes these sizes less problematic when starting out on your app development.

What's in the Bundle

The dependencies below are included in the bundling:

  • Core JS (Client Shims)
  • Zone.js
  • Reflect-Metadata
  • RxJS (Reactive Extensions)
  • Angular 2 Polyfills
  • Angular 2 (All Components)

A Real, Minimal Example

Examples are found in the Git Repository for this project under /examples - but here's a simplified version:

<html>
<head>
    <title>Angular 2 QuickStart JS</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- 1. Load libraries -->
    <script src='../../../dist/ame.min.js'></script>

    <!-- 2. Load our 'modules' -->
    <script src='app/app.component.js'></script>
    <script src='app/main.js'></script>
</head>
<!-- 3. Display the application -->
<body>
    <my-app>Loading...</my-app>
</body>
</html>

Where the path in (1) is your path to the ame file you wish to include.

Serving this Content

I'd recommend using a simple middleware setup (connect-mount/serve-static) in order to expose the ./node_modules/ame/dist/ folder on a suitable path inside your application.