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

learningml

v1.0.3

Published

A machine learning library for education purposes only.

Readme

LearningML

Learningml is an open-source machine learning library for training models, currently only supports ANNs.

Works in the browser or in node extremely flexible, with a focus on having minimal dependencies. Easy to work with made from the ground up in javascript, manipulate objects in an intuative way. Constantly expanding Plans to add gpu acceleration, alternative neural network architectures, and more!

Examples

all examples can be viewed in the examples folder.

npm i learningml

to install the package.

const lml = require('learningml');

to use in your project

you want your inputs to be flattened so you can put it into vector form.

const input = lml.Vector.vector(x1, x2, x3, ..., xn)

this is how you can create a valide vector with the x's being the values that make up an input value.

const output = input.apply(x => x/2)

this will make a new vector with values half that of the input

const prenetwork = lml.Network.network(n,n,
	[
		lml.Layer.layer(lml.Layer.simple(n), lml.Layer.relu),
		lml.Layer.layer(lml.Layer.simple(n), lml.Layer.relu),
		lml.Layer.layer(lml.Layer.simple(n), lml.Layer.relu),
	]
);

next we need to define our network which takes in an input size, an output size, and a array of layers. a simple layer is simply a fully connected layer, and relu is the relu activation function.

let network = lml.Network.generate(prenetwork)

we generate the network to finalize it(reccomended to use let instead of const here).

const result = lml.F.feedforward(input, network)

to use the network with a given input.

network = lml.Trainer.train(
	inputs,
	outputs,
	network,
	epochs,
	lml.Cost.leastsquares,
	lml.Optimizer.linear(.07)
)

you train the network by giving it an array of input and output vectors where:

(inputs[i], outputs[i]) //correspond to an input/output pair

once the network successfully trains you can use the model with the feedforward function.

Contribution guide

want to contribute? thank you for your interest. there is no standard contribution workflow so just submit your issues and PR and I will look at them. Thank you!