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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@pikachub2005/replit-login

v0.0.1

Published

A simple replacement for rayhanadev's replit-login

Downloads

3

Readme

Replit Login

An unofficial way to authenticate your Replit users

Authenticate Replit users in your projects without ReplAuth. This uses the actual Replit Login API to authenticate connect.sid tokens and return whether a user would login.

Install

$ npm install replit-login
$ yarn add replit-login

Usage

import { login, logout, test } from 'replit-login';

const { username, password, captcha } = process.env;

const { token, message } = await login(username, password, captcha);

console.log('Login:', token ? token : message);
console.log('Test:', await test(token));
console.log('Logout:', await logout(token));

Note: You will need some frontend component that allows you to use the hCaptcha widget to get hCaptcha tokens. If you are just testing then you can use this website. The tokens expire in 2 minutes.

Personal Note

In the spirit of open source software I made this codebase public since it only abstracts API's that already exist without circumventing a captcha. Use it as a tool and abide by the Replit Terms of Service (see below). Improper use of the package can result in bans on Replit and possibly legal action.

Legal

From https://replit.com/site/terms as pertains to the use of this package. This is not the entire ToS, simply snippets that reference important parts that I thought was relevant.

Section 5 (Prohibited Actions), Item 10

Interfere with or disrupt the Services or create an undue burden on Replit's Service or the networks or services connected to Replit's Service;

Section 5 (Prohibited Actions), Item 11

Use the Service to attack or tamper with other websites, services, and individuals;

Section 5 (Prohibited Actions), Item 13

Launch any automated system, including without limitation, “robots”, “spiders”, or “offline readers” that access the Service in a manner that sends more request messages to the Replit servers in a given period of time than a human can reasonably produce in the same period by using a conventional online web browser.

...

You agree not to collect or harvest any personally identifiable information, including account names, from the Service, nor to use the communication systems provided by the Services for any commercial solicitation purposes. You agree not to solicit, for commercial purposes, any users of the Service with respect to their content.

Section 5 (Prohibited Actions), Item 22

Repeatedly fork or clone projects to run or host the same code creating undue load on the Service.