melanie / Bluesky and Mastodon to JSON Feed
0 вподобань
0 форк(-ів)
3 файл(-ів)
Остання активність
From the blog post I Made a Mastodon and Bluesky Client
Usage
Bluesky
Install dependencies
npm i --save @atproto/api
melanie / Pixelfed Export Downloader to Markdown
0 вподобань
0 форк(-ів)
2 файл(-ів)
Остання активність
Takes the outbox.json Pixelfed export data and downloads the files and creates markdown files. Great for use with something like 11ty or Astro.
1 | import { stringify } from "yaml"; |
2 | import fs from "node:fs"; |
3 | import https from "node:https"; |
4 | import sanitize from "sanitize-html"; |
5 | |
6 | function omit(obj, props) { |
7 | obj = { ...obj }; |
8 | props.forEach((prop) => delete obj[prop]); |
9 | return obj; |
10 | } |
melanie / tapestry-attachment-extraction.js
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
1 | /* |
2 | Attachment Extracting |
3 | for Iconfactory's Tapestry plugins |
4 | |
5 | Grabs urls from a string, like `content_html` in a JSON Feed, and makes them attachments. |
6 | |
7 | Made to be used in your Tapestry plugins like so: |
8 | |
9 | ```js |
10 | const myItem = Item.createWithUriDate(url, date); |
melanie / lastfm-weekly-report.ts
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
1 | const LASTFM_API_KEY = process.env.FEED_LASTFM_API_KEY || ""; |
2 | const LASTFM_USERNAME = process.env.FEED_LASTFM_USERNAME || ""; |
3 | const LASTFM_API = "https://ws.audioscrobbler.com/2.0/"; |
4 | |
5 | function formatItem({ |
6 | artist, |
7 | image, |
8 | name, |
9 | playcount, |
10 | url, |
melanie / last.fm-to-mastodon.js
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
1 | // Variables used by Scriptable. |
2 | // These must be at the very top of the file. Do not edit. |
3 | // icon-color: pink; icon-glyph: headphones-alt; |
4 | // Last.fm to Mastodon |
5 | // by @zicklepop@nyan.lol |
6 | // |
7 | // Set a profile field to your currently playing track |
8 | // |
9 | // Requirements: |
10 | // - API Key from Last.fm: https://www.last.fm/api |
Новіше
Пізніше