
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
noct is a tool to build Nocturn projects from the command line.
npm install -g noct
Create a Nocturn project in the current directory
noct init
The app.json file contains configuration data for the project. A basic app.json file will be generated after "noct init" and can be modified directly after.
{
"name": <project name>,
"displayName": <display name, shows up in title tag>,
"start": <main module (first module loaded)>,
"uiVersion": <version of nocturn-ui.js to use>,
"cmlVersion": <version of cml-runtime.js to use>,
"plugins": [{
"name": <plugin name>,
"type": <file type, ie javascript, css>,
"url": <path to plugin, can be a local path or an url>
},
...
],
"modules": [
<module name>,
...
]
// PWA Properties
"includeRuntime": <true (include runtime files locally), false (use cdn url)>,
"includeManifest": <true (include manifest.json file), false (default, don't include)>,
"includeServiceWorker": <true (include serviceworker.js file), false (default, don't include)>,
"themeColor": <color theme for app>,
"icons": [
{
"src": <icon image>,
"type": "image/png",
"sizes": "192x192"
},
{
"src": <icon image>,
"type": "image/png",
"sizes": "512x512"
}
],
"background_color": <loading screen color>,
"display": "standalone",
"cacheList": [
<url to cache in serviceworker.js>
...
]
}
Some properties in the app.json file are used to generate manifest and serviceworker files. These files are necessary to make your app a Progressive Web App (PWA).
Nocturn projects compiles into a single html file. Code in index.html is generated from modules and information from the app.json. The file index.html will include all other resource used by the single page app.
This directory is where the projects cml files are stored. In the project.json file a referenced module name should match a file name in the cml directory.
This directory is where the compiled js files for the project will be placed.
Build the Nocturn project in the current directory.
noct build
Check version of cml noct is building using.
noct build -v
or
noct build --version
Nocturn projects are composed of Modules. You can add or remove modules from the project by editing app.json or by using cli commands.
create a new module with a template
noct create -t Card.cml exampleCard.cml
Templates
add all modules in the cml directory
noct add -all
or
noct add -a
add a specific module from the cml directory, in this case "exampleModule"
noct add exampleModule
remove a specific module from the project, in this case "exampleModule". The module will still be available in the directory, the file will not be deleted.
noct remove exampleModule
remove all modules from the project. All modules in the cml directory will stay available; they will not be deleted.
noct remove -a
FAQs
cli for nocturn, https://nocturn.io
We found that noct demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.