Script Kit Logo
Script Kit
by John Lindquist
Vercel OSS Program

Scripts by third774

Feedbin Unread

third774's avatar
Kevin Kipp
// Name: Feedbin Unread // Author: Kevin Kipp // Email: kevin.kipp@gmail.com // Twitter: https://twitter.com/kevin_kipp // Github: https://github.com/third774 import '@johnlindquist/kit'; const feedbinUsername = await env('FEEDBIN_USERNAME'); const feedbinPassword = await env('FEEDBIN_PASSWORD', () => arg({ placeholder: 'Feedbin Password', secret: true, }), ); const headers = { Authorization: `Basic ${btoa(`${feedbinUsername}:${feedbinPassword}`)}`, }; type Entries = EntriesItem[];

Fix Spelling and Grammar (using OpenAI)

third774's avatar
Kevin Kipp
// Name: Fix Spelling and Grammar // Author: Kevin Kipp // Email: kevin.kipp@gmail.com // Twitter: https://twitter.com/kevin_kipp // Github: https://github.com/third774 import '@johnlindquist/kit'; import OpenAI from 'openai'; const openai = new OpenAI({ apiKey: await env('OPENAI_API_KEY', { secret: true, }), }); const text = await getSelectedText(); const completion = await openai.chat.completions.create({ messages: [ {