{"id":26193294,"url":"https://github.com/nstechbytes/smart-calc","last_synced_at":"2026-04-29T12:36:52.849Z","repository":{"id":277692675,"uuid":"933220137","full_name":"NSTechBytes/smart-calc","owner":"NSTechBytes","description":"A VS Code extension providing inline, scientific, and programmer calculator functionalities.","archived":false,"fork":false,"pushed_at":"2025-02-15T13:01:06.000Z","size":2426,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T01:27:26.479Z","etag":null,"topics":["calculator","calculator-javascript","extension","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NSTechBytes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2025-02-15T12:53:10.000Z","updated_at":"2025-04-23T11:43:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c8bbce7-4ef8-4516-84a5-f8b7adae07db","html_url":"https://github.com/NSTechBytes/smart-calc","commit_stats":null,"previous_names":["nstechbytes/smart-calc"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NSTechBytes/smart-calc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fsmart-calc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fsmart-calc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fsmart-calc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fsmart-calc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSTechBytes","download_url":"https://codeload.github.com/NSTechBytes/smart-calc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2Fsmart-calc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32426586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T12:24:25.982Z","status":"ssl_error","status_checked_at":"2026-04-29T12:24:24.439Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["calculator","calculator-javascript","extension","vscode","vscode-extension"],"created_at":"2025-03-12T01:38:58.279Z","updated_at":"2026-04-29T12:36:52.843Z","avatar_url":"https://github.com/NSTechBytes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SmartCalc VS Code Extension\n\n**SmartCalc** is a Visual Studio Code extension that provides a powerful inline calculator with support for arithmetic, scientific, and programmer calculations. With a modern, responsive UI and a host of features, SmartCalc is designed to make quick calculations and complex evaluations accessible directly within VS Code.\n\n## Features\n\n- **Inline Calculator:**  \n  Quickly evaluate expressions via the command palette or using a dedicated keybinding.\n\n- **Webview Calculator Panel:**  \n  A full-featured calculator interface with:\n  - **Basic Operations:** Addition, subtraction, multiplication, and division.\n  - **Memory Functions:** \n    - **MC (Memory Clear)**\n    - **MR (Memory Recall)**\n    - **M+ (Memory Add)**\n    - **M- (Memory Subtract)**\n  - **Constants:** Buttons for π and e, plus an **ANS** button to recall the last result.\n  - **Advanced Scientific Functions:**  \n    Toggle **Advanced Mode** to reveal extra functions like sin, cos, tan, square root (√), logarithms (log, ln), exponentiation (^), and more.\n  - **Calculation History:**  \n    Your previous calculations are saved (persisted via localStorage) and can be reloaded by clicking an entry in the history panel.\n  - **Theme Support:**  \n    Seamlessly toggle between GitHub Light and GitHub Dark themes. The selected theme is remembered across sessions.\n  - **Unified Header Controls:**  \n    A modern header includes:\n    - Theme toggle\n    - Advanced Mode toggle\n    - History panel toggle\n    - Copy-to-clipboard button\n    - Help button (shows detailed usage instructions)\n    - Mode selection dropdown (choose Arithmetic, Scientific, or Programmer modes) with custom styling that adapts to the active theme\n  - **Keyboard Support:**  \n    Enter numbers and operators directly with your keyboard, with support for Backspace, Enter (to evaluate), and Escape (to clear).\n\n- **Copy to Clipboard:**  \n  Quickly copy the current result with one click.\n\n- **Help Modal:**  \n  Displays detailed usage instructions and feature descriptions.\n\n- **Responsive Design:**  \n  The interface is optimized for both regular and small screens.\n\n## Installation\n\n1. **Clone the Repository:**\n\n   ```bash\n   git clone https://github.com/NSTechBytes/smart-calc.git\n   ```\n\n2. **Install Dependencies:**\n\n   Navigate to the project folder and run:\n   \n   ```bash\n   npm install\n   ```\n\n3. **Launch the Extension:**\n\n   Open the project in Visual Studio Code and press `F5` to launch a new Extension Development Host with SmartCalc loaded.\n\n## Package Configuration Details\n\n- **Name:** `smartcalc`\n- **Version:** `0.0.1`\n- **Engines:** VS Code `^1.60.0`\n- **Activation Events:**\n  - `onStartupFinished`\n  - `onCommand:smartcalc.calculate`\n  - `onCommand:smartcalc.openCalculator`\n- **Commands:**\n  - `smartcalc.calculate` – \"SmartCalc: Calculate Expression\"\n  - `smartcalc.openCalculator` – \"SmartCalc: Open Calculator Panel\"\n- **Keybindings:**\n  - `ctrl+alt+c` for inline calculation\n  - `ctrl+alt+shift+c` for opening the calculator panel\n- **Dependencies:** Uses [mathjs](https://mathjs.org/) version `^11.12.0` for expression evaluation.\n\n## How to Use\n\n### Inline Calculator\n\n- **Quick Calculation:**  \n  Open the command palette by pressing `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (macOS), then type and select **SmartCalc: Calculate Expression**. Enter your expression and hit Enter to see the result.\n\n### Webview Calculator Panel\n\n- **Opening the Calculator Panel:**  \n  You can open the full calculator panel in several ways:\n  - Via the command palette by selecting **SmartCalc: Open Calculator Panel**.\n  - Using the keyboard shortcut: `Ctrl+Alt+Shift+C`.\n  - Clicking the provided status bar item (if configured).\n\n- **Using the Calculator Interface:**  \n  In the calculator panel, you can:\n  - **Enter Expressions:**  \n    Click on-screen buttons or type directly using your keyboard.\n  - **Switch Modes:**  \n    - Click **Advanced Mode** to toggle extra scientific functions.\n    - Use the **Mode Dropdown** to select between Arithmetic, Scientific, or Programmer modes.\n  - **Memory Functions:**  \n    Use the **MC**, **MR**, **M+**, and **M-** buttons for memory operations.\n  - **Constants \u0026 ANS:**  \n    Click the **π**, **e**, or **ANS** buttons to insert these values.\n  - **History:**  \n    Click **History** to toggle the history panel. Click on any previous calculation to load it, or use the **Clear** button to reset the history.\n  - **Theme Toggle:**  \n    Click **Switch Theme** to toggle between GitHub Light and GitHub Dark themes. Your choice is saved for future sessions.\n  - **Copy:**  \n    Click **Copy** to copy the current result to your clipboard.\n  - **Help:**  \n    Click **Help** to open a modal with detailed usage instructions.\n\n### Keyboard Shortcuts\n\n- **Typing:**  \n  Enter numbers and operators directly via your keyboard.\n- **Editing:**  \n  - **Backspace:** Deletes the last character.\n  - **Escape:** Clears the current expression.\n- **Evaluation:**  \n  Press **Enter** to evaluate your expression.\n\n## Contributing\n\nContributions, issues, and feature requests are welcome!  \nFeel free to check the [issues](https://github.com/NSTechBytes/smart-calc/issues) or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgements\n\n- Built using the [VS Code Extension API](https://code.visualstudio.com/api).\n- Utilizes [mathjs](https://mathjs.org/) for evaluating expressions.\n- Inspired by community-driven projects and modern UI/UX design principles.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Fsmart-calc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstechbytes%2Fsmart-calc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Fsmart-calc/lists"}