Rakkit logo


You can simply install Rakkit with npm or yarn.

npm i rakkit
yarn add rakkit

Decorators and reflect-metadata

To use Rakkit, and also for all TS applications using decorators you will need to install reflect-metadata and include it in your application's start file.

npm i reflect-metadata
yarn add reflect-metadata

You must also declare in the tsconfig.json file that you are using decorators:

  "compilerOptions": {
    "emitDecoratorMetadata": true, // <-
    "experimentalDecorators": true, // <-
    "module": "commonjs",
    "target": "es2016",
    "noImplicitAny": false,
    "sourceMap": true,
    "outDir": "build",
    "declaration": true,
    "importHelpers": true,
    "forceConsistentCasingInFileNames": true,
    "lib": [
    "moduleResolution": "node"