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 🙏

© 2026 – Pkg Stats / Ryan Hefner

jam-framework

v0.0.6

Published

pc js ui framework

Downloads

14

Readme

简介

jam-framework是一个PC端JS框架。秉持 “如果有小而美的轮子,就不再造轮子” 宗旨在不断造轮子。

jam-framework除了使用jQuery这个比较大的DOM操作库,其他都是jam-framework自己再造的轮子。使用jQuery而不使用react,是为了降低框架使用门槛,让后端人员也能拿来即用。

jam-framework 使用了以下第三方库:

  • 模块化:jam框架内部使用AMD规范,使用了require.js
  • 模板: mustache,虽然mustache只能做简单的四则运算和Boolen判断,但是它小而精悍。
  • DOM操作: jQuery,后端人员也很熟悉的DOM操作库。
  • 工具函数: Underscope,弥补模板的运算的不足。

现在已经完成的分基础类跟UI类组件两部分:

  • UI组件:有图片轮换、遮罩层、弹出层;
  • 基础类组件:ajax等轮子。

后续会不断完善更新更好的小轮子......

框架内部使用了AMD规范,但是使用jam-framework可以不用引入require.js,因为框架内部已经将jam暴露到全局变量,所以引用jam.js之后,可以直接使用jam对象内的组件。

文档地址