https://echo.hoppscotch.io
Description: Echo server is an application that allows a client and a server to connect so a client can send a message to the server and the server can receive the message and send, or echo, it back to the client.
[ | |
{ | |
"name": "Sample Hoppscotch Environment - 1", | |
"variables": [ | |
{ | |
"value": "https://echo.hoppscotch.io", | |
"key": "baseURL" | |
}, | |
{ | |
"value": "var1", |
To use this script, simply replace the USERNAME
, REPOSITORY
, GITHUB_STARS_REPO
and GITHUB_DOWNLOADS_REPO
placeholders with the appropriate values for the GitHub repository you want to fetch the star and release download count for. Then, copy the complete script into a new Scriptable App script and run it. The star and release download count for the specified repository will be displayed in a Scriptable widget.
// Constants for widget configuration
const WIDGET_TITLE = "GitHub";
const USERNAME = "hoppscotch"
const REPOSITORY = "hoppscotch"
const GITHUB_STARS_REPO = "hoppscotch/hoppscotch";
const GITHUB_DOWNLOADS_REPO = "hoppscotch/releases";
const CACHED_DATA_HOURS = 0.5;
import fetch from "node-fetch"; | |
const USERNAME = "hoppscotch"; | |
const REPOSITORY = "hoppscotch"; | |
exports.handler = async (event) => { | |
switch (event.httpMethod) { | |
case "GET": | |
try { | |
const commit_activity_response = await fetch( |
<template> | |
<div ref="globe"></div> | |
</template> | |
<script> | |
import ThreeGlobe from "three-globe" | |
import * as THREE from "three" | |
import TrackballControls from "three-trackballcontrols" | |
import geojson from "~/assets/geojson/ne_110m_admin_0_countries.geojson" | |
import texture from "~/assets/images/texture.png" |
Full name:
E-mail:
GitHub username:
Prior experience: