Coder Social home page Coder Social logo

jackedup21 / namemc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshmerlino/namemc

0.0 0.0 0.0 3.77 MB

The unofficial Node JS API for looking up Minecraft users on Name MC

Home Page: https://www.npmjs.com/package/namemc

License: MIT License

TypeScript 82.38% JavaScript 17.62%

namemc's Introduction

namemc

Node.js CI njsscan sarif

The unofficial Node JS package for looking up Minecraft users on Name MC.

โ„น Name MC has updated their HTML structure. All versions below v1.6.5 are now broken

โš  This package is not affiliated with Name MC or Minecraft in any way


Documentation:

Caveats

  1. This package is powered by Web Scraping, meaning that if Name MC were to suddenly change the HTML layout on their page it would cause the package to break until I were update it.
  2. Name MC will rate-limit you after a certian amount of requests. In my opinion, they're very generous about this, after spamming an obscene amount of requests, the most I got limited for was 5 seconds. The package will reject the promise if you are being rate limited.
  3. On top of point #2, this package does not cache the response from Name MC. If you are getting rate limited over and over, you might want to implement some cache system that prevents the same name from being resolved more than once per hour and using a cached result.

API

If you need to use this in a browser and arent using a bundler, you can send API requests to my server to resolve names. Endpoints and their info can be found on the wiki.

namemc's People

Contributors

dependabot[bot] avatar joshmerlino avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.