# @forrestjs/core

> ForrestJS is the Javascript plugin syste.

Latest version **5.2.2** (published 2024-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @forrestjs/core
pnpm add @forrestjs/core
yarn add @forrestjs/core
bun add @forrestjs/core
```

## Health

**Score 25/100 (F)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.2.2 |
| Published | 2024-03-18 |
| First published | 2019-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 53.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marco Pegoraro |
| Maintainers | marcopeg |
| Keywords | forrestjs, plugin, extension, extensions, actions, features, services, modularity |

## Links

- npm: https://www.npmjs.com/package/@forrestjs/core
- Repository: https://github.com/forrestjs/forrestjs.git#master
- Homepage: https://github.com/forrestjs/forrestjs/tree/master/packages/core#readme
- Issues: https://github.com/forrestjs/forrestjs/issues
- npm.io page: https://npm.io/package/@forrestjs/core

## Dependencies (1)

- [@marcopeg/dotted](https://npm.io/package/@marcopeg/dotted.md) ^1.12.0

## Recent versions

- 5.2.2 (latest) — 2024-03-18
- 5.2.1 — 2023-03-21
- 5.2.0 — 2023-03-21
- 5.1.1 — 2023-03-21
- 5.1.0 — 2023-03-21
- 5.0.6 — 2023-03-20
- 5.0.5 — 2023-03-14
- 5.0.4 — 2023-03-14
- 5.0.3 — 2023-03-12
- 5.0.2 — 2023-03-12
- 5.0.1 — 2023-03-12
- 5.0.0-alpha.40 — 2023-03-12
- 5.0.0-alpha.39 — 2023-03-10
- 5.0.0-alpha.38 — 2023-03-10
- 5.0.0-alpha.37 — 2023-03-10
- … 198 more at https://npm.io/package/@forrestjs/core/versions

## README

# @forrestjs/core

ForrestJS helps you build a **Modular JavaScript Application** where you can (almost) forget about the infrastructure and **FOCUS ON YOUR BUSINESS VALUE**.

---

## Install & Setup

```js
npm add @forrestjs/core
```

---

## Quick Code Example

https://codesandbox.io/p/sandbox/service-fastify-th8dq?file=%2Fsrc%2Findex.js

```js
const forrest = require('@forrestjs/core');
const fastify = require('@forrestjs/service-fastify');

forrest.run({
  // Add ForrestJS wrappers to famous and useful libraries
  services: [fastify],

  // Integrate your Business Logic with the running services
  features: [{
    target: '$FASTIFY_ROUTE',
    handler: {
      method: 'GET',
      url: '/',
      handler: async () => 'Hello World',
    },
  }],

  // Provide configuration to Services and Features
  settings: {
    fastify: {
      port: '8080'
    }
  }
]);
```

---

## Documentation

- Concepts
  - [Vocabulary](./docs/vocabulary/README.md)
  - [App Lifecycle Extensions](./docs/lifecycle/README.md)

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