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

node-agile-client

v0.0.6

Published

AgileConfig的node客户端

Readme

node-agile-client

AgileConfig(配置中心)的node客户端

Introduction

AgileConfig 是一个基于.net core开发的轻量级配置中心。 AgileConfig秉承轻量化的特点,部署简单、配置简单、使用简单、学习简单,它只提取了必要的一些功能,并没有像Apollo那样复杂且庞大。但是它的功能也已经足够你替换webconfig,appsettings.json这些文件了。如果你不想用微服务全家桶,不想为了部署一个配置中心而需要看N篇教程跟几台服务器那么你可以试试AgileConfig :)

本项目为Node.js 客户端,工作原理如下:

Features

  • 支持缓存获取配置配置
  • 支持websocket长连接定时获取配置
  • websocket/http连接失败时降级使用缓存配置
  • 多节点重试机制

Usage

Install

npm i node-agile-client

Init

在你的node项目初始化的时候初始化node-agile-client

import { init } from 'node-agile-client';

init({
  appid: 'app',
  secret: 'xxx',
  node: 'http://192.168.1.1,http://192.168.1.2',
  env: 'DEV',
  tag: '',
  name: '',
  httptimeout: 100,
  debug: false,
});

|配置项名称|数据类型|配置项说明|是否必填|备注| |--|--|--|--|--| |appid|string|应用ID|是|对应后台管理中应用的应用ID| |secret|string|应用密钥|是|对应后台管理中应用的密钥| |nodes|string|应用配置节点|是|存在多个节点则使用逗号,分隔| |env|string|配置中心的环境|否|通过此配置决定拉取哪个环境的配置信息;如果不配置,服务端会默认返回第一个环境的配置| |name|string|连接客户端的自定义名称|否|方便在agile配置中心后台对当前客户端进行查阅与管理| |tag|string|连接客户端自定义标签|否|方便在agile配置中心后台对当前客户端进行查阅与管理| |httptimeout|number|http请求超时时间|否|配置 client 发送 http 请求的时候的超时时间,默认100000(100秒)| | |debug|boolean|debug模式|否|打印更多信息| |

Use

import { getAgileConfig } from 'node-agile-client';

const { token, url } = getAgileConfig();

Changelog

v0.0.4

  • 修复type定义问题

v0.0.3

  • typescript改造
  • 支持cjs和esm5使用
  • 修复第一次启动报错的问题

v0.0.2

  • 通过md5优化获取配置的逻辑,减少配置中心的访问次数

v0.0.1

  • 支持多节点获取配置和websocket长链接监听