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

s-nestjs-module-llm

v1.0.0

Published

A submodule for nestjs, with features like a llm

Downloads

329

Readme

S-NestJS-Module-LLM

Moduł NestJS do integracji z OpenAI API.

Dokumentacja

Pełna dokumentacja modułu jest dostępna w katalogu docs.

Funkcje

  • Integracja z API OpenAI
  • Konwersja mowy na tekst
  • Generowanie tekstu na podstawie promptów
  • Analiza obrazów
  • Obsługa JSON-owych odpowiedzi

Instalacja

npm install s-nestjs-module-llm

Przykład użycia

import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { LLMModule } from 's-nestjs-module-llm';

@Module({
  imports: [
    ConfigModule.forRoot(),
    LLMModule.forRootAsync({
      useFactory: (configService: ConfigService) => ({
        apiKey: configService.get('OPENAI_API_KEY'),
        logPrompts: configService.get('LOG_PROMPTS') === 'true',
        logPath: configService.get('LOG_PATH'),
      }),
      inject: [ConfigService],
    }),
  ],
})
export class AppModule {}

Important Links

Remove before final release


A submodule for nestjs, with features like a llm

Swagger

Go to localhost:3000/docs

Example API

Po uruchomieniu aplikacji, możesz przetestować API używając poniższych endpointów:

  • GET /api/start - Zwraca dane startowe, w tym listę użytkowników
  • GET /api/user/:id - Zwraca dane pojedynczego użytkownika

Przykłady użycia

Pobieranie danych startowych:

curl http://localhost:3000/api/start

Pobieranie danych użytkownika:

curl http://localhost:3000/api/user/9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

Generowanie schematów dla frontendu

Aby wygenerować schematy dla aplikacji frontendowej:

npm run zod:generate

Schematy zostaną wygenerowane w katalogu ../frontend/types/zod-schemas.

Integrated features

Don't worry, with this template you will anyways get all the awesomeness you need:

🎯 Getting Started

To get started with this boilerplate, follow these steps:

  1. Install the dependencies:
yarn install
  1. Run the update witch s-update-manager:
yarn s-update-manager
  1. Set up your repository

Replace variable in the ./tools/customize/customize.config.ts script with your own details to personalize your new package:

export const config: CustomizeConfig = {
  replacements: [
    {
      placeholder: "{{PLACEHOLDER_FULL_NAME_EXAMPLE}}",
      value: "Sebastian Wesolowski",
      files: [
        "package.json",
        "README.md",
        "./docs/HowToAutoDeploy.md",
        ".github/FUNDING.yml",
      ],
    },
    {
      placeholder: "{{PLACEHOLDER_PAGE_AUTHOR_EXAMPLE}}",
      value: "www.wesolowski.dev",
      files: [".github/FUNDING.yml", "package.json", "LICENSE"],
    },
    ...

You can look on example in ./tools/customize/customize.example.config.ts

Run script with:

yarn customize

or

tsx tools/customize/customize.ts
  1. Optional
  • 4.1. Add ngrok token in .env file for local development

     NGROK_AUTH_TOKEN=your_ngrok_token

    after that you can run ngrok to expose your local server to the internet:

      yarn dev:tunnel

    ngrok

  1. Run the development server:

Deployment

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the deployment documentation for more information.

If you are looking for a cloud-based platform to deploy your NestJS application, check out Mau, our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:

$ npm install -g mau
$ mau deploy

With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.

yarn dev

🔗 Coupling Graph

The coupling-graph script is a useful tool that helps visualize the coupling and connections between your project's internal modules. It's built using the Madge library. To generate the graph, simply run the following command:

yarn coupling-graph

This will create a graph.svg file, which contains a graphical representation of the connections between your components. You can open the file with any SVG-compatible viewer.

graph

Badges

Downloads Issues Commitizen Friendly Semantic Release GitHub License