Blog

Self-hosted Supabase - Auto Expiring Session After X Minutes

By default, an authenticated user of Supabase Javascript Client will stay logged in indefinitely regardless of the JWT expiry time and browser closing/reopening. This guide will show you how to implement auto-expiring sessions that self destroy after X minutes.Read More →

Self-hosted Supabase - Adding Custom Claims Using Auth Hook

Notes on how to add custom claims to JWT token using the auth hook in self-hosted Supabase.Read More →

Self-hosted Supabase With SAML Attribute Mapping

Guide to map additional attributes from the SAML Identity Provider to the Supabase user.Read More →

Free Offline AI Writing Assistance For Mac With Local LLM

Guide to run your own offline AI writing assistance using Open Llama and Raycast on MacRead More →

Local LLM for Function Calling with Open Llama, NexusRaven and JS/TS

This post explores running Function Calling locally with NexusRaven, a model trained specifically for this task. Using a local LLM is preferable when you want to keep your data on-premise rather than sending it to the cloud.Read More →

Attendance Taking AI Chatbot with React Frontend

Building an interactive OpenAI chatbot that takes student attendance with Fastify, SQLite and React.Read More →

Student Attendance Chatbot with Parallel Function Calling

With "Parallel Function Calling" in the new OpenAI 3.5 (1106) model, I can now create a chatbot that can handle multiple function calls in response to a complex user message.Read More →

Making a Student Attendance Tracking ChatBot

I built a chatbot that can take attendance and answer questions about attendance history, using LangChain and OpenAI "Function Calling".Read More →

Enabling custom SAML SSO on Your Self-hosted Supabase

Steps to connect a self-hosted Supabase to a custom SAML identity provider and enable SSO. This is the first part of a two-part article. The second part will show how to integrate the SSO feature with refine.js.Read More →

Redesign iconimg.com

Improve the user experience of iconimg.com with a new design.Read More →

Build Super Mario Bros Coin App Using Accelerometer to Trigger Sound Effect

With the help of ChatGPT, I made this iOS app that plays the Super Mario Bros coin sound effect when the user *Gentally* punch the back of the phone.Read More →

Adding Latest Blog Posts to the Home Page of Your Nextra Site

How to add the latest 3 blog posts to the home page of your Nextra site.Read More →

Version Checking and Auto Update for React Web App

A simple way to constantly check for updates and reload your React app automatically when there is a new version deployed.Read More →

Icon PNG Image Maker Web App

Web app for testing the Icon Image Maker Lambda function. It is built with React and deployed on GitHub Pages.Read More →

Icon PNG Image Maker as AWS Lambda Function

HTTP GET invokable function for generating square PNG file from some popular open source icon packages such as Feather, Font Awesome, FluentUI, and Material.Read More →

Using LangChainJS and OpenAI to Ask a Question About an Article on Wikipedia

Instead of relying on trained data, this example feeds a specific document (e.g. Wikipedia article) as the basic knowledege, and answer a custom question.Read More →

Chinese Characters Multiple Choice Game

A simple game that helps learners memorize Chinese characters, by first hearing the sound in Cantonese and then pick the correct character out of 4 choices.Read More →

Build iOS App with AI Assisted Coding

The challenge is to build an iOS app using assisted coding with GPT and GitHub Copilot in two days. The purpose of the app is to detect movement of the phone and send a notification to a paired Apple watch.Read More →

Learning About AI

Reflecting on the changes in the software development industry over the last 20 years, from PHP to ReactJS, I have observed the rise of UX/UI design and the development of NodeJS. Recently, with the rise of affordable and accessible AI, I am excited to learn more about the technology and its applications.Read More →