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

@kwruntime/core

v2.0.23

Published

Runtime for typescript/civet, with URL imports, NPM imports, GITHUB imports, GITLAB imports and more. The fun of deno, inside node.js + civet language.

Downloads

57

Readme

kwruntime/core (2.x)

Major update for this project. The entire process of importing URLs, files, and other languages has been redesigned.

Features of kwruntime/core

  • Allows importing URLs (in the style of Deno)
  • Allows importing npm packages directly at runtime, even for ESM packages
  • Built-in support for TypeScript and Civet

Getting started

For installation instructions, click here: INSTALL


kwruntime /path/to/file.civet

Within node.js

const {kwruntime} = require("@kwruntime/core")

main()
async function main(){
	const axios = await kwruntime.import("npm:[email protected]")
	const response = await axios("https://ipinfo.io")
	console.info("Response:", response.data)
}

or setting the execution to a file (similar result to how it would be executed in the terminal):

const {kwruntime} = require("@kwruntime/core")
// execute the file server.civet
kwruntime.main([process.argv[1], __dirname + "/server.civet"])

Typescript and civet support


interface Person {
  name: string;
  age: number;
}

function greet(person: Person): string {
  return "Hello, " + person.name + "!";
}

const alice: Person = {
  name: "Alice",
  age: 36
};

console.log(greet(alice));

You can also write in Civet:

interface Person
	name: string
	age: number

function greet(person: Person): string
	return "Hello, " + person.name + "!"

alice: Person := 
	name: "Alice"
	age: 36
	
console.log greet alice

Output:

kwruntime test.civet
Hello, Alice!

import from NPM packages, no need to install

Example: server.civet using express

express from "npm:[email protected]"

app := express()
app.get "/", (req, res): void =>
	res.send "Welcome to the kwruntime!"
app.listen 8000
console.info "Server active"

And test:

curl http://127.0.0.1:8080
Welcome to the kwruntime!

import from URL

express from "https://esm.sh/[email protected]"

app := express()
app.get "/", (req, res): void =>
	res.send "Welcome to the kwruntime!"
app.listen 8000
console.info "Server active"

WARNING: Importing from esm.sh is a bit slow at the moment. It is recommended to import using npm as in the previous example.

Si quiere ver el progreso de la compilación de archivos typescript/civet, ajuste la variable de entorno DEBUG=1

DEBUG=1 kwruntime /path/to/file

And test:

curl http://127.0.0.1:8080
Welcome to the kwruntime!