r/Scriptable • • Jul 29 '24

Widget Sharing George-Costanza.io

Post image
14 Upvotes

Just wrapped up the development of our new Random George Costanza widget.

Wanted to keep the team updated, but we will circle back in the next quarterly meeting.

Code Need google cloud api and search engine key.


r/Scriptable • • Mar 25 '24

News 13,000 Members

14 Upvotes

We finally hit 13,000 members of r/scriptable

Thanks for being a great community!


r/Scriptable • • Nov 14 '23

Widget Sharing Clash Royale Widget

14 Upvotes

Track your Clash Royale profile (clan, deck, trophies, upcoming chests, and more) with a simple widget.

You can find the code in the GitHub repository with also the guide to configuring it


r/Scriptable • • Jun 06 '23

News Reddit API Changes Protest Poll

14 Upvotes

Hi All, I know we aren't the largest sub, nor are we super active here, but I'm curious if you guys are interested in participating in the protest. I'm all for it!

More info can be seen about it in this post

Should r/Scriptable participate in the protest?

76 votes, Jun 08 '23
74 Yes
2 No

r/Scriptable • • Apr 29 '23

Widget Sharing Mastodon Latest Widget

Thumbnail
gallery
14 Upvotes

This widget displays the latest post from a specified user. To specify the user you want to display, simply add the URL to their profile into the Widget Parameter and let the code do its thing.

If the latest post of a user is less than 150 characters, it will show the latest two posts if it is a Medium widget (shown in the double example)

By default it doesn't show Boosts/Reblogs

You can find the widget script on my GitHub page


r/Scriptable • • Nov 02 '22

Help Newbie question about the cancel button in alarms

Post image
14 Upvotes

Hey all! I want to master Scriptable to a decent level. I’ve written a piece of code and depending on the option I choose in the alarm, the console will either log the input i insert or “optionZero(firstOne)” or “thirdOptionCANCEL”. For some reason in doesn’t log anything if i choose the cancel action. Others work as expected. Does the function addCancelAction stop running the script? And if i dont want it to stop, i can just addAction(“Cancel”) and make the text bold, right?

Now that I’m here, i have another question. Can i master Scriptable not knowing JavaScript? I did understand how to write the code I’ve written, i did understand why i wrote this or that and i believe i can replicate it from scratch. Can i learn Scriptable’s JavaScript ES6 (or whatever it’s called) overtime?

Thanks in advance!


r/Scriptable • • Sep 15 '22

Request Free Steam games widget

14 Upvotes

Hello, is it possible for someone to make a widget that will display free steam games from Steam DB? Ideally it would show a few games that the website currently shows, it would tell when the sale ends, and it would tell whether or not if the game is free to keep or just for the weekend, it would also take you to the steam page of that game if you clicked on it in the widget, if you clicked on a part that was not a game it would just take you to the game, this is a site I find myself checking daily and I would love to be able to see if it has anything interesting just by looking at my homescreen, the small widget could display 1 or 2, the medium could display 4, and the large could maybe display 6 or 8


r/Scriptable • • Jun 07 '22

Script Sharing Easy RSS Feed Parser (XML)

14 Upvotes

How To Use

You can find the code for the simple parser here, https://gist.github.com/Normal-Tangerine8609/d9532d78c9a3afa31899b00e21feb45d.

Here is a simple snippet of how to use it:

let request = new Request("https://routinehub.co/shortcuts/latest/feed/")
const xml = await request.loadString()
const json = parseXML(xml)
console.log(JSON.stringify(json, null, 2))

Why

I created this because many popular websites use RSS feeds. They are basically a free api if you can correctly parse them. Here is a list of some more popular RSS feeds: https://github.com/plenaryapp/awesome-rss-feeds.

I feel as though many people can use this to create simple widgets that display articles or whatever the feed focuses on.

Example

Input:

<root>
  <node>
    <text>text node</text>
    <details>text node</details>
    <key>value</key>
  </node>
  <list>
    <item>text node</item>
    <item>text node</item>
    <item><tag>text node</tag></item>
    <key>value</key>
  </list>
</root>

Output:

{
  "root": {
    "node": {
      "text": "text node",
      "details": "text node",
      "key": "value"
    },
    "list": {
      "item": [
        "text node",
        "text node",
        {
          "tag": "text node"
        }
      ],
      "key": "value"
    }
  }
}

Warnings

This parser does not handle attributes or both text and element nodes in the same element. This will mostly not be an issue for collecting the data.

Tips

The parsed XML will probably have some HTML tags and entities in its data. .replace(/<[^>]*>/g, ' ') should replace most HTML Tags. The following function will replace popular HTML entities (you can replace more HTML entities by chaining more replaces to the end):

function parseHtmlEntities(str) {
    return str.replace(/&#([0-9]{1,4});/g, function(match, numStr) {
        var num = parseInt(numStr, 10);
        return String.fromCharCode(num);
    }).replace(/&nbsp;/, " ").replace(/&amp;/, "&").replace(/&apos;/, "'")
}

r/Scriptable • • Oct 11 '21

Widget Quickly see how much money you can safely spend this month

14 Upvotes

Hi everyone,

I recently built a widget that's been super helpful to me in making sure I don't spend too much money throughout the month. My widget uses OmniMoney (free!) to fetch all of my transactions and my budget for the month, but with some tweaking, you can get this widget to work for whatever budgeting tool you use. The widget also features cacheing so that the api isn't polled too frequently. (I found the code for the cacheing feature within the Scriptable community a long time ago. Once I figure out who originally posted it, I'll give them credit here.)

Here's the link to view the code.


r/Scriptable • • Jun 19 '21

Widget Iliad data usage widget

14 Upvotes

Hi, I create a widget showing the data usage of your Iliad plan, an Italian data plan mobile phone provider with a web scraping. Tell me what do you think 😉 I’m open to new suggestions and improvements :)

You can download it here: https://filippo.im/snippets/iliad-data-usage-widget

Read the instruction to setting up the widget properly.

Update v1.1 (2022.07.16): changed the DOM selector to match the new website.
Update v1.0 (2021.06.19): initial release.


r/Scriptable • • May 18 '21

Script Hello, I would like to transfer the script from the „main stack for value and area name“, where the color changes depending on the incidence, to the chart below, so that it also changes the color with the incidence value. how do i modify the script to make it fit?

Thumbnail
gallery
14 Upvotes

r/Scriptable • • Apr 21 '21

Solved DatePicker in calendar view

Thumbnail
gallery
14 Upvotes

r/Scriptable • • Mar 05 '21

Discussion Widget/Script Showcase! Describe some of the experimental, unusual, or useful things you've made using Scriptable

14 Upvotes

Based on an idea of r/workflow & r/shortcuts

Feel free to share or describe your widgets or scripts - no matter if it's a modification, some experimental stuff or a finished widget/script.

Or just get some inspiration for your own work.


r/Scriptable • • Feb 19 '21

Solved How to underline text in java script widget? (Currently I use minus’s for an underline but since it doesn’t look very pretty, I wonder if there is a way to underline text..? If that does not work: Do you know how to use *new Path.addLine(new Point(x, y))* for drawing a real line???) Please help! 🙏

Post image
14 Upvotes

r/Scriptable • • Nov 28 '20

Solved Widget with two columns

Post image
14 Upvotes

r/Scriptable • • Oct 19 '20

Script Automated custom battery percentage alert (like the low battery ones)

14 Upvotes

Custom alert with lpm automation script

End result example

Many thanks to the original maker of this script and to u/FifiTheBulldog for helping me finding how to solve a mistake that I didn’t know how to correct.

Add this script to scriptable, make a simple siri shortcut which only triggers the low power mode and edit the strings in scriptable.

After editing it, add this script (copy-paste) as an inline script in shortcuts automation for battery percentage and toggle run in app since shortcuts can’t display an alert other than with a notification.

(If you want the lpm option to be displayed in red font, you can replace the line by addDestructiveAction("yourtext") instead)

I don’t know how to code but the idea was simple to made and the code seems cleaned to me. (Also for what it does, I don’t think that it needs to be optimized)

(I’ll probably try to learn how to code in javascript, I’ve seen only widgets and specific scripts but nothing like the custom lpm alert, I wonder how far you can go with this on iOS)


r/Scriptable • • Oct 13 '20

Script Tesla Widget using TeslaFi API

Thumbnail
github.com
14 Upvotes

r/Scriptable • • 28d ago

Widget Sharing Enphase solar widget with mini-graphs, Lock Screen tile, and rate budgeting

Post image
13 Upvotes

Quick disclaimer: I am not a software engineer or a scripter, and I don't write JS. I just spent a lot of time directing an AI on exactly what I wanted until it nailed the execution. The end result came out way better than I expected, and there are a few clever pieces in here that other widget builders might find useful to steal for their own projects.

The setup:

  • Medium and Small Home Screen widgets plus a dense Lock Screen widget.

  • It runs as two scripts: an embedded setup script that opens a local web form to connect to the Enphase developer portal, and the main widget script.

Cool pieces worth lifting:

  1. Native Mini-Graphs (no webview chart libraries): It draws three distinct mini-graphs directly on a Scriptable DrawContext canvas with borders, reference lines, and tick marks:

  • A 30-day production vs. usage chart that splits colors across a horizontal average line (green above use, orange below).

  • A 24-hour power curve with an upper ceiling, Catmull-Rom smoothing, a midnight tick, and shading over yesterday's part of the curve so today stands out.

  • A 12-month net bank trend that tracks seasonal utility credit carryover with quarter markers. (The drawing functions just take raw arrays of numbers, so they can be adapted for crypto, steps, server pings, etc.)

  1. API Call Budgeting and Rate Limiting: Enphase's free API tier is capped at 1,000 calls a month. The script calculates daily daylight hours based on location and time of year, figures out how many calls are mandatory for the rest of the month, and dynamically budgets extra daytime refreshes. It also separates manual app opens from automated background runs so checking the widget inside Scriptable never burns through the background quota.

  2. Lock Screen Proportional Font Auto-Sizing: Rectangular lock screen widgets are tiny (about 143pt wide). iOS kept truncating numbers into "+...". The AI wrote a kerning and width calculator that checks all lines together and steps the font size down across every line at once so they stay identical and never clip.

  3. WebView Setup Instead of Chained Alert Boxes: Instead of tapping through ten native iOS alert popups, the setup script opens an HTML page right inside Scriptable, catches the OAuth redirect, and grabs the keys and tokens directly.

Code is open source on GitHub if anyone wants to grab bits and pieces or check it out:

https://github.com/OverEngineered-Tech/OverEngineered-Solar

Or here if you want the HTML access for simple copying (was helpful for allowing non-Git people to copy)

iPhone Solar Widget for Enphase | OverEngineered-Tech


r/Scriptable • • Aug 30 '26

Script Sharing Weekly number widget + year progress

13 Upvotes

After spending some time in Sweden i’m surprised that people operate week numbers. Not dates but week numbers.

- We are going to meet week 33.
- School is closed on week 67.

and etc.

Anyway I made a widget (with AI) that shows week number and some extra info. Convenient.

Link


r/Scriptable • • Jul 16 '26

Widget Sharing Mint Mobile Data Widget

Post image
13 Upvotes

Mint Mobile Widget for iPhone. Vibe coded it because [Mint never shipped it](https://www.reddit.com/r/mintmobile/comments/ivbg6o/comment/g5q7ia5/).

https://github.com/Dr-Sauce/MintCho


r/Scriptable • • Jul 15 '26

Tip/Guide I was surprised that @scriptableapp doesn't have a visual widget builder, so I asked Sol High to build me one.

Thumbnail widgetr.vercel.app
13 Upvotes

r/Scriptable • • Oct 26 '25

Script Sharing SkyDodger - Scriptable Game

13 Upvotes

🚀 Sky Dodger – Now with Secure Keychain Saving & Smarter Widgets

Hey everyone 👋

Just released a new version of Sky Dodger, my tiny arcade-style iOS game built in Scriptable!

You steer a spaceship and dodge falling asteroids as long as you can.

✨ What’s New

  • 🔐 Secure high scores — saved in the iOS Keychain, no longer editable in iCloud.

  • 📱 Improved widget — reads scores directly from Keychain and refreshes faster with new starfields.

  • 🧪 New test script — TestKeychain.js lets you quickly check that Keychain saving works.

🕹️ Features

  • Touch controls and smooth motion

  • Dynamic starfield background

  • 3-hit life system and best-score tracking

  • Widget with your all-time best

Grab it here 👉 GitHub – SkyDodger Scriptable

Try it out, show your score, and let me know what you think! 🚀💫


r/Scriptable • • Aug 02 '25

Script Sharing Introducing Scraps: Load Any JavaScript Dependency in Scriptable *, Instantly

13 Upvotes

Hey r/Scriptable! I’ve been working on a tool called Scraps that lets you import almost JavaScript or Node-style dependency into Scriptable with zero config. Today I want to show you how you can use it to compile and run TypeScript right inside Scriptable.

Here’s the code:

// Scraps header - DO NOT MODIFY
const $ = await new Request("https://scraps.labz.online").loadString().then(eval);

const { require } = await $({
  dependencies: {
    "typescript": "latest"
  }
});

const ts = require("typescript");

// Example TypeScript source as a string
const tsCode = `
function greet(name: string): string {
  return \`Hello, \${name}!\`;
}
console.log(greet("Scriptable"));
`;

// Compile TypeScript → JavaScript
const jsCode = ts.transpileModule(tsCode, {
  compilerOptions: {
    target: ts.ScriptTarget.ES2020,
    module: ts.ModuleKind.CommonJS
  }
}).outputText;

// Run the compiled code
eval(jsCode);

What this does:

•	Loads TypeScript’s official compiler via CDN using Scraps

•	Compiles TypeScript source in-memory to JS

•	Runs the JS directly via eval

•	No bundlers, no extra steps — just Scriptable + Scraps

You can also:

•	Load .ts files from a URL

•	Use JSX, ESNext, or any other tsconfig option

•	Bundle this with other NPM modules via dependencies

Try Scraps here: https://scraps.labz.online Let me know if you want examples for React, or in-browser modules!


r/Scriptable • • Sep 25 '24

Widget Sharing Introducing Snarky Weather v1.0

13 Upvotes

Ok yall. Back when I had an android I had a widget that would give me current weather conditions in a rude/snarky/explicit way and I loved it. Moved to ios and kinda forgot about it and after looking around I wasn't able to find something that fit what I wanted without having to pay monthly. I decided to make it myself. Now this is very barebones and my first attempt at making a scriptable widget. Here is the link to the github:

https://github.com/TheDevilsDoctor/Snarky-Weather

Enjoy and let me know what yall think!