npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jpsx

v0.2.19

Published

Just Python Script (JPS) - A Python-like language that compiles to JavaScript

Readme

JPS (Just Python Script)

unnamed (8)

A Python-like language that compiles to JavaScript, designed to integrate seamlessly with any frontend framework.

npm version License: ISC


🚀 Quick Start

Installation

# Install as a library in your project
npm install jpsx

# Or install globally as a CLI tool
npm install -g jpsx

⚡ Standalone File Integration (Recommended)

Import .jps files directly in your code - just like .tsx files!

math.jps

def add(a, b):
    return a + b

class Calculator:
    def __init__(self):
        self.value = 0

App.tsx

import { add, Calculator } from './math.jps';

const sum = add(10, 20);
const calc = new Calculator();

✨ Features

  • 🐍 Python-like syntax that compiles to clean JavaScript
  • Standalone file integration - Import .jps files like .jsx/.tsx files!
  • 🔥 Hot Module Replacement (HMR) - Instant feedback during development
  • Zero-config integration with React, Vue, Svelte, Angular, and more
  • 📦 Multiple output formats: ESM, CommonJS, IIFE, UMD
  • 🔌 Flexible runtime modes: Inline, external, CDN, or custom
  • 🛠️ Build tool plugins for Vite, Webpack, Rollup, esbuild
  • 🌐 Browser-ready: Works without any build step
  • 📝 TypeScript support with auto-generated declarations

📚 Documentation & Examples

Live Documentation Website →

For practical learning, check out the examples/ directory in this repository. It contains ready-to-run projects for:

  • 📜 Scripts (examples/scripts/) - Basic language features
  • ⚛️ React (examples/react-todo-app/) - Full web application
  • Vite/Webpack integration demos

📖 Documentation & Guidelines

1. Language Syntax

JPS supports core Python syntax tailored for the JavaScript ecosystem.

| Feature | JPS Syntax | Compiles to JS | |---------|------------|----------------| | Function | def foo(a): return a | function foo(a) { return a; } | | Class | class User: ... | class User { ... } | | Loop | for i in range(5): ... | for (let i = 0; i < 5; i++) ... | | List Comp | [x*2 for x in nums] | nums.map(x => x * 2) |

2. Runtime Functions

Built-in Python-like functions available globally:

  • print(args)
  • len(obj)
  • range(start, stop, step)
  • sum(iterable)
  • min() / max()
  • sorted(iterable)

3. CLI Usage

# Initialize a new JPS project
jps init my-project
cd my-project

# Run a JPS file directly
jps run main.jps

# Build for production
jps build main.jps --format esm

4. Integration Guide

Vite Plugin

// vite.config.js
import { jpsPlugin } from 'vite-plugin-jpsx';

export default {
  plugins: [jpsPlugin()]
};

Webpack Loader

// webpack.config.js
module.exports = {
  module: {
    rules: [
      { test: /\.jps$/, use: 'jpsx-loader' }
    ]
  }
};

🌟 Support Us

We are live on Product Hunt! If you like JPS, please support us:


📄 License

ISC - See LICENSE

Made with ❤️ by Loaii abdalslam