qmetrics.net

Locutus

Tree-shakeable TypeScript standard-library ports from many languages

Locutus screenshot

npm package of individually importable TypeScript functions that reimplement standard-library behavior from PHP, Go, Python, Ruby, and other languages.

Overview

Locutus brings standard-library functions from other programming languages into TypeScript. Each routine is published as its own importable module so bundlers can tree-shake unused code, rather than pulling in a monolithic utility layer.

Hundreds of functions cover namespaces such as PHP strings and arrays, Go time and strings, Python math and itertools, Ruby collections, and additional languages including Perl, Lua, R, Rust, and Haskell. The project ports semantics and behavior while keeping JavaScript-native values at the API boundary, without recreating foreign data structures or runtime models in TypeScript.

Install via npm using deep paths per function, which is recommended for size-sensitive browser builds instead of importing whole category indexes. Optional PHP compatibility treats plain objects as associative arrays when locutus.objectsAsArrays is enabled. Published output targets modern Node and ES2022 module formats; snippets on function pages may need transpilation or polyfills on older browsers.

Locutus is not positioned as a broad drop-in utility framework like lodash; it fits when you need parity with another language’s stdlib call or a single familiar function. Function pages document maturity so adopters can judge fitness before use.

Key features

  • Per-function deep npm imports
  • Ports from many programming languages
  • Tree-shakeable modular layout
  • JavaScript-native API values
  • PHP objects-as-arrays mode
  • Browser and Node consumption
  • MIT-licensed core functions
  • Community-maintained function catalog

Use cases

  • PHP-style string formatting in TypeScript
  • Go or Python stdlib parity in JS
  • Single-function browser bundles
  • Learning cross-language stdlib design
  • Legacy API behavior in new codebases

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

  • Planning and review agents
  • Skills and command library
  • Runtime hooks and memory
JavaScriptCLIDetails →
★ 316.2k⟳ 14 days agoMIT

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

  • Declarative UI rendering
  • Encapsulated stateful components
  • JSX markup beside JavaScript logic
JavaScriptWebDetails →
★ 252.7k⟳ todayMIT

MarkItDown

Python utility converting office and media files to Markdown

MarkItDown converts many file types into Markdown for LLM and text analysis pipelines. It aims to preserve headings, lists, tables, and links rather than perfect human layout.

  • Multi-format file to Markdown conversion
  • Command-line and Python APIs
  • Optional Azure document services
PythonDocker, CLIDetails →
★ 199.7k⟳ yesterdayMIT

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

  • Unified PyTorch model definitions
  • Hugging Face Hub checkpoint loading
  • Pipeline task inference helpers
PythonCLIDetails →
★ 169.6k⟳ todayApache-2.0

Graphify

Codebase knowledge graph skill for AI coding assistants

Graphify maps a project’s code, docs, and media into a queryable local knowledge graph and installs as a skill for assistants such as Cursor and Claude Code.

  • Local tree-sitter AST code parsing
  • Queryable knowledge graph output
  • EXTRACTED and INFERRED edge tags
PythonLinux, macOS, Windows, CLIDetails →
★ 156.9k⟳ todayApache-2.0

Taste Skill

Agent skill for designed company sites and browser QA

Taste Skill packages art direction, asset scripts, and headless browser checks so coding agents produce company websites with consistent layout, imagery, and copy rules.

  • Agent-oriented website build workflow
  • Dealt palettes, type, and hero layouts
  • Licensed photograph and icon resolution
JavaScriptCLIDetails →
★ 125.4k⟳ 7 days agoMIT