DEV Community

Cover image for Top 4 NPM Libraries I used to Elevate My Project πŸš€
Rijul Rajesh
Rijul Rajesh

Posted on

49 6 8 7 8

Top 4 NPM Libraries I used to Elevate My Project πŸš€

NPM Libraries can make it or break it. So its essential to choose the good ones and take your project to the next level.

We leveraged these 4 amazing NPM libraries to elevate my product LiveAPI to greater heights.


1. React Joyride - Enhancing User Onboarding

Image description

When LiveAPI introduced AI-powered documentation, onboarding became a key priority. Developers needed clear, step-by-step guidance to understand features like connecting Git Repositories and Generating documnetation

How LiveAPI Used It:

We used React Joyride to design interactive walkthroughs within our Get Started Checklist.

  • The first-time user experience includes a tour highlighting the "Connect GitHub/GitLab" button and other integrations.
  • It guides users through uploading their repositories and demonstrates how to generate docs,
  • It shows how to create organizations and invite users

Image description

npm install react-joyride
Enter fullscreen mode Exit fullscreen mode

2. Radix UI Components - Building Accessible and Polished UI

Image description

LiveAPI is packed with functionality, from dropdown menus to modals. Maintaining both accessibility and design flexibility was critical.

How LiveAPI Used It:

We adopted Radix UI primitives like Dialog, Popover, and Tabs to create responsive, accessible components.

Radix UI allowed us to maintain consistency in UI behavior across different components while keeping the design customizable.

npm install @radix-ui/react-dialog @radix-ui/react-tabs
Enter fullscreen mode Exit fullscreen mode

3. Date-Fns - Simplifying Date and Time Management

Image description

LiveAPI's auto-sync feature ensures that API docs update seamlessly whenever the repository changes. To display accurate timestamps for sync logs, we needed a robust and lightweight date library.

How LiveAPI Used It:

With Date-Fns, we:

  • Displayed readable timestamps like "Last updated: 2 hours ago" in sync logs.
npm install date-fns
Enter fullscreen mode Exit fullscreen mode

4. React Confetti - Celebrating User Milestones

Celebrating achievements like completing the beginners checklist adds a delightful touch to the user experience.

How LiveAPI Used It:

We incorporated React Confetti to add a celebration effect when the user completes all the items in their get started checklist

This small yet impactful addition made the experience joyful and memorable for users.

npm install react-confetti
Enter fullscreen mode Exit fullscreen mode

Closing Thoughts

These four libraries were very handy during the development of LiveAPI. From smooth onboarding with React Joyride to polished interfaces using Radix UI, each library brought unique value to the table, helping us deliver on our promise of Super-Convenient API Documentation.

Do you want to see these libraries in action? Try LiveAPI for free today and experience the difference! πŸš€

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (2)

Collapse
 
anjitpariyar profile image
anjit pariyar β€’

Joyride πŸ™

Collapse
 
lovestaco profile image
Athreya aka Maneshwar β€’

React Joyride is truly a blessing πŸ˜„

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more