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

@everlutionsk/ajaxcom

v3.3.0

Published

Ajaxcom JS library

Readme

About Ajaxcom

Ajaxcom is JavaScript library which can be used for DOM manipulation called via Ajax from any backend you want. If you are using PHP you can easily use it with Ajaxcom PHP Library. If you use Symfony framework, you can start using Ajaxcom Symfony bundle.

Ajaxcom uses fetch and Promise functions. When you have problems with older browsers, please use fetch and Promise polyfills.

Usage

ajaxcom library will handle all links except links containing data-ignore-ajaxcom and links which contains target="_blank" by default. It automatically handles also all form submissions except forms containing data-ignore-ajaxcom. When server error occurs the generic message is shown via JavaScript alert.

You can override all of the default options when initializing ajaxcom library and you can setup few callbacks as well.

Options

You can specify following options when initializing the library - you will pass an object as only argument to ajaxcom() function:

  • beforeSend (function which returns promise) - this function will be called before each Ajax request
  • success - (function which returns promise) - this function will be called after the request from backend has been successful
  • error - (simple function) - this function will be called when error occurs on server eg. when server returns non 200 OK response
  • complete - (simple function) - this function is called after ajaxcom handles the request eg. after all DOM manipulations
  • linksSelector - (string CSS selector) - you can specify which links should be handled via ajaxcom
  • formsSelector - (string CSS selector) - you can specify which forms should be handled via ajaxcom

Example:

// initialization
const ajaxcom = require('@everlutionsk/ajaxcom');
ajaxcom.initialize({
  complete: function () {
    console.log('Yet another page rendered via ajaxcom');
  },
  error: function (e) {
    console.error(e);
  }
});

// usage of Ajaxcom request
ajaxcom.fetch({
  url: 'https://some.url',
  method: 'POST', // defaults to 'GET'
  body: JSON.stringify({ data: 'you', want: 'to', pass: 'to backend' }) // optional
  // optionally you can provide callbacks such as beforeSend, success, error and complete
});

Development

Install the latest yarn.

Install all dependencies via yarn:

yarn install

Compilation

yarn build
yarn watch

Linting

yarn checkup

Publish

npm login
npm version patch|minor|major
npm publish . --access public