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

@acmedinotech/dinoframe

v0.1.2023082-4.4

Published

a flexible, decorator-driven framework for building and managing complex apps

Downloads

9

Readme

dinoframe

dinoframe is a decorator framework that makes wiring complex web apps in TypeScript easier. At its core, it provides libraries to make it easy to write and apply new decorators along wth a core set of decorators to make it easy to orchestrate application startup. In general, it should be pretty simple to integrate with and get moving.

Quick note on discover()

The JS engine will only process a class when a concrete reference is made to it -- simply importing it won't do anything. To get around that, we've adopted the following convention: entrypoints into your code should contain discover(): string, either as a module member or static class member. This function should:

  1. directly reference the classes you want to process
    • e.g. simply having a line like [Class1, Class2] is enough
  2. optionally return a bundle identifier

This is only a suggestion, but we tend to prefer explicit entrypoints to avoid any confusion.

decorator

TS doesn't make decorators instrinsic metadata on a class. If you like Java-style annotations that are accessible as class metadata, it's on you to implement that functionality yourself. However, even that has its limitations if you're interested in what other decorators are applied.

The decorator module changes that. It provides an easy way to:

  1. collect decorator metadata into a convenient and hierarchical structure (grouping metadata by providers);
  2. uniquely and consistently identify a class across arbitrary decorator providers;
  3. package decorated classes into uniquely defined bundles (grouping metadata by concern);
  4. introspect decorations from other providers using the collection library;

service-container, http

Building on decorator, and inspired by Apache Sling, service-container makes it quick and simple to declare services and their dependencies purely through decorators. Dependency management ensures no service starts up until all its dependencies are fulfilled, interfaces provide inversion-of-control, and flexible access pattern works seamlessly with your existing code.

A companion to the container is http, which makes it easy to declare routes and middleware in an Express-friendly way while also supporting service container integration.

morph

The morph module is a lightweight and flexible serialization/deserialization library that makes it easy to validate and convert external data into a concrete class instance. See the morph readme for in-depth examples and explanation.