Giter VIP home page Giter VIP 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)

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)

See the full API.

Other extras:

  • Import directly from HTTP(S) URLs
  • 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 && 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.

txiki.js's People

Contributors

saghul avatar thebrokenrail avatar doodlewind avatar bnoordhuis avatar vladimyr avatar lmangani avatar humphd avatar juanarbol avatar stevefan1999-personal avatar

Watchers

James Cloos avatar  avatar

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.