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

fauth-template

v1.1.6

Published

Generate auth templates for your projects

Readme

🔑 SecureFlow: Modern Authentication Template

Unlock secure and seamless authentication for your projects with SecureFlow! This template provides a robust foundation for user authentication, combining cutting-edge technologies and best practices.

✨ Description

SecureFlow is designed to streamline the implementation of authentication in your applications. It includes both Go (Fiber) and Node.js (Express) servers, along with a Next.js client, offering a comprehensive solution for modern web development.

🚀 Installation

Get started with SecureFlow in just a few steps:

  • Clone the Repository:

    git clone https://github.com/onosejoor/auth-template.git
    cd auth-template
  • Install Dependencies:

    For the client:

    cd client
    npm install
    cd ..

    For the Node.js server (if applicable):

    cd node_server
    npm install
    cd ..

    For the Go server (if applicable):

    cd go_server
    go mod tidy
    cd ..
  • Configure Environment Variables:

    • Copy .env.example to .env in both go_server and client directories.
    • Fill in the required variables:
      • MONGODB_URL: Your MongoDB connection string.
      • JWT_SECRET: Secret key for JWT.
      • ACCESS_SECRET: Secret key for access tokens.
      • SERVER_URL: The URL of your backend server.
      • ENVIRONMENT: Set to production for production environments.

💻 Usage

Running the Application

  • Client:

    cd client
    npm run dev
  • Node.js Server:

    cd node_server
    npm run dev
  • Go Server:

    cd go_server
    go run main.go

Access the Application

  1. Open your web browser.
  2. Navigate to http://localhost:3000 (or the port specified by your client configuration).
  3. You can now sign up, sign in, and access the profile page

🌟 Features

  • 🛡️ Secure Authentication: Robust sign-up, sign-in, and OAuth flows.
  • 🔑 JWT Handling: Secure handling of JSON Web Tokens for session management.
  • 🌐 Cross-Origin Support: CORS configured for seamless communication between client and server.
  • 🚦 Middleware: Authentication middleware to protect routes.
  • ⚙️ Validation: Data validation to ensure clean and secure data handling.
  • Dual Server Options: Choose between Go (Fiber) and Node.js (Express) for your backend.
  • 🎨 Modern UI: Uses Radix UI and Tailwind CSS for a sleek, modern user interface.

🛠️ Technologies Used

| Technology | Description | Link | | :------------- | :----------------------------------------------- | :-------------------------------------------- | | TypeScript | Primary language for client and Node.js server | TypeScript | | Next.js | React framework for the client | Next.js | | Go | Backend server language option | Go | | Fiber | Go web framework (if Go server chosen) | Fiber | | Node.js | Backend server language option | Node.js | | Express | Node.js web framework (if Node.js server chosen) | Express | | MongoDB | Database for user data | MongoDB | | Radix UI | Set of accessible UI primitives | Radix UI | | Tailwind CSS | Utility-first CSS framework | Tailwind CSS | | Zod | Schema validation | Zod | | JSON Web Token | Industry standard for secure authentication | JWT |

🎉 Contributing

We welcome contributions to SecureFlow! Here's how you can help:

  • 🐛 Report Bugs: Submit detailed bug reports to help us improve.
  • 💡 Suggest Features: Share your ideas for new features and enhancements.
  • 🛠️ Submit Pull Requests: Contribute code by submitting pull requests.

Please follow these guidelines:

  • Ensure your code adheres to the project's coding standards.
  • Provide clear and concise commit messages.
  • Test your changes thoroughly.

CHANGELOG

Refer to the CHANGELOG for the changelogs

👨‍💻 Author Info

🛡️ Badges

Go NodeJS TypeScript NextJS Tailwind CSS

Readme was generated by Dokugen