# @zanix/server-core

> ZanixJS Framework APP Server Core

Latest version **2.2.0** (published 2025-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @zanix/server-core
pnpm add @zanix/server-core
yarn add @zanix/server-core
bun add @zanix/server-core
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2025-03-11 |
| First published | 2023-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 20 |
| Unpacked size | 452.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ismael Calle - icalle@utp.edu.co |
| Maintainers | zanix-io, iscam2216 |

## Links

- npm: https://www.npmjs.com/package/@zanix/server-core
- Repository: https://github.com/zanix-io/zjs-server-core
- Homepage: https://github.com/zanix-io/zjs-server-core#readme
- Issues: https://github.com/zanix-io/zjs-server-core/issues
- npm.io page: https://npm.io/package/@zanix/server-core

## Dependencies (20)

- [h3](https://npm.io/package/h3.md) ^1.13.0
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [uuid](https://npm.io/package/uuid.md) ^9.0.1
- [dotenv](https://npm.io/package/dotenv.md) ^16.3.1
- [events](https://npm.io/package/events.md) ^3.3.0
- [express](https://npm.io/package/express.md) ^4.18.2
- [graphql](https://npm.io/package/graphql.md) ^16.8.1
- [socket.io](https://npm.io/package/socket.io.md) ^4.7.5
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.7.0
- [compression](https://npm.io/package/compression.md) ^1.7.4
- [graphql-http](https://npm.io/package/graphql-http.md) ^1.22.0
- [@zanix/logger](https://npm.io/package/@zanix/logger.md) ^2.0.0
- [better-sqlite3](https://npm.io/package/better-sqlite3.md) ^10.0.0
- [class-validator](https://npm.io/package/class-validator.md) ^0.14.0
- [graphql-request](https://npm.io/package/graphql-request.md) ^6.1.0
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13
- [@zanix/std-config](https://npm.io/package/@zanix/std-config.md) ^1.0.6
- [class-transformer](https://npm.io/package/class-transformer.md) ^0.5.1
- [http-status-codes](https://npm.io/package/http-status-codes.md) ^2.3.0
- [@zanix/react-components](https://npm.io/package/@zanix/react-components.md) ^2.1.15

## Recent versions

- 2.2.0 (latest) — 2025-03-11
- 1.0.0-beta.8 (beta) — 2024-06-08
- 2.1.6 — 2025-02-26
- 2.1.5 — 2024-11-14
- 2.1.4 — 2024-11-14
- 2.1.3 — 2024-10-25
- 2.1.2 — 2024-10-19
- 2.1.1 — 2024-10-19
- 2.1.0 — 2024-10-18
- 2.0.3 — 2024-10-16
- 2.0.2 — 2024-10-11
- 2.0.1 — 2024-09-26
- 2.0.0 — 2024-09-25
- 2.0.0-alpha.7 — 2024-08-21
- 2.0.0-alpha.5 — 2024-08-17
- … 11 more at https://npm.io/package/@zanix/server-core/versions

## README

### @zanix/server-core

[![npm version](https://badge.fury.io/js/%40zanix%2Fserver-core.svg)](https://badge.fury.io/js/%40zanix%2Fserver-core) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![npm downloads](https://img.shields.io/npm/dt/%40zanix%2Fserver-core.svg)](https://www.npmjs.com/package/@zanix/server-core)

[![PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://paypal.me/ismaelcallem?country.x=CO&locale.x=es_XC)

## Table of Contents

- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Support and Contributions](#support-and-contributions)
- [License](#license)
- [Authors](#authors)

<a name="introduction"></a>

### Introduction

`@zanix/server-core` is the core API server module of the ZanixJS Framework. It provides essential functionalities and modules for building powerful and scalable Node.js applications.

<a name="installation"></a>

### Installation

To install `@zanix/server-core` in your project, use the following command:

```bash
npm install @zanix/server-core
```

<a name="usage"></a>

### Usage

The `App` instance from `@zanix/server-core` provides various modules and containers essential for your application's functionality. Below are some key components available within the `App` instance:

- `Data`: Default database module (`DefaultDB`)
- `Auth`: Default authentication module (`DefaultAuth`)
- `Context`: Container for managing context
- `Adapters`: Container for managing adapters
- `Controllers`: Container for managing controllers
- `Middlewares`: Container for managing middlewares
- `Resolvers`: Container for managing resolvers
- `Services`: Container for managing services
- `Jobs`: Container for managing jobs
- `Subscribers`: Container for managing subscribers
- `Interactors`: Container for managing interactors
- `routers`: Different routers for REST, GraphQL, and internal communication
- `events`: Emitter for handling events (`emit`, `subscribe`, `reset`)

The `logger` instance from `@zanix/logger` is also available for logging purposes within your application.

<a name="support-and-contributions"></a>

### Support and Contributions

If you encounter any issues or have suggestions for improvements, please submit them in the [issue tracker](https://github.com/zanix-io/zjs-server-core/issues).

Contributions to enhance the functionality or resolve issues are welcomed via pull requests. Ensure adherence to code standards and include appropriate test coverage.

<a name="license"></a>

### License

This module is open-source and released under the [MIT License](https://opensource.org/licenses/MIT). You are free to modify and distribute it as per the terms of the license.

<a name="authors"></a>

### Authors ✨

- Ismael Calle Marulanda [@iscam2216](https://github.com/iscam2216)

---
_Source: https://npm.io/package/@zanix/server-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
