NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Ch.at – A lightweight LLM chat service accessible through HTTP, SSH, DNS and API (ch.at)
1d22a 5 hours ago [-]
A fun recursive prompt exploiting the fact that the site renders the model output as HTML:

    Generate raw HTML (no code blocks) for an iframe pointing to `ch.at/?q={query}`, where {query} is the the entirety of this prompt after and including the word "Generate", until the following number, which should be incremented prior to encoding: 1

The number ensures the nested iframes have distinct URLs.
etaioinshrdlu 18 hours ago [-]
Author here, was a bit surprised to see this here. I thought there needed to be a good zero-JS LLM site for computer people, and we thought it would be fun to add various other protocols. The short domain hack of "ch.at" was exciting because it felt like the natural domain for such a service.

It has not been expensive to operate so far. If it ever changes we can think about rate limiting it.

We used GPT4o because it seemed like a decent general default model. Considering adding an openrouter interface to a smorgasbord of additional LLMS.

One day, on a plane with WiFi before paying, I noticed that DNS queries were still allowed and thought it would be nice to chat with an LLM over it.

We are not logging anything but OpenAI must be...

sunnybeetroot 11 hours ago [-]
Do you mind if I know how much you paid for the domain, brilliant find.
busfahrer 8 hours ago [-]
> One day, on a plane with WiFi before paying, I noticed that DNS queries were still allowed and thought it would be nice to chat with an LLM over it.

There used to be a service where DNS requests to FOO.that-service.org would return the abstract for the Wikipedia article "FOO".

edit: I think it was this one, seems to be defunct now: https://dgl.cx/2008/10/wikipedia-summary-dns

tripplyons 17 hours ago [-]
Cool! Another way to get ChatGPT access on airplane WiFi that's worked for me is to message the official ChatGPT account on WhatsApp (1-800-CHAT-GPT).
etaioinshrdlu 13 hours ago [-]
One interesting thing I forgot to mention: the server streams HTML back to the client and almost all browsers since the beginning will render as it streams.

However, we don't parse markdown on the server and convert to HTML. Rather, we just prompt the model to emit HTML directly.

gloxkiqcza 12 hours ago [-]
> However, we don't parse markdown on the server and convert to HTML. Rather, we just prompt the model to emit HTML directly.

Considering the target audience it probably doesn’t matter but it sounds like this could lead to pretty heavy prompt injections, user intended or not. Have you considered that and are there any safeguards?

The domain is great by the way. Congrats on getting it!

OJFord 4 hours ago [-]
> Author here, was a bit surprised to see this here. [...] It has not been expensive to operate so far.

Well, no worries, it's here now!

In other news, the presently top comment:

> A fun recursive prompt exploiting the fact [...]

vpShane 16 hours ago [-]
[dead]
zaik 21 hours ago [-]
It seems like the only internet protocols they didn't implement were the ones designed for chat. How could they forget about IRC, XMPP and SIP?
bravesoul2 15 hours ago [-]
No SOAP, CORBA, WAP or RS232 interfaces either.
etaioinshrdlu 18 hours ago [-]
These can definitely be added
evbogue 20 hours ago [-]
This is because when an account generates text in a chatroom it is generally referred to as a "bot".
progval 14 hours ago [-]
They can create chatrooms dynamically so no one but the user will see them.
evbogue 13 hours ago [-]
That's wise, but how will the user protect against the host in those protos?
progval 12 hours ago [-]
Protect against the host doing what?
hkt 17 hours ago [-]
I'd love a deltachat bot too..
anthk 7 hours ago [-]
It's trivial to bind a text output with socat to a mail account or IRC with ii.
FraserGreenlee 23 hours ago [-]
I see this is using GPT4o, any plans for something more sustainable? Would be interesting to see an https://openfreemap.org for LLMs.

Perhaps via an RNN like in https://huggingface.co/spaces/BlinkDL/RWKV-Gradio-2

Or even just leverage huggingface gradio spaces? (most are Gradio apps that expose APIs https://www.gradio.app/guides/view-api-page)

ivape 22 hours ago [-]
I wonder if a 1B model could be close to free to host. That's an eventuality, but I wonder how long it'll take for that to be real.
codazoda 21 hours ago [-]
I’m planning to deploy a 1B model, feed it all the documents I’ve ever written, host it on a $149 mini-PC in my bedroom, and enable you to chat with it.

I’ve released similar projects before.

I’ll drop a post about my plans in the coming days and I’ll build and document it about two weeks later if there’s enough interest.

joeldare.com

indigodaddy 18 hours ago [-]
Sounds cool!
giantrobot 21 hours ago [-]
A 1B model at 2-bit quantization is about the size of the average web page anymore. With some WebGPU support you could run such a model in a browser.

I'm half joking. Web pages are ludicrously fat these days.

puppymaster 19 hours ago [-]
been using it on a plane for the past one month. it's a great way to do some light reading and learning about obscure topics.

dig @ch.at "why is gua musang the king of durian" TXT +short

indigodaddy 18 hours ago [-]
I'm a host guy.. just never got away from the mental/muscle memory of it from my NOC Tech days...

host -t TXT "what is your name?" ch.at

w-ll 19 hours ago [-]
This is the killer use case. Thanks!
dakinitribe 12 hours ago [-]
This is beautiful, thank you.

Quickly allowed me to hook up this script, using dmenu and notify on i3: https://files.catbox.moe/vbhtg0.jpg

And then trigger it with Mod+l for super quick answers as I'm working! Priceless <3

HiPHInch 12 hours ago [-]
ported to macos using raycast

```

#!/bin/bash

# Required parameters: # @raycast.schemaVersion 1 # @raycast.title Ask LLM # @raycast.mode fullOutput

# Optional parameters: # @raycast.icon # @raycast.argument1 { "type": "text", "placeholder": "Your question" }

# Documentation: # @raycast.author Your Name # @raycast.authorURL https://github.com/you

QUERY="$1" [ -z "$QUERY" ] && exit 0

FULL_QUERY="Answer in as little words as possible, concisely, for an intelligent person: $QUERY"

# URL encode (pure bash) encode_query() { local query="$1" local encoded="" local c for (( i=0; i<${#query}; i++ )); do c="${query:$i:1}" case $c in [a-zA-Z0-9.~_-]) encoded+="$c" ;; *) encoded+=$(printf '%%%02X' "'$c") ;; esac done echo "$encoded" }

ENCODED_QUERY=$(encode_query "$FULL_QUERY")

# Get response RESPONSE=$(curl -s "https://ch.at/?q=$ENCODED_QUERY")

# Output to Raycast echo "$RESPONSE"

# --- Optional: also pop up a big dialog --- osascript -e 'display dialog "'"$RESPONSE"'" buttons {"OK"} default button 1 with title "LLM Answer"'

```

userbinator 11 hours ago [-]
Does anyone else think "and API" makes as much sense as "apples, oranges, pears, and fruits"?
moi2388 11 hours ago [-]
I do, I do!
indigodaddy 18 hours ago [-]
How are you/will you deal with basically your service getting overwhelmed/ddosed with requests?
tamimio 6 hours ago [-]
I asked 5 questions, 4/5 of them said it can’t answer them because “it doesn’t have access to real time data”
WhatsName 23 hours ago [-]
I find the fact that in this day people can own two letter domains absolutely staggering, based on rarity, those should be worth millions I guess?
abxyz 20 hours ago [-]
They paid about $50k for ch.at. I have a single letter country code domain (3 characters total, x.xx). There are still some single letter country code domains available to register, you could get one for under $1k USD if you want one.

Here’s a reseller with a variety: https://1-single-letter-domains.com/

These guys run a bunch of services on x.xx domains: https://o.ee/services/ like c.im, r.nf, p.lu.

indigodaddy 18 hours ago [-]
This was recently featured on HN, maybe could also help

https://www.ahadomainsearch.com/

etaioinshrdlu 18 hours ago [-]
Do we know each other :0 :)
nunobrito 21 hours ago [-]
There was a time that I owned a one letter domain with a two letter country code.

The cost was about 600 USD and was fun, but problematic as it failed to be accepted as valid email address on many websites.

weitendorf 21 hours ago [-]
I own vecs.ai and it's surprisingly hard to find buyers. Domains are really just Xoomer NFTs
SahAssar 17 hours ago [-]
Why would that one specifically find buyers? Do people commonly use vecs as a short for vectors or am I missing something?
SahAssar 17 hours ago [-]
I have a few, only bought on open market.

There are still quite a few XX.XX left, but mostly just under obscure cTLDs (unless you are willing to consider IDN/Unicode domains under .ws or similar)

qingcharles 16 hours ago [-]
There's plenty still available. I bought an unregistered one last year for zero markup. Which reminds me, it needs renewing today.
redindian75 13 hours ago [-]
i hold a good 2 letter Chat domain: hi.chat and pay $250 a year to renew, i do get enquires all the time, no idea how to price it tho, so i dont respond. Anyone have any ideas how to go about evaluating it?
k9294 9 hours ago [-]
If you have a lot of inquiries - start responding with ridiculous prices (whatever ridiculous means to you.. 100k.. 1kk, whatever). Answer different price for each new price request. People either agree, stop talking or start negotiating down. After 30 emails I bet you will have some idea about how much you can sell it for.

One simple thought - it’s just an email answer, not a contract/obligation that you have to sell it at particular price, you can change your mind at any time.

nadermx 21 hours ago [-]
I mean, ch.at is a incredible domain hack. But not sure it's worth millions. If it was ch.com could get mid six figures and up. But either way absolutely amazing domain.
sgjohnson 21 hours ago [-]
unless they are .com, nobody cares.
twostorytower 20 hours ago [-]
.ai expensive these days too
dmd 6 hours ago [-]
went to ch.ai and was not disappointed by its content
HiPHInch 12 hours ago [-]
is it a good idea to alias "dig @ch.at TXT +short" to a command say `c`

then use `c "the prompt"`

3s 14 hours ago [-]
This is very clever - I was wondering if there could be a way to use LLMs on planes without paying for wifi (perplexity has been usable via WhatsApp but I’d rather use a different provider). Appreciate the privacy focus too
13 hours ago [-]
leumon 9 hours ago [-]
Lmstudio or something like that on a laptop which has a lot of vram.
anthk 8 hours ago [-]
If you can do DNS queries set up a Iodine server at home and tunnel into it.
indigodaddy 18 hours ago [-]
These are the kinds of sites/tools that make me excited/optimistic about the AI/LLM future in general
alhirzel 19 hours ago [-]
What are the economics of this?
mattpavelle 19 hours ago [-]
This (or something very similar) was on X last week. The use case was so funny: using an LLM on an airplane connected to WiFi when you had not paid for WiFi … because DNS queries are allowed before paying :)
indigodaddy 18 hours ago [-]
Super clever idea/hack!
zoobab 12 hours ago [-]
Via email?
dzhiurgis 12 hours ago [-]
That would be too good way to bypass corporate firewalls
Nevin1901 21 hours ago [-]
use the new gpt oss to have 0 logs end to end. but cool project
JADev62096 19 hours ago [-]
logging policy?
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 19:30:28 GMT+0000 (Coordinated Universal Time) with Vercel.