Web Tools #560 - Popover API, Frameworks, ChatGPT, JS Utils

Web Tools Weekly
WEB VERSION
Tools for Web Developers

Issue #560 • April 11, 2024

Advertisement

$47 Million in Artwork Sales Equals Profits for These Everyday Investors — Masterworks is taking on the billionaires at their own game, buying up paintings by world-class artists like Banksy and Picasso, and securitizing them for its investors. 

When Masterworks sells a painting – like the 16 it's already sold – investors reap their portion of the net proceeds. Its investors have already received proceeds from more than $47 million in sales, realizing annualized net returns of 17.8%, 21.5%, 35% and more.

Masterworks

Now, Masterworks wants to do the same thing for you. By qualifying every offering with the SEC, Masterworks makes it easy for everyday people to invest in multi-million dollar paintings. Offerings can sell out in just minutes, but as a trusted partner, Web Tools Weekly readers can skip the waitlist to join here. [ Note: Past performance is not indicative of future returns, investing involves risk. See disclosures masterworks.com/cd ]

Skip the Waitlist →

By now you may have heard of the Popover API that allows you to create modal windows using a few HTML attributes and controlling the functionality using some events and methods in JavaScript.

The simplest Popover API example can be implemented with nothing but HTML using something like the following:

<button popovertarget="mypopover">Toggle Popover</button>
<div id="mypopover" popover>A Popover Example</div>

No JavaScript needed, the popover just works. The only requirements for this code are:

  • A popovertarget attribute on the element that will serve as the button (in this case an actual button element).
  • An id attribute on the popover element itself with a value that's equal to the value of the popovertarget attribute.
  • A popover attribute on the popover element.
That's basically a popover in its simplest state. Of course, without any CSS, the popover element would be nothing but a plain element with some text. By default, Chrome adds a simple dark 2px border to the element, but this can be changed as needed.

The easiest way to style a popover element is using the :popover-open pseudo-class, like this:
 
:popover-open {
  border-radius: 20px;
  transition: linear 1s;
  padding: 50px;
  border: none;
  background: #ccc;
}

This styles all popovers in their open state. You can see this simple popover example in this CodePen demo.

Some other options available to customize the popover, include the following:

  • The popover attribute on the popover element has a default value of "auto" but you can also choose a value of "manual". The value "auto" means it can be dismissed by clicking outside the popover or by hitting the ESC key on the keyboard. A value of "manual" requires that it be closed using either the toggle button or another button designated as the close button.
  • As indicated in the previous point, you can use multiple buttons for opening and closing the popover. You can define these by adding an attribute called popovertargetaction to each button and specifying a value of "show" or "hide". These override the default value "toggle" that is assumed if you don't include them.

Here's another CodePen that uses different buttons for opening an closing and also includes the "manual" value so the popover can't be closed without using the buttons.

Now on to this week's tools!
 

Web Frameworks

MBRV — A hassle-free full-stack TypeScript, Bun, and React boilerplate with hot reload and SSR support.

next-starter — A super-opinionated Next.js starter template that includes features like TypeScript, Tailwind, next-auth, ESlint, shadcn-ui, Prisma, Jest, React Testing Library, and lots more.

Anytime Mailbox — Business starters, are you in need of a business address separate from your home? Anytime Mailbox provides a seamless solution, securing a private, professional address with added benefits like mail forwarding and scanning for ultimate convenience.     SPONSORED 

Svelte UX — A suite of 200+ components, actions, stores, and utilities to build highly interactive applications with Svelte.

Bulma — A popular open-source CSS framework that provides ready-to-use frontend components that you can easily combine to build responsive web interfaces.

Tiny Stack — A simple and tiny stack for building web applications using Astro, SQLite, and Litestream (the popular SQLite tool).

Wedges — A modest set of UI components for React, built with the Wedges Design System, Radix UI, and Tailwind.

Wedges

WXT — A TypeScript-based framework for building web extensions and plugins for Chromium-based browsers, featuring build manifest v2/v3, fast dev mode, Nuxt-like auto-imports, and more.

Shadow Panda — An accessible and customizable library of 40+ components built with Panda CSS, Radix, and shadcn/ui.

drab — A headless component library of 14+ components that are all based on HTML Custom Elements, each providing a useful wrapper around a specific web API.

ChatGPT and AI Tools

OpenModerator — An open-source, modern AI content moderation tool that provides image and text moderation to help communities avoid or remove questionable user-generated content.

Lummi — AI-generated, free stock photos that are royalty free. Most of these look pretty look realistic and not so "cartoon-like" as some of these AI-based ones seem to be.

Codel — A secure, fully autonomous AI agent that can perform complicated tasks and projects using terminal, browser, and editor.

Simplicity Builder — A web component that lets you add simplified drag and drop building capability to your project. Turn any HTML into drag and drop building blocks. Works with vanilla JavaScript, Angular, React, and Vue. Use for page builders, no-code tools.    SPONSORED 

AI Gateway — A core infrastructure stack for building production-ready AI applications with features like AI Router, load balancing, seamless integration with Universal API, and more.

openai-cloudflare — An OpenAI API proxy running with Cloudflare worker that has support all APIs provided by OpenAI, among a number of other features.

Cursor — An AI-first code editor with features like command palette, a native Copilot++, AI chat, codebase answers, and more.

Cursor

CodeMate — An AI-powered search engine for developers that lets you select the programming language and whether to display results in "smart mode" or "fast mode".

Braintrust AI Proxy — A unified way to access the world's leading AI models through a single API, including models from OpenAI, Anthropic, LLaMa 2, Mistral, and more.

Cosine — An AI code companion to help with code reviews, scaffolding, seamless README updates, comprehensive impact assessments, rapid bug detection, and more.
Advertisement

The Morning Paper for Hacker News Readers
Want a byte-sized version of Hacker News that takes just a few minutes to read? 

Try TLDR's free daily newsletter.

TLDR covers the most interesting tech, startup, and programming stories in under 5 minutes.

TLDR

No sports. No politics. No weather.

TLDR is read by 1,250,000 software engineers, founders, and tech workers.

Subscribe for Free →


 

JavaScript Utilities

Minditor — A block-level rich text editor with features like image uploading, markdown commands, inline insertions, simplified plugin development, and lots more.

gaxios — An HTTP request client that provides an Axios-like interface over top of node-fetch.

Bentocache — A robust multi-tier caching solution for Node.js applications and supports drivers for Redis, Upstash, Postgres, SQLite, etc.

Simplicity Builder — A web component that lets you add simplified drag and drop building capability to your project. Turn any HTML into drag and drop building blocks. Works with vanilla JavaScript, Angular, React, and Vue. Use for page builders, no-code tools.    SPONSORED 

mdbox — A set of simple Markdown utilities to programmatically work with Markdown syntax without dealing with complex and strict AST objects.

emojisplosion — A utility to blast emoji-based "fireworks" on a web page, with plugins for Astro and TypeDoc, and lots of ways to customize including timing, types of emojis, position, size, and more.

Emojisplosion

Journey.js — A lightweight, easy-to-use JavaScript library to create interactive, customizable, accessible guided tours for websites and apps.

gsplat.js — An easy-to-use, general-purpose, open-source 3D Gaussian Splatting library, providing functionality similar to Three.js but for Gaussian Splatting.

export-to-csv — A small, simple, and single-purpose CSV export library with zero dependencies, functionally inspired, and fairly well-typed.

Siero — A serialization library that can handle functions, promises, and symbols, and can be used with an accompanying worker utility.

Commercial Apps & Classifieds

These are commercial apps, affiliate links, PPC ads, and paid classifieds. Buy a Classified here.
Studio – An easy and quick no-code design tool to turn any idea into a website.
Morning Brew – A daily newsletter that delivers world news with a business spin straight to your inbox, free.   AD 
Scade – Access 1,500+ AI models with a drag-and-drop flow builder to create and optimize workflows.
Tigris – A low-latency, globally distributed S3-compatible object storage service.
BookBub – Subscribe to get per­sonalized alerts for free and dis­counted top-selling e-books     AD 
BaseHub – A headless CMS that’s built for speed and collaborative workflows.
GPTBots – A powerful no-code platform for creating AI-driven business applications.

An X Post for Thought

I don't know a lot about LLMs but this sounds pretty powerful to me, if true.
 
An X Post for Thought
 

Send Me Your Tools!

Made something? Reply to this email or send links via Direct Message on X @LouisLazaris (details here). No tutorials or articles, please. If you have any suggestions for improvement or corrections, feel free to reply to this email.
 

Before I Go...

The folks at Google created a game called Most Searched Playground, which is a sort of Where's Waldo-like interactive experience that lets you find the most searched people, places, and things, according to Google data.

Thanks to everyone for subscribing and reading!

Keep tooling,
Louis
@LouisLazaris
PayPal.me/WebToolsWeekly

Older messages

Web Tools #559 - HTML Template, CSS Tools, Testing, React

Thursday, April 4, 2024

WEB VERSION Issue #559 • April 4, 2024 Advertisement Webinar: Android Malware Application Protection In 2023, mobile malware attacks spiked by more than 50% compared to 2022. As the malware problem

Web Tools #558 - ImageKit Review, JS Libraries, Git/CLI Tools, Jamstack

Thursday, March 28, 2024

WEB VERSION Issue #558 • March 28, 2024 The following is a paid product review for ImageKit's Video API, a developer-friendly toolkit for real-time video optimizations and transformations, to help

Web Tools #558 - ImageKit Review, JS Libraries, Git/CLI Tools, Jamstack

Thursday, March 28, 2024

WEB VERSION Issue #558 • March 28, 2024 The following is a paid product review for ImageKit's Video API, a developer-friendly toolkit for real-time video optimizations and transformations, to help

Web Tools #557 - App Badges, SVG Tools, Databases, Uncats

Thursday, March 21, 2024

WEB VERSION Issue #557 • March 21, 2024 Advertisement The #1 All-In-One Platform Your Team Needs Picture a world where workflows are finely tuned, automated to perfection, and seamlessly integrated

Web Tools #556 - structuredClone(), Frameworks, Testing Tools, JS Utilities

Friday, March 15, 2024

WEB VERSION Issue #556 • March 14, 2024 Advertisement Video API That Developers Love Delivering a high-quality video experience shouldn't be a burden for developers. Introducing ImageKit's

You Might Also Like

Jack Dorsey leaves Bluesky

Monday, May 6, 2024

View this email online in your browser By Alex Wilhelm Monday, May 6, 2024 Welcome to TechCrunch AM! It's Monday morning, and the news is already heating up. Today we have notes on Jack Dorsey once

Notion 3.0 "AI Everything App" | Free Template | Task & Project Management System

Monday, May 6, 2024

Your weekly Notion digest with the last updates, useful articles and free and premium templates 🔥 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Digest #136: Terraform Generation with LLM, FinOps for K8s, Postgres Hacking and CronJobs with AWS Lambda

Monday, May 6, 2024

Boost Lambda Performance, SOC 2 CI/CD, Docker Build Caching, Cloud Cost Optimization Tips! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Our verdict on the Rabbit R1

Monday, May 6, 2024

The Morning After It's Monday, May 06, 2024. When I first saw the Rabbit R1, it was more appealing than the Humane AI Pin. The R1 had an actual screen, not a dim projector, and it had a twee

Microsoft Outlook Flaw Exploited by Russia's APT28 to Hack Czech, German Entities

Monday, May 6, 2024

THN Daily Updates Newsletter cover Webinar -- Data Security is Different at the Petabyte Scale Discover the secrets to securing fast-moving, massive data sets with insights from industry titans

Import AI 371: CCP vs Finetuning; why people are skeptical of AI policy; a synthesizer for a LLM

Monday, May 6, 2024

Welcome to Import AI, a newsletter about AI research. Import AI runs on lattes, ramen, and feedback from readers. If you'd like to support this (and comment on posts!) please subscribe. Why are

Post from Syncfusion Blogs on 05/06/2024

Monday, May 6, 2024

New blogs from Syncfusion Exporting DataGrid to PDF Made Easy in .NET MAUI By Farjana Parveen This blog explains how to export the Syncfusion .NET MAUI DataGrid control to a PDF document with code

🔥 Announcing Galileo Protect: Real-Time Hallucination Firewall*

Monday, May 6, 2024

Unveiling Galileo Protect – the first GenAI firewall built for the enterprise! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Siri's AI upgrade 🤖, Tesla Supercharger chaos ⚡, AI engineer burnout 👨‍💻

Monday, May 6, 2024

Safari, Spotlight Search, and Siri will gain significant AI-related enhancements. Apple's AI model will generate basic responses entirely on-device. Sign Up |Advertise|View Online TLDR Together

80% Off iPhone Photo Academy!

Monday, May 6, 2024

Hi there, Are you ready to dramatically improve your iPhone photography skills? We all know that the iPhone camera is extremely powerful, but most of us still manage to take a lot of photos that aren