Feed aggregator

Show HN: Syneva – A Chatbot under 3kb that fits in a QR code

Hacker News - Mon, 04/21/2025 - 8:29am

Follow up post from: https://news.ycombinator.com/item?id=43742639

TLDR: My attempts of jamming a somewhat smart conversational chatbot into a QR code (with a UI)

Here's what makes SYNEVA work:

I went with a pattern-matching approach instead of neural nets or tiny transformers (I tried that in archived versions, we DO NOT have space for this sadly). The entire system is built around our S class that's basically:

S {

constructor() { this.m = this.L() || {}; // Memory/learned responses this.v = {}; // Word frequency tracker this.c = []; // Conversation history this.h = ""; // Last message } }

*Memory & Learning*

SYNEVA can actually "learn" during conversations! We can't use localstorage because this is a BASE64 URI but we can still use SessionStorage. When you chat, it:

Creates context keys from the last 2 normalized words Stores your input/response pairs in this.m Tracks word frequencies in this.v for relevance scoring Persists this data inside the URL hash

*Response Generation*

For responses, it uses a multi-stage fallback system:

Pattern matching against phrases/questions (the few it has) Context-based lookup from some learned responses Word frequency analysis for fuzzy matching Default responses as last resort if nothing works

This lets it seem somewhat intelligent despite the size constraints.

*UI Layer*

Added a kinda retro looking green-on-black terminal interface and managed to get a typing animation!

Everything's packed into 2.8kb including HTML/CSS/JS and it's all in a QR code

Previous attempts with neural networks went upto 5.3kb even with 8-bit quantization and word-level processing. This pattern-matching approach with context awareness turned out way more efficient while still being somewhat "smart".

You can actually share your "trained" chatbot too - just share the URL with its hash, and your conversation context gets preserved :P

I'd love to know your thoughts or if you can make something better in the constraints, feel free to contribute

Comments URL: https://news.ycombinator.com/item?id=43751199

Points: 1

# Comments: 0

Categories: Hacker News

Bot Traffic Surpasses Humans Online—Driven by AI and Criminal Innovation

Security Week - Mon, 04/21/2025 - 8:25am

With 51% of internet traffic now bot-driven and a growing share of it malicious, organizations must prepare for an era of more evasive, AI-assisted automation.

The post Bot Traffic Surpasses Humans Online—Driven by AI and Criminal Innovation appeared first on SecurityWeek.

Categories: SecurityWeek

Impact, Agency, and Taste

Hacker News - Mon, 04/21/2025 - 8:21am

Article URL: https://www.benkuhn.net/impact/

Comments URL: https://news.ycombinator.com/item?id=43751135

Points: 1

# Comments: 0

Categories: Hacker News

Apple iPhone 16E vs. Samsung Galaxy S24 FE: Comparing the Lower-Cost Phones

CNET Feed - Mon, 04/21/2025 - 8:02am
Apple and Samsung are each offering lower-cost phones with flagship-level features, here's how to compare which one could be better for you.
Categories: CNET

Motorola to outfit first responders with new AI-enabled body cameras

ZDNet Security - Mon, 04/21/2025 - 8:00am
Unveiled today, AI Assist aims to help public safety officers do their jobs more efficiently - and safely. Here's how it works.
Categories: ZDNet Security

This Dark-Sensing Nightlight Doesn't Even Take Up an Outlet

CNET Feed - Mon, 04/21/2025 - 8:00am
SnapPower's outlet is an innovative, easy-to-install answer to a very old nightlight problem.
Categories: CNET

Pages