Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Cloudflare Quick Tunnels(cloudflare.com ↗)
    147comments
  2. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    13comments
  3. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    90comments
  4. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    31comments
  5. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    37comments
  6. OpenJev(openjev.com ↗)
    219comments
  7. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    122comments
  8. Show HN: Ax-check.com – Can agents use your product?(ax-check.com ↗)
    2comments
  9. Systemd is a suite of basic building blocks(systemd.io ↗)
    8comments
  10. Grok Voice Transcribe 2.0(x.ai ↗)
    3comments
  11. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    124comments
  12. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    184comments
  13. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    6comments
  14. I don't like passkeys(hawksley.dev ↗)
    586comments
  15. Jemalloc 5.4.0(github.com/jemalloc ↗)
    77comments
  16. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    24comments
  17. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  18. The scourge of x86 emulation(fex-emu.com ↗)
    71comments
  19. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    5comments
  20. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    13comments
  21. GrassLobster: AI Agentic Generation of Parametric Geometry Workflows(miro.vision ↗)
    4comments
  22. BeanShell3 in Development(beanshell.github.io ↗)
    15comments
  23. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    169comments
  24. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    5comments
  25. Replacing Pull Requests with Delta(zed.dev ↗)
    76comments
  26. AI chatbots are becoming experts at changing people's minds(science.org ↗)
    83comments
  27. An empirical study of harness design for coding agents(arxiv.org ↗)
    43comments
  28. Build Faster Feedback Loops Using Qualitative User Research(nseldeib.com ↗)
    2comments
  29. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    62comments
  30. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    675comments

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.