All Projects โ†’ ReplAPI-it โ†’ ReplAPI.it-NodeJS

ReplAPI-it / ReplAPI.it-NodeJS

Licence: GPL-3.0 License
[DEPRECIATED] ๐™€๐™ซ๐™š๐™ง๐™ฎ๐™ฉ๐™๐™ž๐™ฃ๐™œ ๐™๐™š๐™ฅ๐™ก๐™ž๐™ฉ, ๐™–๐™ก๐™ก ๐™–๐™ฉ ๐™ฎ๐™ค๐™ช๐™ง ๐™™๐™ž๐™จ๐™ฅ๐™ค๐™จ๐™–๐™ก. This is the single most extensive Replit package, allowing you to access various parts of the site with just a few classes and methods. Maintained by @RayhanADev.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ReplAPI.it-NodeJS

node-github-publish
Publishes a file to a repository through the GitHub Contents API
Stars: โœญ 20 (-37.5%)
Mutual labels:  api-wrapper, node-js
repl-talk-api
Allows you to do various things with the slightly unofficial Repl.it Repl Talk API
Stars: โœญ 13 (-59.37%)
Mutual labels:  replit, repl-talk
advlib
Open source, protocol-agnostic library for decoding ambient wireless packets. We believe in an open Internet of Things.
Stars: โœญ 90 (+181.25%)
Mutual labels:  node-js
cookiecutter-pypackage
A cookiecutter template for Python package with heavy use of Github actions
Stars: โœญ 19 (-40.62%)
Mutual labels:  package
TODO-List-Tech-Module
TODO List (in C#, Java, JS and PHP) - Exam Preparation for the Tech Module @ SoftUni (August 2017)
Stars: โœญ 13 (-59.37%)
Mutual labels:  node-js
react-native-value-picker
Cross-Platform iOS(ish) style picker for react native.
Stars: โœญ 18 (-43.75%)
Mutual labels:  package
version-check
An action that allows you to check whether your npm package version has been updated
Stars: โœญ 65 (+103.13%)
Mutual labels:  package
ex united
Easily spawn Elixir nodes (supervising, Mix configured, easy asserted / refuted) within ExUnit tests
Stars: โœญ 40 (+25%)
Mutual labels:  package
digitalocean
A prototype API for Digital Ocean.
Stars: โœญ 35 (+9.38%)
Mutual labels:  api-wrapper
badgecreatr
Quickly place relevant badges at the top of your readme, stop copy pasting, start on your project
Stars: โœญ 61 (+90.63%)
Mutual labels:  package
LiteOTP
Multi OTP Spam Amp/Paralell threads
Stars: โœญ 50 (+56.25%)
Mutual labels:  package
channelHelper
ๅŸบไบŽwalleๅทฅๅ…ท็š„ๅคšๆธ ้“ๆ‰“ๅŒ…่„šๆœฌ
Stars: โœญ 35 (+9.38%)
Mutual labels:  package
multi-cursor
๐ŸŽ‰
Stars: โœญ 44 (+37.5%)
Mutual labels:  package
ramapi
Python implementation for the Rick and Morty API
Stars: โœญ 17 (-46.87%)
Mutual labels:  api-wrapper
postgres-range
Laravel package for PostgreSQL range types support
Stars: โœญ 27 (-15.62%)
Mutual labels:  package
normalize-pkg
Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.
Stars: โœญ 18 (-43.75%)
Mutual labels:  package
Registration-and-Login-Form-in-Nodejs-and-MongoDB
This Project is Live on: ๐ŸŒ
Stars: โœญ 40 (+25%)
Mutual labels:  node-js
golib
Golang packages used in frp and fft.
Stars: โœญ 43 (+34.38%)
Mutual labels:  package
angular-package-builder
[DEPRECATED] Packages your Angular 4+ library based on the Angular Package Format.
Stars: โœญ 25 (-21.87%)
Mutual labels:  package
esiJS
A simple Node module for EVE Onlines' ESI.
Stars: โœญ 17 (-46.87%)
Mutual labels:  node-js

โš ๏ธ IMPORTANT: This project has been depreciated. Read more here โš ๏ธ

Contributors Forks Stargazers Issues MIT License Downloads


Logo

ReplAPI.it

A Simple and Complete Replit API Package
Explore the docs ยป

View Package on NPM ยท Report Bug ยท Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

Code Screenshot

The Replit GraphQL API is an extraordinary way to make projects unique and special, yet with the numerous packages available few such projects have been made. Why would that be? Most likely due to how complicated writing code can get and the limitations of their queries. My package, ReplAPI.it, changes that with a simple to use structure and many queries, some of which are:

  • Queries for Data on Users (such as Profile, Posts, Comments)
  • Queries for Data on Posts (such as Upvoters, Content)
  • Queries for Data on Repls (such as Files, Comments)
  • Mutations for Commenting, Reporting, and Posting
  • Queries for Data on Leaderboard (with filters such as cycles since)
  • and lots more!

My package is also simple to use with it's class-based structure. Simply create a new class for your User, Post, or whatever your heart desires and use built in functions with options to query data your way.

Built With

Getting Started

I suggest requiring the ReplAPI.it module until ES imports in NodeJS are stabilized.

Prerequisites

If you have not already download npm:

  • npm
    npm install npm@latest -g

Installation

  1. Install the latest version of the package
    $ npm install replapi-it
  2. Require the package in your code
    import ReplAPI from 'replapi-it';
  3. Initilize the package
    const replapi = ReplAPI({
       username: 'your-username-here'
    });

Usage

Using ReplAPI.it is very simple! Let's create a simple user and ask for their cycles:

import ReplAPI from 'replapi-it';
const replapi = ReplAPI({
  username: 'your-username-here'
});

const myUser = new replapi.User("RayhanADev");

async function getCycles() {
  let info = await myUser.userGraphQLDataFull();
  let cycles = info.karma; // Yep, it's karma!
  console.log(`User Cycles: ${cycles}`)
}

getCycles()

Output:

User Cycles: 1008

That was fun! Now how about getting a specific post? Let's create a simple post and ask for it's title:

import ReplAPI from 'replapi-it';
const replapi = ReplAPI({
  username: 'your-username-here'
});

const myPost = new replapi.Post(78043);

async function getTitle() {
  let info = await myPost.postDataFull();
  let title = info.title;
  console.log(`Post Title: ${title}`)
}

getTitle()

Output:

Post Title: Presenting... ๐Ÿค” RayhanADev ๐Ÿค”? (GraphQL Success!)

For more examples, please refer to the Documentation

Roadmap

See the open issues for a list of proposed features (and known issues).

I'm considering adding in support for Crosis communications after they distribute developer keys again. Right now I'm experimenting with WSS and eval.repl.it for code execution!

Contributing

Contributions are much appreciated, and if you have a cool idea that feels right in this package then you should check out our contributing page.

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

Contact

RayhanADev - @RayhanADev - [email protected]

Project Link: https://github.com/ReplAPI-it/ReplAPI.it-NodeJS

Acknowledgements

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].