# NewLifeX/X

Core basic components: log (file / network), configuration (XML / JSON / HTTP), cache (memory / redis), network (TCP / UDP / HTTP), RPC framework, serialization (binary / XML / JSON), APM performance tracking. 核心基础组件，日志（文件/网络）、配置（XML/Json/Http）、缓存（内存/Redis）、网络（Tcp/Udp/Http）、RPC框架、序列化（Binary/XML/Json）、APM性能追踪。

Repository: https://github.com/NewLifeX/X
Canonical: https://ross.abutalabs.com/products/newlifex-x
Homepage: https://newlifex.com
Language: C#
License: MIT
License Family: permissive
Topics: network, security, thread, reflection, service, server, serialize, rpc, api, newlife
Last push: 2026-08-22T17:05:21+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3724, "days_push": 11, "days_rel": 716, "gap_med": null, "n_releases_24m": 1}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1860, forks 549 (observed 2026-08-28T04:05:45.362994+00:00)

## What it is
NewLife.X is a core foundational component library for .NET (C#) providing logging, configuration, caching (memory/Redis), networking (TCP/UDP/HTTP), an RPC framework, serialization, and APM performance tracing. It serves as the base of the NewLife 'family bucket' of components used across the team's larger products.

## Use cases
- add file or network logging to a .NET application
- cache data in memory or Redis from C# code
- build RPC services between .NET apps
- serialize objects to binary, XML, or JSON
- handle TCP/UDP/HTTP networking in C#
- trace APM performance metrics in .NET services
- load configuration from XML, JSON, or HTTP

## When to choose
- you are building .NET backend services and want an all-in-one set of core components
- you need lightweight RPC, caching, and logging without heavy external dependencies
- you are already in the NewLife ecosystem (XCode, Cube)

## When to avoid
- you prefer widely adopted mainstream libraries like ASP.NET Core built-ins, Serilog, or gRPC
- your project is not on the .NET platform
- you need a single-purpose, minimal library rather than a broad framework

## Facets
- artifact type: library
- maturity: active
- function: logging, caching, serialization, rpc, http-client, http-server, networking, configuration-management, monitoring, middleware
- domain: developer-tools, backend, microservices, networking, apis
- platform: dotnet, cross-platform, windows
- tags: newlife, csharp, apm, basic-components, redis-cache, tcp-udp, xml--config, linux

## Member repositories
- NewLifeX/X (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:45.362994+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:15:52.095289+00:00, confidence not recorded.
  - homepage: https://newlifex.com (fetched 2026-08-29T10:54:53.170946+00:00, sha 2ff98cd35fa4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
