
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
@times-stories/transcript-page
Advanced tools
The transcript page for the
@times-storiessuite of packages
$ yarn add @times-stories/transcript-page
This component allows you to render an auto-playing (muted by default) audio player with scrolling transcript words.
You must provide both the audio source, and the transcribed words (with start
time, duration, and the word itself – see below for an example). Services such
as Trint can provide data in a similar format to this. You
can find a full example in stories/fixtures/words.js.
The showMuteOnboarding and onMuteOnboardingClose props are left for you to
determine the logic. You may choose to store a flag in localstorage so the
unmute logic is not shown in the future, or you may choose to show it on the
first slide. By default, the template will not close the tooltip when dismissed
unless you implement onMuteOnboardingClose.
import Story from "@times-stories/story";
import Page from "@times-stories/page";
import TranscriptPage from "@times-stories/transcript-page";
const backgroundImage = {
src: "url/to/image",
focusPoint: {
x: 50,
y: 50
}
};
const words = [
{ start: 700, duration: 15, word: "Hello" },
{ start: 715, duration: 20, word: "world" }
];
class MyStory extends React.Component {
state = {
showOnboarding: true
};
toggleOnboarding = () => {
this.setState(({ showOnboarding }) => ({
showOnboarding: !showOnboarding
}));
};
render() {
const { showOnboarding } = this.state;
return (
<Story>
<Page>
{props => (
<TranscriptPage
{...props}
source="/path/to/audio/file.mp3"
words={words}
backgroundImage={{
src: backgroundImage,
focusPoint: {
x: 50,
y: 50
}
}}
showMuteOnboarding={showOnboarding}
onMuteOnboardingClose={this.toggleOnboarding}
/>
)}
</Page>
</Story>
);
}
}
FAQs
> The transcript page for the `@times-stories` suite of packages
The npm package @times-stories/transcript-page receives a total of 0 weekly downloads. As such, @times-stories/transcript-page popularity was classified as not popular.
We found that @times-stories/transcript-page demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.