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

ana.js

v0.9.3

Published

A JavaScript library for the cool kids.

Downloads

7

Readme

ana.js

GitHub GitHub all releases

Banner

Table of Contents

  1. About the project
  2. Getting started
  3. Roadmap

About the project

This is my take on frameworks. Firstly, I am the only man developing this tool. One that will be compared to other tools built and maintained by teams orders of magnitude larger than a team of one. Someone who stumbles upon this project may not find it apt for their needs, which is perfectly fine. It doesn’t fill my needs either, if it did, I wouldn’t be continuously building and upgrading it.

What is Ana? It is short for Anarchy, a system that questions all hierarchy, authority, and, established rules. Ok, that’s too real-lifey. What does Ana.js question? What is considered to be a hierarchy, authority, or rules in the world of Front-End JavaScript Framework? Well, any answer to this will be completely arbitrary. I wouldn’t even say that the framework goes entirely against the “establishment”, it being the numerous highly competent frameworks that solve problems in the industry. Nevertheless, it does go against certain industry standards.

  • No compilers, no builders

    I would suppose that this is a controversial take, given that the industry is moving towards front-end compilers for smaller builds. But this framework is more of a library, a hypothetical JavaScript update for the language itself, for easier manipulation and creation of elements.

  • Good 'ol JavaScript Functions

    This framework is non-declarative by nature. The main deal is that creating HTML Elements is done functionally. Render functions receive other render functions as parameters. There is no markup to interact and everything can fit inside a script tag. Web components are built using these functions, so they get added to the render dictionary like any other HTML Element.

Back to top


Getting started

NPM

  1. Install the library

    npm i ana.js
  2. Saffold a vanilla-ts project using Vite.

    npm create vite@latest
    • Select project name.

    • From the list of Frameworks choose vanilla, then vanilla-ts.

    • Install all node modules.

  3. Install the Ana.js package.

    npm i ana.js
  4. Import the Ana module

    import { Ana } from 'ana.js'
    
    const A = new Ana()
    const a = A.render()

Downloadable

Download the latest release.

<link rel="stylesheet" href="ana.min.css">
<script src="ana.min.js"></script>

Back to top


Roadmap

  • Features

    • [x] Basic Reactivity.
      • [ ] Intelligent reactivity.
    • [x] SVG support. (~20% of SVG Elements)
    • [ ] Server Side rendering.
    • [ ] Lazy Loading.
    • [ ] Reduce library intializaiton to an external anaconfig.json file.
  • Development

    • [x] Error handling.
    • [x] Unit testing.
    • [ ] Github actions for CI/CD.
    • [ ] Project dockerization.
    • [x] Optionally imported features.
      • [x] Add custom components
  • External

    • [ ] Prettier plugin or configuration file.
    • [ ] VSCode syntax highlighting.
    • [ ] Scaffolding CLI package ana-cli.

Back to top