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 🙏

© 2025 – Pkg Stats / Ryan Hefner

lust.js

v0.2.3

Published

https://net-lust.com/ API nodejs

Readme

Lust.js (Bêta)

Un client javascript pour le site https://net-lust.com/

npm i lust.js

Nodejs

const Lust = require('lust.js');

var app = new Lust("[email protected]","xxxxxxxxx")

app.login()

// [...]

Browser version / etc :

PATH : lust.js/browser.min.js

CDN : https://unpkg.com/lust.js@latest/browser.min.js

<script src="https://unpkg.com/lust.js@latest/browser.min.js"></script>
<script>
    var Lust = require("Lust")
    var app = new Lust("[email protected]","xxx")
    app.login().then(()=>{
    app.getProfil("andronedev").then(profil=>console.log(profil.username + " a " + profil.followersCount + " abonnés"))
    })
</script>

docs

Table of Contents

Lust

Meta

  • author: Nicolas (AndroneDev) - 2021

login

Connexion au compte Lust

Parameters

  • email string Le mail du compte
  • password string Le mot de passe du compte

Examples

var app = new Lust("[email protected]","xxx")
app.login().then(()=>{
 app.getHome().then(posts=>console.log(posts.postsFollow))
})

Returns promise

getProfil

Permet de récupérer les informations d'un profil (pas besoin d'être connecté)

Parameters

  • username string (optional, default "nom d'utilisateur si connecté")

Examples

app.getProfil("andronedev").then(console.log)
// return :
  {
    username: 'andronedev',
    imgProfil: 'https://net-lust.com/assets/users/profils/1115514632.gif',
    followersCount: '1',
    memberSince: '20 Feb 2021',
    posts: [
      {
        id: '341',
        username: 'andronedev',
        profilLink: 'https://net-lust.com/profil?pseudo=andronedev',
        date: 'il y a 11 jours',
        message: 'Salut',
        img: null
      },
     [...]
    ]
  }

Returns Promise<ProfilType>

getHome

Permet de récupérer des informations à partir de la page home.

Examples

app.getHome().then(posts=>console.log(posts))
// return :
 {
   postsFollow: [
     {
       id: '444',
       username: 'Zartov',
       profilLink: 'https://net-lust.com/profil?pseudo=Zartov',
       date: 'il y a 4 jours',
       message: 'pas mal #FlightSimulator 😅',
       img: 'https://i.imgur.com/tMT4Blv.jpg'
     },
    [...]
 {

onMessage

Permet de faire une action quand un nouveau message est reçu

Parameters

  • callback

Examples

app.onMessage(msg => {
console.log("Nouveau message :\n", msg.username, " : ", msg.message)
})

Returns this

addPost

Permet d'Ajouter un post

Parameters

Examples

app.addPost("salut à tous", "https://i.imgur.com/zabyPE5.jpg").then((p) => {
console.log("id du poste : ", p.id);
})

Returns Promise<{id: string, url: string}>

addComment

Permet d'Ajouter un commentaire

Parameters

Examples

app.addComment("Commentaire")

Returns Promise<{void}>

getComments

Permet de récupérer les commentaires d'un post

Parameters

Examples

app.getComments("444").then(console.log)
// return :
[
 {
   username: 'andronedev',
   profilLink: 'https://net-lust.com/profil?pseudo=Zartov',
   date: 'il y a 21 jours',
   message: 'Salut !'
 },
[...]
]

Returns Promise<CommentsType>

search

Permet de récupérer le resultat d'une recherche

Parameters

  • query string champ de recherche

Examples

app.search("zar").then(console.log)
// return :
  [
    { type: 'hashtag', hashtag: '#ZartovElypse' },
    {
      type: 'account',
      username: 'Zartov',
      profilLink: 'profil?pseudo=Zartov',
      imgProfil: 'assets/users/profils/1115514560.jpg'
    },
   [...]
  ]

Returns Promise<searchType>