frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Prompt API

https://developer.chrome.com/docs/ai/prompt-api
32•gslin•2h ago

Comments

fg137•1h ago
"sorry, to use our website, you must have at least 22 GB of free disk space."
skybrian•1h ago
Still in origin trial? Looks like they're adding a temperature parameter:

https://chromestatus.com/feature/6325545693478912

avaer•1h ago
It works, I've shipped this as a "local inference"/poor person's ollama for low-end llm tasks like search. The main win is that it's free and privacy preserving, and (mostly) transparent to users in that they don't have to do anything, which is great for giving non-technical users local inference without making them do scary native things.

But keep in mind the actual experience for users is not great; the model download is orders of magnitude greater than downloading the browser itself, and something that needs to happen before you get your first token back. That's unfixable until operating systems start reliably shipping their own prebaked models that an API like this could plug into.

Yokohiii•1h ago
> That's unfixable until operating systems start reliably shipping their own prebaked models that an API like this could plug into.

Maybe the next big thing will be some software subscription premium offers with a bunch of 5090s as an extra.

subhobroto•53m ago
> It works, I've shipped this as a "local inference"/poor person's ollama for low-end llm tasks like search

fantastic!

> the model download is orders of magnitude greater than downloading the browser itself, and something that needs to happen before you get your first token back

sure but does this mean the model is lazily downloaded? that is, if I used this and I am the first time the model was called, the user would be waiting until the model was downloaded at that point?

that sounds like a horrible user experience - maybe chrome reduces the confusion by showing a download dialog status or similar?

also, any idea what the on disk impact is?

why_is_it_good•9m ago
> Storage: At least 22 GB of free space on the volume that contains your Chrome profile.
taejavu•5m ago
Lmao and here I am still staunchly treating Blazor’s 2MB runtime as a deal-breaker
jameslk•1h ago
Seems like a good way for a rogue JS script to offload token generation to a bunch of unsuspecting visitors

It would actually be pretty interesting to see if its possible to decentralize the compute to generate something useful from a larger prompt broken down and sent to a bunch of browsers using a subagent pattern or something like RLM, each working on a smaller part of the prompt

varun_ch•38m ago
This feels like a lot of work for low reward, the technical/business infrastructure would be wild. And if anyone wants to offload their prompts to users browsers, they might as well just use the Chrome API correctly? How many server side prompts would realistically be useful to offload to a low end model like this?

Plus even if you really wanted to do that, WebGPU exists and has for a while right?

jameslk•29m ago
> How many server side prompts would realistically be useful to offload to a low end model like this?

There's a lot of ways this API could go, e.g. more powerful models eventually, or perhaps integration with cloud models. For example, I could see Google trying to default Gemini as the model for users signed into Chrome

varun_ch•25m ago
I think we’ll get more powerful models when they become reasonable to run on regular people’s computers, in which case the compute costs would hopefully fall enough that people don’t need to resort to this kind of weird stuff.

As for cloud models, that would be interesting, although I guess then the fraud would be easier in spoofing whatever parameters (ip address? domain name? some Chrome install identifier?) to get around whatever rate limiting they come up with, rather than actually using people’s computers.

Anyways I’m sure if it ends up being abused, they can throw a permissions dialog in front of it. Just need to figure out a way to make normal people understand.

nl•1h ago
The model this uses is useless for anything beyond 2 round chat at the most.

If you want to do anything interesting you need transformers.js and a decent mode. Qwen 0.9B is where things start working usefully

gorgoiler•33m ago
Imagine a Vendor API that adds a way to link from the page straight into a device purchase workflow. As a trial of the API in Chrome you can order a new Google Pixel 9b directly from any page with the word Android in it!

Or a LocalNet API that integrates with trusted hardware devices on your local network. As a trial (Chrome beta programme — strictly limited but here’s 3x signup links to share with your friends) you can adjust your Google Next Mini underfloor heating directly from Chrome!

Or a DirectCast API that lets you stream <video> elements to a device of your choice even over a VPN. As a Chrome trial, you can use your Google Cloud account to stream directly from YouTube Premium to any linked Google Chromecast devices you own!

haberman•14m ago
This API seems perfect for an idea I've had for a while: a de-snarkifier for social media.

Social media can be intellectually stimulating and educational, but it's also easy to get sucked into ideological sniping and flamewars, even if you didn't go looking for it. The emotional and intellectual energy spent flaming strangers on the Internet is a complete waste of human capital.

With an API like this, I assume you could have a browser extension that could de-snarkify content before showing it to you. You could ask the LLM to preserve all factual content from the post, but to de-claw any aggressive or snarky language. If you really wanted to have fun, you could ask it to turn anything written in an aggressive tone into something that sounds absurd or incompetent, so that the more aggressive the post, the more it would make the author look silly.

This could have a double benefit. For the reader, it insulates them from the personal attacks of random strangers on the Internet. Don't get me wrong, there is a time and a place for real, charged arguments about important issues that affect us all. But there is little to be gained from having those fights with strangers; on the contrary, I think it poisons the body politic when strangers are screaming at each other.

For the writer, it takes away any incentive to be snarky or rude. If other people filter their content this way, there's no point in trying to be mean to them, and no "race to the bottom" for who can be more nasty.

I bought Friendster for $30k – Here's what I'm doing with it

https://ca98am79.medium.com/i-bought-friendster-for-30k-heres-what-i-m-doing-with-it-d5e8ddb3991d
555•ca98am79•8h ago•297 comments

Self-updating screenshots

https://interblah.net/self-updating-screenshots
148•bjhess•21h ago•23 comments

TurboQuant: A First-Principles Walkthrough

https://arkaung.github.io/interactive-turboquant/
42•kweezar•2h ago•4 comments

The Prompt API

https://developer.chrome.com/docs/ai/prompt-api
33•gslin•2h ago•15 comments

Three constraints before I build anything

https://jordanlord.co.uk/blog/3-constraints/
113•nervous_north•1d ago•15 comments

EvanFlow – A TDD driven feedback loop for Claude Code

https://github.com/evanklem/evanflow
29•evanklem2004•2h ago•10 comments

Fast16: High-precision software sabotage 5 years before Stuxnet

https://www.sentinelone.com/labs/fast16-mystery-shadowbrokers-reference-reveals-high-precision-so...
193•dd23•8h ago•46 comments

When the cheap one is the cool one

https://arun.is/blog/cheap-cool/
65•ddrmaxgt37•1d ago•20 comments

Flipdiscs

https://flipdisc.io
8•skogstokig•3d ago•0 comments

Box to save memory in Rust

https://dystroy.org/blog/box-to-save-memory/
91•emschwartz•3d ago•19 comments

Sawe becomes first athlete to run a sub-two-hour marathon in a competitive race

https://www.bbc.com/sport/athletics/articles/crm1m7e0zwzo
309•berkeleyjunk•7h ago•216 comments

When Your Digital Life Vanishes

https://www.newyorker.com/magazine/2026/04/27/when-your-digital-life-vanishes
27•benbreen•4d ago•8 comments

AI should elevate your thinking, not replace it

https://www.koshyjohn.com/blog/ai-should-elevate-your-thinking-not-replace-it/
340•koshyjohn•8h ago•269 comments

Revocation of X.509 Certificates

https://blog.apnic.net/2026/04/24/revocation-of-x-509-certificates/
10•jandeboevrie•1d ago•0 comments

SWE-bench Verified no longer measures frontier coding capabilities

https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/
268•kmdupree•14h ago•152 comments

Butterflies are in decline across North America, a look at the Western Monarch

https://www.smithsonianmag.com/science-nature/butterflies-are-in-dramatic-decline-across-north-am...
168•1659447091•7h ago•52 comments

FreeBSD Device Drivers Book

https://github.com/ebrandi/FDD-book
43•myth_drannon•5h ago•6 comments

The fastest Linux timestamps

https://www.hmpcabral.com/2026/04/26/the-fastest-linux-timestamps/
42•hmpc•15h ago•11 comments

Magic: The Gathering took me from N2 to Japanese fluency

https://www.tokyodev.com/articles/how-magic-the-gathering-took-me-from-n2-to-japanese-fluency
107•pwim•3d ago•38 comments

Quirks of Human Anatomy

https://www.sdbonline.org/sites/fly/lewheldquirk/figlegq6.htm
104•gurjeet•2d ago•64 comments

Show HN: AI memory with biological decay (52% recall)

https://github.com/sachitrafa/YourMemory
77•SachitRafa•7h ago•34 comments

Lessons from building multiplayer browsers

https://www.alejandro.pe/writing/sail-muddy-lessons
18•alejandrohacks•13h ago•10 comments

Running Bare-Metal Rust Alongside ESP-IDF on the ESP32-S3's Second Core

https://tingouw.com/blog/embedded/esp32/run_rust_on_app_core
47•MrBuddyCasino•2d ago•10 comments

Notepad++ for Mac – Independent community port

https://notepad-plus-plus-mac.org/
51•jonbaer•2h ago•36 comments

Google banks on AI edge to catch up to cloud rivals Amazon and Microsoft

https://www.ft.com/content/2429f0f0-b685-4747-b425-bf8001a2e94c
81•donsupreme•4h ago•52 comments

Chernobyl wildlife forty years on

https://www.bbc.com/future/article/20260424-chernobyl-wildlife-forty-years-on
63•reconnecting•8h ago•6 comments

An AI agent deleted our production database. The agent's confession is below

https://twitter.com/lifeof_jer/status/2048103471019434248
552•jeremyccrane•12h ago•697 comments

MoQ Boy

https://moq.dev/blog/moq-boy/
47•mmcclure•8h ago•5 comments

Clay PCB Tutorial

https://feministhackerspaces.cargo.site/Clay-PCB-Tutorial
205•j0r0b0•12h ago•126 comments

The Visible Zorker: Zork 1

https://eblong.com/infocom/visi/zork1/
118•PLenz•12h ago•21 comments