Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. There's no point at which turning your brain off will work(danluu.com ↗)
    60comments
  2. Cloudflare Quick Tunnels(cloudflare.com ↗)
    129comments
  3. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    6comments
  4. An Empirical Study of Harness Design for Coding Agents(arxiv.org ↗)
    40comments
  5. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    77comments
  6. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    20comments
  7. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    104comments
  8. OpenJev(openjev.com ↗)
    210comments
  9. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    6comments
  10. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    110comments
  11. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    181comments
  12. I don't like passkeys(hawksley.dev ↗)
    541comments
  13. GrassLobster: AI Agentic Generation of Parametric Geometry Workflows(miro.vision ↗)
    3comments
  14. Jemalloc 5.4.0(github.com/jemalloc ↗)
    76comments
  15. US Treasuries Have Become Unappetizing for Foreign Central Banks and Governments(wolfstreet.com ↗)
    64comments
  16. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    23comments
  17. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  18. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    9comments
  19. The scourge of x86 emulation(fex-emu.com ↗)
    68comments
  20. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    3comments
  21. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    176comments
  22. BeanShell3 in Development(beanshell.github.io ↗)
    13comments
  23. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    156comments
  24. Build Faster Feedback Loops Using Qualitative User Research(nseldeib.com ↗)
    1comments
  25. Qwen 3.8 Omni Flash(qwen.ai ↗)
    118comments
  26. Second Circuit Allows Government to Search Electronic Devices at the Border(knightcolumbia.org ↗)
    45comments
  27. How to Write with an LLM(sockpuppet.org ↗)
    194comments
  28. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    61comments
  29. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    646comments
  30. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    3comments

Show HN: SoundCloud Instant

37 pointsby 12y agokaran.github.io
33 comments
12y agoHN ↗

I made this small app last Saturday solely because I wanted to. Any feedback is welcome.

Oh, and the source code is open: https://github.com/karan/scInstant

EDIT: Right now, it's meant to be used only on desktop. I'm starting to get into frontend stuff, so don't really know how to touch optimize the app. Again, suggestions welcome.

12y agoHN ↗

It's loading very fast! Cool project. An "add to playlist" button would be cool I think (unless I'm not seeing it).

I'm not sure if this is your type of thing but if you are looking for more ideas I was very impressed by the juketube angular/polymer demos[0]. It'd be very cool to see those projects ported to soundcloud instead of YouTube.

[0]http://jt.ms/juketube/

12y agoHN ↗

That would need soundcloud auth. I wanted to make a dead simple, click/type and be done app. Thanks though! :)

12y agoHN ↗

This is great. It would be nice to see the next couple of songs that are going to play and maybe a delete button next to them. A Youtube version would also be useful.

12y agoHN ↗

I thought about showing next songs, but I want to keep the UI minimal, and not showing the app keeps a bit of surprise factor in there.

12y agoHN ↗

I like the idea but search on YouTube seems to be so inaccurate I'm not sure if it would work nearly as well.

I'm having trouble thinking of how to improve scInstant as it is--it's so pared down and fast and just works! Great job!

12y agoHN ↗

I'm glad you like it. Feel free to send any PRs. As long as the UI isn't bloated, I'm happy to merge. :)

12y agoHN ↗

Great! I guess it is searching little bit too fast so that using browser's back button showing some other results for each key stroke.

12y agoHN ↗

It only allows me to search once, if I try to search for something else, I have to refresh.

12y agoHN ↗

I also see that your API key is there in clear. I hope no one can do any bad stuff in your name.

To OP: The way to fix this is to have the JS make a request to your own server, have your own server make the request to Soundcloud and proxy it back to you. That way you don't have to put your key in the JS, you can keep it on your server.

12y agoHN ↗

Is there any way where it does not use a server? I really do not want to use a server here.

12y agoHN ↗

Unfortunately not. Since all JS is going to be transferred to the client, if the key is in the JS the client has access to it.

12y agoHN ↗

Well the URLs are provided by SoundCloud and jQuery so there's nothing that I can do (other than hosting it myself).

Yeah I just hope no one misuses it.

Yes.

12y agoHN ↗

Apparently SC doesn't like it and for some reason the app is very slow after dropping the scheme.

12y agoHN ↗

Nice work. I'm personally not a huge fan of autoplay, since there's a ton of stuff on SC and the search results aren't always accurate enough.

Volume control would also be ace. Not sure how easy that would be to implement - now that I think about it, I've never seen it on any of their widgets.

12y agoHN ↗

Done with volume control.

    shift up/down - volume
12y agoHN ↗

Small bug: it reloads the track when I press the volume up / down keys on my keyboard. Using a samsung 7-series notebook.

12y agoHN ↗

Well volume control keys don't have a keyCode (or vary from keyboard to keyboard) so I don't think it can be fixed ATM.

FWIW, I just added keyboard shortcuts for volume control though: `shift up/down - volume`

12y agoHN ↗

SC doesn't mention a hard limit (it's vague). And yes, 200ms.

12y agoHN ↗

i love it but it would be cooler with a full screen UI, there was a soundcloud api hack that would play people's loved/favorited tracks that kind of did that..

12y agoHN ↗

I don't think it would be very hard to do that. I implemented the streaming in <audio> tag, which means I'm free to implement the UI myself.

It's on the "audio" branch of my code.

12y agoHN ↗

Ah nice. Sorry but I don't have so much moneyz.

12y agoHN ↗

Chiming in with shameless me too self promotion...

I have a similar feature on http://tuned.io/ - it's a soundcloud search with autocomplete; you can play any of the search results instantly, etc.

The music makes for good coding background.