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

react-next-framework

v1.0.6

Published

An i18n next app with server side rendering

Downloads

2

Readme

react-next-framework

React full framework 主要包含以下模块:

React + NextJs + i18n + Less + Redux + Router + Eslint + Axios + Bootstrap

npm version npm downloads

为能更好、快速、科学的开发项目,便研发出了此框架。它的实现的目标如下:

  • [x] 1. 结合Nextjs和express实现React服务端渲染,SEO优化合理;
  • [x] 2. 支持多语言功能,能自动提取项目中的中文内容,生成翻译文件;
  • [x] 3. 添加Less,页面样式编辑;
  • [x] 4. 添加Router,路由管理;
  • [x] 5. 添加网络请求模块,各个组件和无需区别客户端还是服务端,直接调用实现数据请求;
  • [x] 6. 添加Eslint,规范项目编程风格;
  • [x] 7. 添加Redux,统一规范状态管理,可以在任意组件页面无需引用便可直接调用方法更新状态。

快速以此模板创建项目

npx yld-cli init <your-project-name>

目录结构说明

|-- assets 放置样式文件
|   |-- pages 放置页面相关样式
|   |-- common.less 公共样式
|-- components            组件
|-- lib                   相关工具
|-- locales               多语言文件文件
|-- pages                 页面
|-- server                服务端渲染
|-- static                放置静态文件
|-- store                 状态管理
|-- .eslintrc.js          Eslint配置
|-- .gitignore            git管理
|-- next.config.js        next配置

开发环境

npm i
npm run dev

生产环境

npm i
npm run build
npm run online

作者

好用的工具千千万万,方便的框架万里挑一...