
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
A lightweight CMS loading and saving its data from/to a json file
npm install -g cms-json
You can give cms-json a shot in the playground. It runs the CMS with a default JSON and Schema files. The Save functionality is disabled, but you can export your work via the 'Export' button.
cms-json
Then open your browser at:
http://localhost:3000
In a small IT company, the question of how and by whom your website can be updated is a recurrent one.
I have explored many solutions, from pure HTML sites controlled by the dev team, using fancy web frameworks, to sites generated by the marketing/product team using pure wysiwyg tools like Adobe Muse, not to mention heavy stuff like Wordpress or Drupal.
I finally came up with that very simple feature set:
Although tons of CMS products exist on the market, I didn't find any one fulfilling the constraints above.
Usage: cms-json {OPTIONS}
Standard Options:
--schema, -s JSON schema file.
Default is data/schema.json.
--data, -d JSON data file.
Default is data/data.json.
--port, -p Server port.
Default is 3000.
v0.1.1
v0.1.3
*
Run an Express server embedding a simple UI for editing the content of the given dataFile.
Kind: global function
Returns: *
- The express app
Param | Type | Description |
---|---|---|
[options] | Object | |
[options.dataFile] | Object | A JSON file with the content. This parameter is mandatory. The content authored from the web site will be saved with that path name. The structure of this JSON file must match the model. See an example here: https://github.com/amelki/cms-json/blob/master/default/data.json |
[options.modelFile] | Object | A JSON schema file representing the model to support/ease authoring via the UI. This parameter is mandatory. See an example here: https://github.com/amelki/cms-json/blob/master/default/schema.json |
[options.port] | Object | The server port. 3000 by default |
FAQs
A headless CMS loading and saving its data from/to a json file
The npm package cms-json receives a total of 3 weekly downloads. As such, cms-json popularity was classified as not popular.
We found that cms-json 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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.