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

@kodifly/kodifly-auth

v3.0.15

Published

An out-of-box UI solution for enterprise applications

Readme

@kodifly/kodifly-auth

Enterprise-ready authentication and user-management UI blocks built on top of Ant Design Pro Components. Drop in opinionated, accessible flows like sign-in, password reset, OTP verification, and profile management without re-inventing every input, validation rule, or i18n string.

Highlights

  • Ready-to-ship auth flows: SignInForm, RegisterForm, ForgotPasswordForm, OTPForm, ResetPasswordForm, PasswordExpire, and VerifyPage
  • Profile-centric layouts and widgets: ProfilePageLayout, UserProfile, editable profile forms, avatar sections, and reusable modals
  • Built with Ant Design v5 and Pro Components, so tokens, dark mode, and layout primitives just work
  • First-class TypeScript definitions and composable building blocks (buttons, inputs, wrappers) for mixing in custom business logic

Installation

npm install @kodifly/kodifly-auth \
  @ant-design/icons @ant-design/pro-components antd antd-style react react-dom

The package ships the original source so your bundler should already understand TypeScript and Less (the library imports src/styles/main.less). If your toolchain does not support Less, add a Less loader or transpile the file during build.

Quick Start

import React from 'react';
import {
  SignInForm,
  ForgotPasswordForm,
  ResetPasswordForm,
  ProfilePageLayout,
} from '@kodifly/kodifly-auth';
import '@kodifly/kodifly-auth/src/styles/main.less';

export default function AuthExample() {
  const handleLogin = async (values) => {
    await api.auth.login(values); // throw with { fields } to surface field-level errors
  };

  return (
    <ProfilePageLayout>
      <SignInForm
        title="Welcome back"
        logo="/brand.svg"
        language="en"
        showSignUpAction
        packageVersion="3.0.14"
        onLogin={handleLogin}
        onSignUp={() => router.push('/register')}
        onForgotPass={() => modal.open(<ForgotPasswordForm />)}
        onPasswordExpireRedirect={() => router.push('/password-expired')}
      />
    </ProfilePageLayout>
  );
}

Error handling contract

SignInForm inspects thrown error.fields objects and automatically maps well-known keys (email, password, password_expired, etc.) back into Ant Design forms, so you only need to surface validation messages from your API layer. Callbacks such as onPasswordExpireRedirect let you redirect when the backend signals special states.

Component Surface

| Area | Component(s) | Notes | | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | Auth flows | SignInForm, RegisterForm, ForgotPasswordForm, ResetPasswordForm, OTPForm, VerifyPage, PasswordExpire | Ready-made screens, built-in i18n (English and Indonesian), button state guards, and Ant Design validation | | Login shell | LoginForm | A thin wrapper over @ant-design/pro-components LoginForm with branding slots (title, logo, submitText, custom children) | | Profile & user management | ProfilePageLayout, UserProfile, Forms/EditProfile, Forms/AvatarSection, Forms/PasswordChange, UserProfile/PersonalInfo, etc. | Compose your profile page with responsive cards, avatars, and editable sections | | Modals | CustomModal, CustomFormModal, EditUserModal, PasswordChangeModal | Pre-styled modals wired to Ant Design forms; perfect for advanced flows like change password or edit user | | Inputs & atoms | FormInputs/Button, FormInputs/InputText, FormInputs/InputSelect, Wrappers/NotificationMessage | Use individually if you only need consistent primitives |

Explore src/components/ to see prop definitions or extend the supplied TypeScript types.

Styling & Theming

  • Import the default Less theme once in your app entry: import '@kodifly/kodifly-auth/src/styles/main.less';
  • Override Ant Design tokens or Less variables to align with your design system
  • Components expose className, style, and Ant Design’s native props so you can fine-tune spacing, colors, and layout

Localization

SignInForm ships with English (en) and Indonesian (id) strings out of the box. Pass language="id" to switch the built-in dictionary. For other languages, fork the component or wrap it with your own translated copy.

TypeScript Support

Type declarations live in types/ and mirror every exported component. Import types such as LoginParamsType from @kodifly/kodifly-auth/types (or rely on inference directly from the component props).

Contributing

  • Clone the repo and install dependencies with npm install
  • Run npm run lint and npm run tsc before opening a PR
  • We welcome bug reports, feature requests, and examples/screenshots showing how you use the library

License

ISC © Kodifly. Use it freely in commercial and OSS projects.