Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Cloudflare Quick Tunnels(cloudflare.com ↗)
    44comments
  2. An Empirical Study of Harness Design for Coding Agents(arxiv.org ↗)
    23comments
  3. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    27comments
  4. Show HN: Rickub – The Smartest Git in the Universe(rickub.com ↗)
    2comments
  5. OpenJev(openjev.com ↗)
    191comments
  6. Bend 2 and the Vibe-Coding Trap(liampwll.com ↗)
    191comments
  7. I don't like passkeys(hawksley.dev ↗)
    389comments
  8. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    7comments
  9. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    discuss
  10. GrassLobster: AI Agentic Generation of Parametric Geometry Workflows(miro.vision ↗)
    discuss
  11. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    11comments
  12. Build Faster Feedback Loops Using Qualitative User Research(nseldeib.com ↗)
    discuss
  13. Jemalloc 5.4.0(github.com/jemalloc ↗)
    65comments
  14. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  15. The scourge of x86 emulation(fex-emu.com ↗)
    62comments
  16. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    128comments
  17. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    172comments
  18. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    283comments
  19. ZCode, the GLM coding agent, silently uploads your Git history(tokenstead.ai ↗)
    53comments
  20. BeanShell3 in Development(beanshell.github.io ↗)
    6comments
  21. Qwen 3.8 Omni Flash(qwen.ai ↗)
    106comments
  22. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    557comments
  23. Second Circuit Allows Government to Search Electronic Devices at the Border(knightcolumbia.org ↗)
    26comments
  24. When the fractional part of a float fixes your shader(crocidb.com ↗)
    16comments
  25. How to Write with an LLM(sockpuppet.org ↗)
    174comments
  26. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    57comments
  27. HEIF Heist: image parser RCE exploit(heif-heist.com ↗)
    1comments
  28. Replacing Pull Requests with Delta(zed.dev ↗)
    59comments
  29. I Vibed a Proof of Conway's Conjecture(overreacted.io ↗)
    68comments
  30. New wild cat species discovered – with only one known living member(bbc.com ↗)
    8comments

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.