All Projects → jarvis394 → glitch-api

jarvis394 / glitch-api

Licence: MIT license
Library for using Glitch API ⚙️

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to glitch-api

vcodes
It is a Discord-based, open-source website. Titles it contains; code sharing, server list, Bot list, uptime system.
Stars: ✭ 151 (+843.75%)
Mutual labels:  glitch
bubo-rss
An irrationally minimalist, static RSS feed reader you can instantly deploy on Netlify, Glitch or your own server.
Stars: ✭ 41 (+156.25%)
Mutual labels:  glitch
Botkit
Botkit is an open source developer tool for building chat bots, apps and custom integrations for major messaging platforms.
Stars: ✭ 10,555 (+65868.75%)
Mutual labels:  glitch
BOops
Sound glitch effect sequencer LV2 plugin
Stars: ✭ 60 (+275%)
Mutual labels:  glitch
glitch
!NO MORE MAINTAINED! Reactive API Wrapper for Twitch in Kotlin/JVM
Stars: ✭ 12 (-25%)
Mutual labels:  glitch
github-task-list-completed
GitHub - Task list completed PR check
Stars: ✭ 95 (+493.75%)
Mutual labels:  glitch
uptimer
Uptimer is an open-source project, and a free discord bot that allows you to make your projects online 24/7 just by using a single cmd.
Stars: ✭ 21 (+31.25%)
Mutual labels:  glitch
snail-cli
a CLI for Glitch
Stars: ✭ 20 (+25%)
Mutual labels:  glitch
chattt-backend
🖥 Backend for chattt
Stars: ✭ 17 (+6.25%)
Mutual labels:  glitch
uptime-bot
A Discord uptime bot which keeps repl.it links up forever!!
Stars: ✭ 14 (-12.5%)
Mutual labels:  glitch
glitch-studio
data bending & glitch tools
Stars: ✭ 66 (+312.5%)
Mutual labels:  glitch
micropub-endpoint
Receives requests.
Stars: ✭ 23 (+43.75%)
Mutual labels:  glitch
phywhispererusb
PhyWhisperer-USB: Hardware USB Trigger
Stars: ✭ 56 (+250%)
Mutual labels:  glitch
glitch
An image glitcher in golang
Stars: ✭ 12 (-25%)
Mutual labels:  glitch
hyouka
Um bot open-source com dashboard incluída
Stars: ✭ 12 (-25%)
Mutual labels:  glitch
glitchub
A step by step guide on how to keep a Glitch project in sync with a GitHub repo
Stars: ✭ 31 (+93.75%)
Mutual labels:  glitch
GitHub-Web-IDE
⚡ Open GitHub repositories in online web IDE
Stars: ✭ 242 (+1412.5%)
Mutual labels:  glitch
react-glitch-effect
React Glitch effects
Stars: ✭ 52 (+225%)
Mutual labels:  glitch
jpg-glitch-electron
desktop app for glitching images
Stars: ✭ 24 (+50%)
Mutual labels:  glitch
kalwalt-interactivity-AR
Some various experiments with Ar.js and Three.js
Stars: ✭ 65 (+306.25%)
Mutual labels:  glitch

glitch-api

GitHub package.json dynamic CircleCI npm bundle size

A Node.js module that allows you to easily interact with the Glitch API

📖 Documentation Examples

Features

  • 99% coverage of the known Glitch API
  • Uses TypeScript that provides hints in editor, type checking, etc.
  • Supports WebSocket connection to the Glitch editor
  • Support for authorization
  • Only two dependencies: node-fetch and algoliasearch
  • Class abstraction
  • Works with both API versions
Warning: this module uses unstable API that hasn't been officially released yet. Described only world-open methods from this unofficial site and my researches

Installation

Node.js 8.0.0 or newer is required

NPM
npm i glitch-api -s

Example usage

// Require using ES6 syntax
import { Glitch } from 'glitch-api'

// Or using old fancy style
const { Glitch } = require('glitch-api')

// Init main class
const glitch = new Glitch({ token: 'xxx' })  // Put here your Glitch token or use glitch.setAnonToken()
const { api } = glitch

// Get a user profile
api.users.get({ id: 1 }).then(user => console.log) // → User

Migration from 2.x to 3.x

  • Any search method now follows the same syntax:
    .search(s: string) → Algolia result
    
  • Remixing a project doesn't return joinLink. Now it is a Project instance. Consider getting project data with token via api.projects.get()
  • Token is absolutely required. If you don't have a token, consider using Glitch.setAnonToken(). For more info, see examples/anonymous.js

Q&A

How do I get Glitch token?

Paste the following code to the browser's console on the Glitch editor page:

(JSON.parse(localStorage.getItem('cachedUser'))).persistentToken

Also you can use Glitch.setAnonToken() → Promise<string> method to login as an anonymous user and use its token.


Why *api-method* is not implemented?

Because I'm also human and I might not have seen the recent changes in Glitch's API. Anyway, PRs are open for anyone :)


The *api-method* is not working.

It could be that Glitch devs removed the support for that method. Or it's just a my fault. Open a new issue and describe what's happend.

Contribution

Feel free to open new Pull request or an issue!

Credits

Made by jarvis394 with ♥️

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].