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

@fumeboy/relax

v0.1.0

Published

relax

Downloads

7

Readme

坑也太多了

初版已经实现

依赖 nodejs 运行,启动口令见 package.json

2020 / 1 / 17 :

抄完了 vdom 这一部分,也不知道该从 react / vue 抄什么了。

我个人认为,视图的刷新等由程序员手动进行更符合人的直觉,对于生命周期、状态管理、组件类等,并没有太大的必要去实现

下一步的计划是以 多页应用为框架的产出目标,并重视首屏加载优化。

具体计划是:

  1. 多个程序入口(page1.ts, page2.ts) => page1.html, page2.html

    而非 (page1.ts, page2.ts)=> index.html

    由于多入口,所以访问单页,比如 page2 时,那当然不用再加载无关的 page1.ts

    (写了一个 webpack 插件来实现, 第一部分完成)

  2. 加入“预处理”,一些固定的计算和“初始化”的一些固定部分,可以“预处理”掉,而不是留给浏览器去计算。

    比如: 页面 1 初始化时需要悬挂 10 个 child 节点到 root 节点 ( for 10 :root <- child),如果这个过程无论哪个客户端看到都是同样的结果,那便可以直接“预处理”为 root = child, child ...

    (预处理是可以手动进行的。


预处理的打算还是放弃好了……

这个框架已经打包放在了 https://www.npmjs.com/package/@fumeboy/relax