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

nolangjs

v1.1.13

Published

Nolang for javascript

Downloads

48

Readme

What is Nolang

Nolang is a programming language or a framework with JSON syntax. In Nolang All things are JSON and code is similar data. A programmer only needs to Define the entities, when programs with Nolang. Nolang is not an object-oriented language, but it is an Entity-oriented language.

Usage of Nolang

Nolang is very suitable for creating Back-End, RESTful services, Micro-services and even for Front-End. A fullstack application can be implemented with Nolang.

Website

The official website of Nolang is https://nolang.org that includes documents.

Syntax

Syntax of Nolang is JSON only. For to be more easy it is possible to write with JSON5.

Describing entities

In NoLang, Entities are defined with JSON Schema plus some specific keywords added by NoLang.

The schema of an entity in its simplest format can be like this:

{
	"$id": "entity-schema-id",
	"properties": {
		"FieldName1": {
			"type": "string"
		},
		"FieldName2": {
			"type": "number"
		}
	}
}

Manipulating data in entities

When we want to ask from a NoLang program to do something, we must use NoLang Scripts.

{
	"$$schema": "entity-schema-id",
	"$$header": {
		"action": "C"
	},
	"FieldName1": "Hello",
	"FieldName2": 25
}

To connect and send a Script to NoLang program, we must use NoLang Endpoints which is described next.

Nolang Application

Creating application with Nolang is very easy.

Structure of a NoLang app

  • In every NoLang app there are some entities.
  • It must be defined the entities' schemas in config file or in separate files.
  • If this app stores data of entities the storage configuration must be defined in any schema or config file.
  • It is necessary to define one or more endpoints that this app listens to.
  • If this app needs to connect to other NoLang apps it can be defined in microservice configuration.

Application config file

To create a NoLang application, we need to have NodeJS installed. then in a directory for application there is the config file. Config file must be in JSON or JSON5 format and can have any name, its default name is app.json or app.json5

{
	"name": "sample app",
	"schemas": [
		{
			"$id": "entity-schema-id",
			"properties": {
				"FieldName1": {
					"type": "string"
				},
				"FieldName2": {
					"type": "number"
				}
			}
		}
	],
	"endpoints": [
		{
			"type": "http",
			"port": 80,
			"routes": [
				{
					"path": "/",
					"type": "html",
					"method": "post"
				}
			]
		}
	]
}

Run Nolang app

After installing nolangjs package, Nolang cli can be used to run a Nolang application.

npm i nolangjs -g
nolang /path/to/dir app.json

Documentation

Refer to Nolang website by address https://www.nolang.org.

Contact us

You can connect us with info[@]nolang.org.