Code Monkey home page Code Monkey logo

txiki.js's Introduction

txiki.js — The tiny JavaScript runtime

Build Status

Overview

txikia (basque): small, tiny.

txiki.js is a small and powerful JavaScript runtime. It's built on the shoulders of giants: it uses QuickJS as its JavaScript engine and libuv as the platform layer.

It was formerly named quv.

Features

Browser-like APIs

  • Console API
  • URL & URLSearchParams
  • TextEncoder / TextDecoder APIs
  • EventTarget / Event / CustomEvent
  • XMLHttpRequest & fetch (including AbortController)
  • Performance API
  • Worker API
  • Crypto API (just getRandomValues)
  • WebAssembly (no tables, globals or memory support yet)

Custom features

  • TCP and UDP sockets
  • TTY handles
  • Unix sockets / named pipes
  • Timers
  • Signals
  • File operations
  • Event loop
  • High-resolution time
  • Miscellaneous utility functions
  • Worker threads
  • Child processes
  • DNS (getaddrinfo)
  • WASI (no memory support yet)

See the full API.

Other extras:

  • Import directly from HTTP(S) URLs
  • Import JSON files
  • path module
  • uuid module
  • hashlib module
  • BigFloat and BigDecimal extensions

Supported platforms

  • GNU/Linux
  • macOS
  • Windows (experimental)
  • Other Unixes (please test!)

Building

CMake is necessary.

# Get the code
git clone --recursive https://github.com/saghul/txiki.js --shallow-submodules && cd txiki.js
# Compile it!
make
# Run the REPL
./build/tjs

NOTE: The txiki.js build depends on a number of git submodules (e.g. curl, libuv). If you didn't already clone this repository recursively, make sure you initialize these submodules with git submodule update --init before proceeding to the build.

Thanks

txiki.js stands on shoulders of giants. It wouldn't be what it is today without these libraries:

In addition, txiki.js has these contributors to thank for their help.

Thank you all for making this project possible!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.