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

qwq-frame

v1.1.3

Published

这是一个神奇的前端框架 适用于网页,网页插件,前端游戏等

Downloads

8

Readme

QwQ Frame

这是一个神奇的前端框架
适用于网页,网页插件,前端游戏等

与其他前端框架不同的是
QwQFrame 更像是工具包与一种规范的整合 (详见 入门)

你可以专心于逻辑和样式设计
而不是一遍又一遍的重写和浏览器 api 打交道的部分

(readme 就是用来画大饼的(什))

  • 这个框架帮你管理
    • dom 操作
    • 网络操作 (还没做
    • 数据处理 (还没做
    • 状态管理 (还没做
    • 调试与错误收集 (还没做

入门

学习 QwQFrame 的最好方法是完全了解你所使用功能的原理
换句话说你需要知道所有你调用的 QwQFrame 的方法帮你做了什么

QwQFrame 的文档中对部分方法的执行过程进行了描述
或者你也可以直接阅读本项目的源码
为了方便快速浏览源码 可查看本项目的结构描述文件 projectStructure

首先 可以从教程文档开始 (位于 qwqFrame-doc 项目中)

QwQFrame 的美学

以下内容可能会引起审美分歧

(QwQ 是一个很奇怪的家伙啦)

HTML 和 CSS 是很不错的东西啦, 但是既然他们可以全部写在 js 里, 那为什么不呢?
那么不如 用 js 的原生模块让 HTML 和 CSS 也模块化!

使用 HTML 文档创建 DOM 树 -> 使用 js 生成 DOM 树
使用元素的 class 属性和 CSS 选择器 -> 使用 js 赋予样式
使用元素的 id 属性 然后从 js 中获取 -> 在 js 中直接使用由 js 生成的元素

无论是 多界面少逻辑 还是 少界面多逻辑 都可以自然的写在一个 js 文件中
对于多界面多逻辑的场景 使用 js 原生模块进行拆分也能使项目十分有序

既不是在 HTML 的语法上扩展类 js 语法
也不是在 js 的语法上扩展出对 XML 语法的兼容
而是使用完完全全的 javascript 语法 无需构建 直接在浏览器中运行

这便是 QwQFrame 框架诞生的原因 无 HTML 和 CSS 并且无需构建运行 并且不使用映射的进行断点调试
即使在生产环境中部署也仅仅需要对 js 进行合并和压缩

-- 来自 QwQ 的奇怪前端美学