{"id":36915340,"url":"https://github.com/hardiesoft/spectastiq","last_synced_at":"2026-01-18T09:54:54.551Z","repository":{"id":196447711,"uuid":"696090231","full_name":"hardiesoft/spectastiq","owner":"hardiesoft","description":"A fast interactive audio spectrogram web component","archived":false,"fork":false,"pushed_at":"2025-05-29T23:09:26.000Z","size":9496,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-30T00:18:50.145Z","etag":null,"topics":["audio-visualizer","birdsong","spectrogram","web-component"],"latest_commit_sha":null,"homepage":"http://hardiesoft.com/spectastiq/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardiesoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-25T04:06:59.000Z","updated_at":"2025-05-29T23:04:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"357eb101-56b6-4d67-b8b7-65694be2fc08","html_url":"https://github.com/hardiesoft/spectastiq","commit_stats":null,"previous_names":["hardiesoft/spectastiq"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/hardiesoft/spectastiq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardiesoft%2Fspectastiq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardiesoft%2Fspectastiq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardiesoft%2Fspectastiq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardiesoft%2Fspectastiq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardiesoft","download_url":"https://codeload.github.com/hardiesoft/spectastiq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardiesoft%2Fspectastiq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-visualizer","birdsong","spectrogram","web-component"],"created_at":"2026-01-12T16:05:08.418Z","updated_at":"2026-01-18T09:54:54.545Z","avatar_url":"https://github.com/hardiesoft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# *Spectastiq* v0.10.2\nAn interactive spectrogram renderer and audio player, optimised for touch devices.\n\n## Usage\n*Spectastiq* is available as a web-component, which means that you can include the javascript file in the HTML \npage where you'd like to use it, and then embed it using a custom HTML tag.\n\n```html\n\u003cscript type=\"module\" src=\"/path/to/spectastiq.js\"\u003e\u003c/script\u003e\n\u003cspectastiq-viewer src=\"/path/to/audio/my-audio-file.mp3\"\u003e\u003c/spectastiq-viewer\u003e\n```\n\nThat's it!  *Spectastiq* will fit itself to the parent HTML element of the `\u003cspectastiq-viewer\u003e` tag.\n\nTry [the examples](https://hardiesoft.com/spectastiq/):\n\n## Advanced integrations\n\nYou can embed *spectastiq* into your application, and extend it (for example, drawing an overlay showing regions of interest in the audio).\n\n### Custom player UI controls\n\nReplace the default audio player controls with your own using the `player-controls` template slot:\n```html\n\u003cscript type=\"module\" src=\"/path/to/spectastiq.js\"\u003e\u003c/script\u003e\n\u003cspectastiq-viewer src=\"/path/to/audio/my-audio-file.mp3\"\u003e\n    \u003cdiv slot=\"player-controls\"\u003e\n      \u003cbutton\u003eMy custom button\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/spectastiq-viewer\u003e\n```\nYou can then write your own javascript to handle the actions your new UI elements should take.\n\n### Events dispatched by *spectastiq*\n\nSee the `spectastiq.d.ts` file for an overview of events dispatched by spectastiq, as well as functions exposed\nfor the purpose of extending spectastiq with your own functionality.\n\n## Roadmap\n- More advanced interpolation of already rendered spectrogram fragments for a smoother interactive experience.\n- Support displaying your spectrograms with a logarithmic scale.\n- VueJS and React wrappers + examples\n- Unload spectastiq from memory when there are many instances of spectastiq running on a page, and an instance is outside the page viewport.\n- Allow other FFT window sizes. (The current default is 2048 samples)\n\n## Known issues\nFor longer audio clips (more than 1 minute), *spectastiq* can run into issues on low-end mobile devices.  \nTo best support longer clips, it's necessary to serve *spectastiq* from a \"secure context\", which means that you need to \nset some headers on the files that your web-server delivers to your users. \nThis enables an advanced JavaScript feature called `SharedArrayBuffer`, which helps *spectastiq* to use all your \ncomputers power to render spectrograms really fast, and also reduces memory usage which seems to otherwise trigger \nbrowser bugs on resource-constrained mobile devices (Chrome Android on a Lenovo Tab M10 with 3GB RAM triggered this).\n\n## Building the Rust-based WASM FFT component\n\nYou don't need to build the WASM FFT processing library to use this component – that's only required if you\nwant to make changes to how the audio chunks are processed into frequency distribution data.\n\nIf you *do* want to make changes:\nThis project was build with Rust 1.84.0\nIf you don't already have a Rust toolchain installed you'll need to do so using [rustup](https://rustup.rs/).\nThen you'll need [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) to package things up.\n\nOnce you've got those requirements installed, you can run `wasm-pack build --target web`, and the wasm and supporting\nfiles will appear in the `./pkg` folder.\n\n### Acknowledgements\n\n*Spectastiq* was made with the help of funding from the [Brian Mason](https://brianmasontrust.org/) scientific \u0026 \ntechnical trust, and from [The Cacophony Project](https://cacophony.org.nz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardiesoft%2Fspectastiq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardiesoft%2Fspectastiq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardiesoft%2Fspectastiq/lists"}