Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
@xpr-lang

xpr-lang

XPR — Cross-Language Expression Language

A sandboxed expression language with JS/Python-familiar syntax, designed for data pipeline transforms. Write once, evaluate identically in JavaScript, Python, and Go.

// Filter and transform data with familiar syntax
items.filter(x => x.price > 50).map(x => x.name)

// Let bindings for reusable values
let threshold = 100; items.filter(x => x.total > threshold)

// Spread, pipe, optional chaining, and more
[...baseItems, ...newItems] |> filter(x => x?.category == "active")

Runtimes

Runtime Package CI
JavaScript/TypeScript @xpr-lang/xpr CI
Python xpr-lang CI
Go github.com/xpr-lang/xpr-go CI

Resources

Key Features

  • Safe by design — No I/O, no loops, no side effects. Pure expressions only.
  • Cross-runtime — Identical results in JS, Python, and Go.
  • Familiar syntax — Arrow functions, optional chaining, template literals, pipe operator.
  • v0.5 — Math functions, type predicates, destructuring, regex literals, 60+ built-in methods.

Popular repositories Loading

  1. xpr xpr Public

    XPR Language Specification and Conformance Tests

  2. xpr-js xpr-js Public

    XPR Expression Language - JavaScript/TypeScript Runtime

    TypeScript

  3. xpr-python xpr-python Public

    XPR Expression Language - Python Runtime

    Python

  4. xpr-go xpr-go Public

    XPR Expression Language - Go Runtime

    Go

  5. xpr-docs xpr-docs Public

    XPR Language Documentation

    Vue

  6. xpr-playground xpr-playground Public

    XPR Expression Language Playground

    TypeScript

Repositories

Loading
Type
Select type
Language
Select language
Sort
Select order
Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…

Morty Proxy This is a proxified and sanitized view of the page, visit original site.