Daily Digest: JavaScript and AI

Daily Issue #8

🎆 NEWS, INNOVATIONS, TRENDS, TUTORIALS

🧰 CODING TOOLBOX

  • Slint is a declarative GUI toolkit to build native user interfaces for desktop and embedded applications

  • chatgpt.js is a super handy, open-source JavaScript library for boosting ChatGPT

  • Jan is an open source alternative to ChatGPT that runs 100% offline on your computer

  • MongoDB Chatbot Framework

  • AIChat is an all-in-one AI CLI tool featuring Chat-REPL, Shell Assistant, RAG, AI Tools & Agents, and more

#️⃣ DO YOU AI PROMPT?

Turn ChatGPT into your therapist

I want you to act as a therapist. Help me navigate through my feelings of [whatever you are feeling, for example: anxiety, loneliness etc..] during [whatever problem you are facing currently, for example: job loss, mental stress, break-up etc…]

💻 CODE SNIPPETS

Problem: How to access deeply nested properties without having to constantly check for their existence.

Solution: Optional chaining

const user = { profile: { name: "Michael", age: 17 } };
console.log(user?.profile?.name); // Michael
console.log(user?.contact?.email); // undefined

🛠️ SUGGEST A TOOL

If you have built anything that you’d like to share with the community, get with me on X @dailysandbox_ 😀 

Curious about this email? That means that at some point you must have subscribed, likely at cogency.io

Reply

or to participate.