awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
nolanlawson avatar

nolanlawson/optimize-js

0
View on GitHub↗
3,734 stars·100 forks·JavaScript·Apache-2.0·4 viewsnolanlawson.github.io/optimize-js↗

Optimize Js

Optimize-js is a JavaScript parsing optimizer designed to reduce the time browsers spend pre-parsing scripts to improve initial execution speed. It transforms source code to minimize the overhead associated with browser parsing.

The project implements a technique that wraps function calls in parentheses to bypass initial pre-parsing and reduce double-parsing overhead. To maintain the utility of the transformed code, it includes a source map generator that links the optimized output back to the original source.

The toolset also includes performance benchmarking capabilities to measure the exact time a browser takes to parse files, allowing for the quantification of the impact of these optimizations.

Features

  • JavaScript Optimizers and Minifiers - Provides a tool that transforms JavaScript source code to reduce browser pre-parsing overhead and improve execution speed.
  • Source Map Generators - Generates source maps to ensure optimized production scripts can be debugged using the original source code.
  • Bytecode-to-Source Mapping - Generates source maps that link optimized output back to original source lines for debugging.
  • Parsing Optimizations - Utilizes parentheses-based wrapping to increase the efficiency of the browser parsing process.
  • JavaScript Source Transformers - Transforms JavaScript source code through AST manipulation to reduce browser pre-parsing overhead.
  • Parse-Bypass Wrapping - Wraps function calls in parentheses to bypass initial browser pre-parsing and reduce double-parsing overhead.
  • Syntax Tree Transformers - Implements syntax tree transformers to identify and wrap specific function call patterns for optimization.
  • Parse-Speed Benchmarking - Ships a utility for measuring the time a browser takes to parse files to evaluate optimizations.
  • Parse-Time Profilers - Provides a utility for measuring the time browsers spend parsing files to evaluate optimization impact.
  • Performance Benchmarks - Measures the exact time browsers take to parse scripts to validate the impact of optimizations.
  • Browser-Based Execution Timing - Quantifies the actual time spent on parsing by executing optimized code in a real browser environment.

Star history

Star history chart for nolanlawson/optimize-jsStar history chart for nolanlawson/optimize-js

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Optimize Js

Similar open-source projects, ranked by how many features they share with Optimize Js.
  • google/closure-compiler-jsgoogle avatar

    google/closure-compiler-js

    1,834View on GitHub↗

    Closure Compiler is a JavaScript build utility designed to transform, optimize, and validate source code for production environments. It functions as a minifier and transpiler, converting modern ECMAScript syntax into older, widely compatible versions to ensure reliable execution across diverse browsers. The tool distinguishes itself through a multi-pass optimization pipeline that performs complex refactoring, such as constant folding, function inlining, and variable renaming. It utilizes a static type inference engine to detect potential runtime errors and enforce type safety without requiri

    JavaScript
    View on GitHub↗1,834
  • google/closure-compilergoogle avatar

    google/closure-compiler

    7,663View on GitHub↗

    This project is a JavaScript optimizer, minifier, module bundler, transpiler, and static analysis tool. It provides a compilation pipeline designed to shrink file sizes and improve runtime performance. The system utilizes a multi-pass compilation process to perform dead code elimination, global name mangling, and static type inference. It identifies unreachable functions and unused variables to reduce the final output size and detects potential runtime errors without executing the code. The tool manages assets through dependency resolution, code chunking, and bundle management. It ensures co

    JavaScript
    View on GitHub↗7,663
  • babel/minifybabel avatar

    babel/minify

    4,376View on GitHub↗

    This project is an AST-based code optimizer and compressor for modern ECMAScript, JSX, and TypeScript source code. It functions as a JavaScript minifier that uses the Babel toolchain to reduce file size by removing unnecessary characters and whitespace while preserving program logic. The tool is distinguished by its ability to process experimental language proposals and transform modern syntax into browser-compatible versions. It provides specialized handling for React JSX transpilation and strips type annotations from TypeScript files to produce compressed production assets. The system cove

    JavaScript
    View on GitHub↗4,376
  • benjamn/recastbenjamn avatar

    benjamn/recast

    5,246View on GitHub↗

    Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into abstract syntax trees that can be modified and then printed back into source code. The project focuses on formatting-preserving transformations, storing original whitespace and indentation metadata within syntax tree nodes to reconstruct code without losing its original layout. It also generates character-level source maps to maintain precise correspondences between original input and transformed output. The toolkit includes utilities for syntax tree manipulation using a visito

    TypeScript
    View on GitHub↗5,246
See all 30 alternatives to Optimize Js→

Frequently asked questions

What does nolanlawson/optimize-js do?

Optimize-js is a JavaScript parsing optimizer designed to reduce the time browsers spend pre-parsing scripts to improve initial execution speed. It transforms source code to minimize the overhead associated with browser parsing.

What are the main features of nolanlawson/optimize-js?

The main features of nolanlawson/optimize-js are: JavaScript Optimizers and Minifiers, Source Map Generators, Bytecode-to-Source Mapping, Parsing Optimizations, JavaScript Source Transformers, Parse-Bypass Wrapping, Syntax Tree Transformers, Parse-Speed Benchmarking.

What are some open-source alternatives to nolanlawson/optimize-js?

Open-source alternatives to nolanlawson/optimize-js include: google/closure-compiler-js — Closure Compiler is a JavaScript build utility designed to transform, optimize, and validate source code for… google/closure-compiler — This project is a JavaScript optimizer, minifier, module bundler, transpiler, and static analysis tool. It provides a… babel/minify — This project is an AST-based code optimizer and compressor for modern ECMAScript, JSX, and TypeScript source code. It… react/metro — Metro is a JavaScript bundler designed for React Native environments. It functions as a system for resolving… benjamn/recast — Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into… konsoletyper/teavm — TeaVM is a Java bytecode transpiler and browser-based JVM runtime that converts compiled Java class files into…