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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sentira-ai/common

v1.8.0

Published

Common functions for Sentira AI

Downloads

18

Readme

🔗 Quick Links


📍 Overview

sentira-common is a codebase that provides a common library for interacting with the Sentira AI platform. It includes functionality for transcribing audio files using the Sentira API. The core purpose of this project is to simplify the process of transcribing audio by providing a straightforward interface to the Sentira AI platform. The value proposition of sentira-common lies in its ability to handle the complexities of audio transcription, allowing developers to easily integrate the Sentira AI platform into their applications.


📦 Features

| | Feature | Description | |----|-------------------|---------------------------------------------------------------| | 🎵️ | Transcription | Transcribe audio files with ⚡️ fast speeds. | | 📄 | Summarization | Summarize any content while retaining key facts. |


📂 Repository Structure

└── sentira-common/
    ├── .github
    │   └── workflows
    │       └── release.yml
    ├── .releaserc
    ├── example.ts
    ├── index.ts
    ├── lib
    │   ├── types.js
    │   └── types.ts
    ├── package-lock.json
    ├── package.json
    ├── sentira_client.ts
    └── tsconfig.json

🧩 Modules

| File | Summary | | --- | --- | | sentira_client.ts | The sentira_client.ts code is a part of the sentira-common repository. It contains a shared API client for Sentira services. The code provides methods for summarizing text, transcribing audio, and creating API keys. It interacts with the SentiraAI API using the provided base URL and API key. The code handles requests, responses, error handling, and logging. | | | example.ts | The example.ts code snippet in the sentira-common repository demonstrates the usage of the SentiraAIClient class. It showcases three critical features: audio transcription, text summarization, and API key creation. Each feature is demonstrated with example inputs and desired outputs. | | index.ts | The code snippet in the index.ts file is responsible for exporting the sentira_client module and the types module from the sentira-common repository. It plays a critical role in providing access to these modules to other parts of the codebase. | | types.ts | The code snippet in lib/types.ts defines the interfaces used in the parent repository's architecture. These interfaces represent the request and response bodies for Transcription and Summary APIs, facilitating speech-to-text and text summarization functionalities. | | release.yml | The code snippet in .github/workflows/release.yml is responsible for automating the release process in the sentira-common repository. It sets up a workflow that runs whenever a new release is created. The workflow executes a series of steps, including building and testing the code, generating release notes, and publishing the release artifacts. |


🚀 Getting Started

Requirements

Ensure you have the following dependencies installed on your system:

  • TypeScript

⚙️ Installation

  1. Clone the sentira-common repository:
git clone https://github.com/Aunali321/sentira-common
  1. Change to the project directory:
cd sentira-common
  1. Install the dependencies:
npm install

🤖 Running sentira-common

Use the following command to run sentira-common:

npm run build && node dist/index.js

🧪 Tests

To execute tests, run:

npm test

🤝 Contributing

Contributions are welcome! Here are several ways you can contribute:

  1. Fork the Repository: Start by forking the project repository to your GitHub account.
  2. Clone Locally: Clone the forked repository to your local machine using a Git client.
    git clone https://github.com/Aunali321/sentira-common
  3. Create a New Branch: Always work on a new branch, giving it a descriptive name.
    git checkout -b new-feature-x
  4. Make Your Changes: Develop and test your changes locally.
  5. Commit Your Changes: Commit with a clear message describing your updates.
    git commit -m 'Implemented new feature x.'
  6. Push to GitHub: Push the changes to your forked repository.
    git push origin new-feature-x
  7. Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.

Once your PR is reviewed and approved, it will be merged into the main branch.