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

afa-api-client

v0.1.20250830195858

Published

OpenAPI client for afa-api-client

Readme

[email protected]

This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Publishing

First build the package then run npm publish

Consuming

navigate to the folder of your consuming project and run one of the following commands.

published:

npm install [email protected] --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

Documentation for API Endpoints

All URIs are relative to http://localhost:5000

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- AdminCoursesApi | apiAdminCoursesGet | GET /api/admin/courses | Get all courses with filtering and pagination (Admin only) AdminCoursesApi | apiAdminCoursesIdDelete | DELETE /api/admin/courses/{id} | Delete course (Admin only) AdminCoursesApi | apiAdminCoursesIdLecturesGet | GET /api/admin/courses/{id}/lectures | Get all lectures for a specific course (Admin only) AdminCoursesApi | apiAdminCoursesIdRegisterPost | POST /api/admin/courses/{id}/register | Register user to course (Admin only) AdminCoursesApi | apiAdminCoursesPost | POST /api/admin/courses | Create a new course (Admin only) AdminPostApi | apiAdminPostsIdDelete | DELETE /api/admin/posts/{id} | Delete post (Admin only) AdminPostApi | apiAdminPostsPost | POST /api/admin/posts | Create a new post or announcement (Admin only) AdminTeacherApi | apiAdminTeachersGet | GET /api/admin/teachers | Get all teachers with filtering and pagination (Admin only) AdminTeacherApi | apiAdminTeachersIdDelete | DELETE /api/admin/teachers/{id} | Delete teacher (Admin only) AdminTeacherApi | apiAdminTeachersIdGet | GET /api/admin/teachers/{id} | Get specific teacher by ID (Admin only) AdminTeacherApi | apiAdminTeachersIdPasswordPut | PUT /api/admin/teachers/{id}/password | Change teacher password with admin verification (Admin only) AdminTeacherApi | apiAdminTeachersIdPut | PUT /api/admin/teachers/{id} | Update teacher information (Admin only) AdminTeacherApi | apiAdminTeachersPost | POST /api/admin/teachers | Create a new teacher account (Admin only) AdminUserApi | apiAdminUsersGet | GET /api/admin/users | Get all users with filtering and pagination (Admin only) AdminUserApi | apiAdminUsersIdDelete | DELETE /api/admin/users/{id} | Delete user (Admin only) AdminUserApi | apiAdminUsersIdGet | GET /api/admin/users/{id} | Get specific user by ID (Admin only) AdminUserApi | apiAdminUsersIdPasswordPut | PUT /api/admin/users/{id}/password | Change user password with admin verification (Admin only) AdminUserApi | apiAdminUsersIdPut | PUT /api/admin/users/{id} | Update user information (Admin only) AdminUserApi | apiAdminUsersIdStatusPatch | PATCH /api/admin/users/{id}/status | Update user active status (Admin only) AdminUserApi | apiAdminUsersPost | POST /api/admin/users | Create a new user account (Admin only) AuthenticationApi | apiAuthAdminLoginPost | POST /api/auth/admin/login | Admin or Teacher login AuthenticationApi | apiAuthLoginPost | POST /api/auth/login | User login for all roles AuthenticationApi | apiAuthMeGet | GET /api/auth/me | Get current authenticated user profile PostsApi | apiPostsFeaturedGet | GET /api/posts/featured | Get the featured post for homepage (public access) PostsApi | apiPostsGet | GET /api/posts | Get all posts with pagination and filtering (public access) PostsApi | apiPostsIdGet | GET /api/posts/{id} | Get single post by ID with view tracking (public access) TeachersApi | apiTeachersChangePasswordPost | POST /api/teachers/change-password | Change teacher password (requires old password verification) TeachersApi | apiTeachersCoursesGet | GET /api/teachers/courses | Get teacher's courses with detailed information TeachersApi | apiTeachersCoursesIdLecturesPost | POST /api/teachers/courses/{id}/lectures | Add lecture to course (Admin or Teacher) TeachersApi | apiTeachersDashboardGet | GET /api/teachers/dashboard | Get teacher dashboard with statistics and recent activity TeachersApi | apiTeachersIdCoursesGet | GET /api/teachers/{id}/courses | Get specific teacher's courses (Admin or Teacher) TeachersApi | apiTeachersProfileGet | GET /api/teachers/profile | Get teacher profile with courses and statistics UsersApi | apiUsersChangePasswordPost | POST /api/users/change-password | Change user password (requires old password) UsersApi | apiUsersCoursesGet | GET /api/users/courses | Get user's registered courses UsersApi | apiUsersCoursesIdGet | GET /api/users/courses/{id} | Get course details with lectures (only if user is registered) UsersApi | apiUsersMeGet | GET /api/users/me | Get user profile and registered courses

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)