This repository contains various single-page applications (SPAs) designed for specific utility tasks. Each application is a lightweight, self-contained tool implemented using HTML, CSS, and JavaScript.
File: text_stats_analyzer.html
The Text Stats Analyzer is a utility tool that allows users to analyze textual data. It provides the following features:
- Counts the number of characters in the input text.
- Calculates the number of lines in the input text.
- Estimates the number of tokens (words) based on whitespace separation.
Usage:
- Open the
text_stats_analyzer.html
file in your web browser. - Enter or paste the text you want to analyze in the text area.
- Click the "Analyze Text Stats" button to display the analysis results, including the number of characters, lines, and tokens.
Dependencies: None. This is a pure HTML and JavaScript-based application.
File: tkps_simulator.html
The Tokens Per Second (tkps) Simulator is a performance simulation tool for understanding token throughput in natural language processing (NLP) models. It allows users to:
- Input a desired tokens-per-second (tkps) rate.
- Select a predefined corpus (e.g., "Lorem Ipsum" or "A Tale of Two Cities").
- Simulate the token generation process and visualize the output.
Usage:
- Open the
tkps_simulator.html
file in your web browser. - Specify the tkps value using the input field.
- Choose a corpus from the dropdown menu.
- Click the "Prompt" button to simulate token generation, displayed in the output text area.
Dependencies:
- Bootstrap CSS for styling (loaded via CDN).
To run these applications:
- Clone or download this repository.
- Open the desired
.html
file in any modern web browser.
Contributions to enhance or extend the functionality of these SPAs are welcome! Please feel free to fork this repository, make changes, and submit a pull request.
This project is licensed under the MIT License.