Dublin Library

The Publishing project

Very Large-Scale Interactive Projection Mapping

The Unnumebered Sparks project is a landmark in large-scale interactive art installations. It demonstrated how web technologies could be harnessed to create immersive experiences that engage audiences in new ways. The project is a combination of a large sculpture, and a web-based interactive system that allows users to add visual elements to the sculpture using their mobile devices. The entire system is built around the web browser as the rendering engine, showcasing the power and flexibility of web technologies. This guide details how to build an immersive, interactive art piece where many people can use their phones to "paint with...

Continue reading →

Syft And Grype Integration

Recent supply chain attacks have highlighted the need for robust vulnerability management in Node projects. While NPM Audit provides a basic level of security scanning, it has limitations that can leave projects exposed. This post explores how to enhance your security posture by integrating Software Bill of Materials SBOM generation with Syft and vulnerability scanning with Grype into Node projects. Moving Beyond NPM Audit NPM audit is a useful tool for identifying known vulnerabilities in your dependencies. However, it has several limitations: It does not cover all types of dependencies, may miss vulnerabilities in transitive dependencies, will not handle supply...

Continue reading →

NPM Security Best Practices

In recent months, we've seen a rise in security vulnerabilities related to the NPM ecosystem. As developers, it's crucial to follow best practices to ensure the security of our applications. This responsibility extends beyond just our own code; it includes maintaining the integrity of our dependencies. This post will cover essential NPM security best practices, focusing on two key areas: understanding the supply chain threat and implementing a layered defense for your projects. The Threat: Understanding Supply Chain Attacks NPM, like other package managers, is a common target for supply chain attacks. These attacks compromise popular packages to steal credentials,...

Continue reading →

MCPs and AI Agents

Model Context Protocols MCPs are an interesting adjacent technology to large language models LLMs and AI agents. They provide a standardized way for AI models to interact with external data sources, tools, and systems, enabling them to access real-time information and perform complex tasks that go beyond their initial training data. This post explores what MCPs are, how they work, and how they can be used to enhance the capabilities of AI agents. What Are Model Context Protocols? Model Context Protocols have emerged as a pivotal technology for enhancing the capabilities of AI agents. At its core, an MCP is...

Continue reading →

Create A Translation Custom Element

I've always struggled with how to integrate AI into web applications. It wasn't until I learned about Transformers.js and the Chrome native AI APIs that I realized how powerful these tools could be. The first AI component I created was a summarizer that used Chrome's Native AI capabilities and a fallback based on Transformers.js. This allowed to provide an AI-powered summary feature for all browsers. This post will discuss the creation of a translation custom element that uses AI to translate text content. The component will use Chrome's Native AI capabilities when available and fall back to Transformers.js and a...

Continue reading →

Building a Text-To-Speech Custom Element

When I first conceived the idea of creating a custom element for text to speech TTS, I envisioned a simple web component that could leverage existing web technologies and AI, packaged as a web component so it could be easily integrated into any web page. The result was interesting, to say the least, and ended as something completely different from my initial idea. This post will walk through the process of building the custom element, the challenges faced, and the lessons learned in the process. The Initial Idea The goal was to create a component that could speak the text...

Continue reading →

Can we unSASS yet?

While modern CSS has adopted several powerful features that were once exclusive to preprocessors like SASS, a number of key SASS functionalities are still not natively available. For some of these, clever workarounds exist in pure CSS but, for others, there are no direct equivalents. This guide explores the features that both platforms now share, followed by the features that remain unique to SASS and their workarounds. Features Available in Both SASS and CSS The gap between SASS and CSS has narrowed as native CSS has adopted features pioneered by preprocessors. What's important to note is that even though the...

Continue reading →

The WebCodecs API

The WebCodecs APIhttps://developer.mozilla.org/en-US/docs/Web/API/WebCodecsAPI gives web developers unprecedented, low-level access to the browser's built-in media codecs the encoders and decoders that process video and audio. This unlocks a wide range of powerful, high-performance applications that previously required cumbersome WebAssembly libraries, server-side processing, or were simply not feasible in a browser. Imagine building applications like real-time video editors with transitions and effects, ultra-low-latency cloud gaming clients, or video conferencing tools that apply virtual backgrounds and noise suppression directly on the user's device. This post introduces the core concepts of the WebCodecs API, walks through a basic video encoding and decoding workflow, and...

Continue reading →

CSS - what we are missing

CSS has come a long way since its inception, evolving from a simple styling language to a powerful tool for creating complex layouts and animations. I love playing with CSS and exploring its capabilities to create web pages that emulate magazine layouts while maintaining responsiveness and accessibility. There are still some features that I believe would greatly enhance the capabilities of CSS and make it even more versatile for developers. This post explores some of the features I think are missing in CSS and how they could enhance layout design, responsiveness, and overall user experience. Replacement for Regions CSS Regionshttps://www.w3.org/TR/css-regions-1/...

Continue reading →

Creating a Font Inspector

When working with custom fonts, especially variable fonts, it can be tedious to manually extract font metrics and generate the necessary CSS @font-face rules. A script that automates this process can save time and reduce errors. Rather than manually inspecting font files to extract their metrics and generate the appropriate CSS @font-face rules, we can automate this process with a Node.js script. This post will cover one such possible implementation using the opentype.jshttps://www.npmjs.com/package/opentype.js?activeTab=readme to read font files and extract their properties and the wawoff2https://www.npmjs.com/package/wawoff2 to handle WOFF2 decompression to work around a limitation in opentype.js. Why Create a Font Inspector?...

Continue reading →