360 Followers
446 Following
118 Posts
Building Astro 🚀 Previously Netlify, Gatsby. Made Unpic.
Webhttps://mk.gg
GitHubhttps://github.com/ascorbic/
Twitterhttps://twitter.com/ascorbic/
I prefer posting things here, but this makes it hard

I was wondering if Unpic worked with local images on Remix. tl;dr of course it does. It took about 3 minutes to get it working. This is all you need to get a responsive, high-performance `<img>` tag.

I wrote a blog post about it, with editable examples and everything. https://unpic.pics/blog/responsive-images-on-remix/

Generate responsive images on Remix – Unpic

Automatically generate responsive images on Remix using Unpic

Unpic
I'm working on an experimental Unpic Image Service for Astro. It's drop-in and zero config, and will give all Astro Images the Unpic magic (responsive srcsets and best practices, image CDN detection) without needing to use the Unpic components. It also has some new stuff, like automatic placeholders. Choose from dominantColor, blurhash (pure-CSS) or lqip (data URI image).
My favourite new GPT hack is to upload a @deno_land binary to its knowledge and give it the ability to run and check JavaScript and TypeScript code. If you want to try it, make sure to tell it to run chmod to make it executable first. Also uploading the output of "deno help" as a text file is useful.
These sort of questions are now my favourite test of an LLM. GPT-4 sometimes gets them. No other model can. Claude can sometimes get it after a few hints (e.g. think specifically about what the other girls are doing). Bard is hilariously bad at it. Even with very obvious clues (e.g. a seesaw needs two people), it can't get it.
Hello Mastodon. This edge funciton will replace every image on your site with a kitten. Happy Friday!

I thought I'd use a break in the OpenAI drama to build a GPT. It can introspect your GraphQL server and then help you construct queries. It can even validate them against the schema, and run them against a live server. I wrote about it here

https://dev.to/ascorbic/this-gpt-talks-to-your-graphql-server-and-will-write-your-queries-for-you-2mc6

This GPT talks to your GraphQL server and will write your queries for you

I've built a GPT that can talk to your GraphQL server, learn the schema, then build queries that...

DEV Community
Security is non-existent out of the box. Deploy the it yourself and use your own access control. It works in vanilla JS via script tag, as a module or a React component. The demo site uses Astro with the vanilla JS version. You can try the demo site here: https://chalkstream-astro.netlify.app
Chalkstream

It uploads the chunks to an edge function, which does no encoding - just puts them in the blob store. More edge functions generate the HLS manifest and serve the chunks to the browser.

The playback page has a randomly-generated stream ID, and you can share the link with anyone and they can watch the live stream. Latency is about 10 seconds or so, depending on your computer and browser. If you stop streaming for 30s it turns into a VOD playback page.