npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@amai-io/amai-sdk

v0.0.0

Published

Amai Interaction Software Development Kit

Downloads

4

Readme

WIP: Not for using at this moment.

Amai text to speech SDK

What can I do with that?

  • Easily teach your applications to speak with a human voice in different emotional colors
  • Give your users an unforgettable voice UX with adaptive audio player
  • Add TTS functionality to your web service in 5 lines of code

Installation

yarn add amai-sdk

Browser environment

import sdk from 'amai-sdk'

// Create stream
const stream = await sdk.synthesis.createStream('streamName')

// Add stream to player
const player = sdk.player.create(stream)

// Play live stream
player.play()

// Adding text for synthesis and adding the result to the stream,
// as a result, the synthesized words "I love amai!",
// will be played in the audio player in your browser!
stream.addText('I love amai!')

Authorization

In order to implement a more free limit, authorization is required. If you have exceeded the limit, you will receive an audio message substituting the synthesis result and detailed console.log with ways to solve the problem.

Free limit - 10 000 symbols.

import sdk from 'amai-sdk'

sdk.key = 'YourApiKey'
// Now you can make authorized requests.

or you can authorize at any nested import

import { player } from 'amai-sdk'

player.key = 'YourApiKey'
// Now you can make authorized requests.

Speech

Player

Utils

Stream example

import stream from 'amai-sdk/speech/stream'

stream.api = 'YourApiKey'

const stream = await sdk.synthesis.createStream('streamName')
// stream === { id: number: 1, name: 'streamName', url: 'https://amai-generate.s3.eu-central-1.amazonaws.com/c0fc0b05c29c2904.mp3' }

// Return stream json metadata or error
const stream: Stream = await stream.getOrCreate('name')

stream.addText('I love amai.')

The SDK can be built into the client and server code, permission and access control is based on metadata included in the jwt key. SDK is a wrapper over HTTP calls to the REST backend, that makes it easy to work with your own logic.

  • Speech

    • Synthesis
    • Recognition(Planned)
  • Text

    • Translation(Planned)
  • OCR

    • Page(Planned)
    • Document(Planned)
  • Player(WIP)

  • Utils

Advanced example

NPM scripts

  • npm t: Run test suite
  • npm start: Run npm run build in watch mode
  • npm run test:watch: Run test suite in interactive watch mode
  • npm run test:prod: Run linting and generate coverage
  • npm run build: Generate bundles and typings, create docs
  • npm run lint: Lints code
  • npm run commit: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)

Todo test cases

  • Can add text only to self streams

Long term todo

  • Change demo app to player example
  • Move to github standalone repo
  • Migrate from travis CI to gitlab CI