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 🙏

© 2024 – Pkg Stats / Ryan Hefner

luna-park

v1.9.0

Published

Luna Park editor integration.

Downloads

24

Readme

image

Luna Park - Visual scripting editor

Luna Park is a visual scripting editor for the web. Faster and easier than code, more flexible and performant than no-code, visual scripting makes software development accessible to anyone.

This package allows you to integrate and customize the editor in your own platform. It will let your users build custom logic using native nodes, or custom one that you can easily build.

screen

Demo

You can try out the editor on the Luna Park website. If you want to learn how to use visual scripting, you can take up the Luna Park challenge, a series of puzzle that will teach you the basics in a gamified way.

If you want to integrate the Luna Park editor into your platform, here's a GitHub repository implementing the editor: https://github.com/lunapark/demo

Getting started

Install the Luna Park editor:

> pnpm install luna-park

Install nodes library you want to use:

> pnpm install @luna-park/lib-standard @luna-park/lib-string @luna-park/lib-math

Available official libraries:lib-standard,lib-array,lib-date,lib-dom,lib-json,lib-math,lib-regex,lib-string,lib-url.

Setting up the editor

Here's a snippet to use the visual scripting editor:

import { LpLogicEditor, loadApplication, loadNodeLib, LpEditorConsole } from "luna-park";

// This is the ID of your editor, in case you want use several editors in the same page.
const editorId = "myCustomEditor";

loadApplication();
// The standalone argument is needed when the editor is used as a playground
const editor = new LpLogicEditor({ editorId, standalone: true });

// Append the editor to a container
document.querySelector("#editor").append(editor);

Load node libraries

You'll likely need to load some node libraries for the editor to be useful. You need to load them before creating the new LpLogicEditor using this function:

import { LogicNodes as LogicNodesStandard } from "@luna-park/lib-standard";
import { LogicNodes as LogicNodesString } from "@luna-park/lib-string";

loadNodeLib(editorId, LogicNodesStandard);
loadNodeLib(editorId, LogicNodesString);

Theme customization

If you want to customize the theme to match your brand color, you can use the lp-theme HTML element wherever you want in your app. You can specify a primary color and a background color, then all the colors will be automatically generated.

<lp-theme primary="#ffff00" tint="#000000" />

Documentation

If you want to create custom JS nodes, compile logics to JS or execute the logic from a JS context, please refer to the Luna Park documentation available here: https://luna-park.app/documentation

You can also check this example GitHub repository source:

Support

Luna Park is in active development. For now, you can get support on the official Discord server.