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 🙏

© 2024 – Pkg Stats / Ryan Hefner

swagger-dev-server

v0.0.4

Published

It's intended for development purposes to hot reload swagger API documentation.

Downloads

3

Readme

Swagger-dev-server

Effortlessly hot reload your Swagger API documentation during development!

Swagger-dev-server streamlines the development process for users working with Swagger API Documentation (specially in NestJS). It seamlessly integrates with your backend development server to provide:

  • Seamless Live Updates: Experience lightning-fast updates to your API documentation whenever you make changes to the source files. No more manual refreshes or delays!
  • Effortless Integration: Works seamlessly with your existing Swagger setup, eliminating the need for additional configuration or infrastructure.
  • Enhanced Productivity: Focus on code improvements and iteration rather than wasting time on manual doc updates. Hot reloading keeps your documentation in sync, streamlining your workflow.
  • Improved Developer Experience: Say goodbye to tedious manual refreshes and enjoy a smoother, more efficient development experience.

Getting Started:

  1. Install the package:

    npm install --save-dev swagger-dev-server
    or
    yarn add -D swagger-dev-server
  2. Create a .env file:

    Create a .env file (if not already present) in your project's root directory and define the following environment variables:

    API_SYNC_FILES=./src/**/*.ts
    RELOAD_DELAY=5000
    API_DOCUMENTATION_PORT=3081 # Documentation will run on this port
    PORT=3000	# Server port
    API_PATH=   # Optional path prefix for the API documentation URL.
  3. Add a start command in your package.json script to run it:

    "start:swagger":  "node ./node_modules/swagger-dev-server"
  4. After running the backend server, execute the below command in a separate terminal:

    npm run start:swagger
    or
    yarn start:swagger

Instant Updates for Swagger Documentation

Enjoy instant updates to your Swagger documentation and focus on what matters most - building amazing APIs!

Additional Notes:

  • Ensure your backend development server is running and serving the API documentation at the specified port.
  • Customize the environment variables as needed to match your project's configuration.

By leveraging swagger-dev-server, Swagger users can significantly enhance their development efficiency and experience a more streamlined workflow. Say goodbye to manual refreshes and hello to a more productive and enjoyable development process!