Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
npm install remake -g
remake create <project-dir>
cd <project-dir>
npm run dev
An example of editing, adding, and removing items with the starter todos project.
Remake is everything you need to create a web app in record time, with very little overhead.
Remake provides all the tools you need to:
Out of the box, Remake comes with:
If you know how to build a website with HTML and CSS — and know the basics of Handlebars templating — you can build a web app with Remake!
Remake is based around a simple idea:
What if every HTML webpage knew how to save, edit, and add new items to itself?
data-o
for attributes that output data and starting with data-i
for attributes that input datadata-i-editable
), you can make the data on an element editable and have it auto-save to the databasedata-i-new
), you can easily render back-end partial templates and add them to the pageHTML is formatted like a tree 🌳 in that it has a root node and every other element on a page branches off of that root node.
So, what if we were able to transform HTML into an object that we could save to a database just by looking at its natural tree structure?
We can do this in Remake by tagging elements with data. Remake will parse and save this data automatically whenever it changes.
Here's how it works in Remake:
<div data-o-type="object"></div>
This element has been tagged as an Object
, which means Remake will convert it into this:
{}
Let's go through a few more examples:
<div data-o-type="object" data-o-key-name="David"></div>
This will be converted into an object with a key/value pair inside of it:
{name: "David"}
The first attribute (data-o-type
) tells us which data type to expect. It can be set to only object
or list
.
The second attribute (data-o-key-name
) tells us that this object
has a key of name
(the key is always the part that comes after data-o-key-
). And we look at the attribute's value to get the key's value.
<div data-o-type="object">
<div data-o-type="object" data-o-key="person" data-o-key-name="David">
</div>
</div>
This example is a bit more advanced, as it relies on nested elements to create nested data:
{person: {name: "David"}}
In this example, we use the data-o-key
attribute — with nothing after it — to create an object inside of an object. The value of data-o-key
tells us which key the nested object will be.
Let's look at the only other data type that Remake supports: Arrays
. In Remake, we use the term list
.
How do we create a list in Remake?
<div data-o-type="list"></div>
This is a pretty simple example and will compile into just a simple, empty array:
[]
How would we go about adding objects to this array? We'd just nest them of course!
<div data-o-type="list">
<div data-o-type="object" data-o-key-name="David">
<div data-o-type="object" data-o-key-name="John">
<div data-o-type="object" data-o-key-name="Mary">
</div>
When Remake looks at this, all it sees is:
[
{name: "David"},
{name: "John"},
{name: "Mary"}
]
Sign up for the newsletter to get updates as this framework develops
FAQs
Generate a full-stack Remake web app
We found that remake demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.