
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
@mercuryworkshop/alicejs
Advanced tools
dreamland.js is a reactive JSX-based rendering library with no virtual dom
React is great, but the API is unnecesarily complex and bloated. AliceJS lets you write code where what you see is what you get, no trickery.
Here's a simple counter app
function App() {
this.counter = 0;
return (
<div>
<button on:click={() => this.counter++} >Click me!</button>
<p>
{use(this.counter)}
</p>
</div>
);
}
window.addEventListener("load", () => {
document.body.appendChild(<App/>);
});
Compare that to the equivalent code in react:
import { React, useState } from 'react'
function App() {
const [counter, setCounter] = useState(0);
const increase = () => {
setCounter(count => count + 1);
};
return (
<div>
<button onClick={increase}>Click me!</button>
<p>
Value: {counter}
</p>
</div>
);
}
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
);
AliceJS provides a simple and intuitive API at a low cost (~8kb, smaller than preact)
To get started with AliceJS, add this to the compileroptions of your tsconfig.json
"jsx":"react",
"jsxFactory":"h",
"jsxFragmentFactory":"YOU_CANT_USE_FRAGMENTS",
"types": ["@mercuryworkshop/alicejs"],
and run npm install @mercuryworkshop/alicejs
If you prefer using modules and are using a bundler, simply import "@mercuryworkshop/alicejs";
into at least one file you're using.
If you don't like using modules, just add <script src="://unpkg.com/@mercuryworkshop/alicejs"></script>
to your html, and you can use AliceJS as normal.
AliceJS can even be used without a build step, here's the counter example in plain JS
function App() {
this.counter = 0;
return html`
<div>
<button on:click=${() => this.counter++}>Click me!</button>
<p>
${use(this.counter)}
</p>
</div>
`;
}
window.addEventListener("load", () => {
document.body.appendChild(h(App));
});
See the examples/ directory for more.
FAQs
A utilitarian HTML rendering library
The npm package @mercuryworkshop/alicejs receives a total of 0 weekly downloads. As such, @mercuryworkshop/alicejs popularity was classified as not popular.
We found that @mercuryworkshop/alicejs 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.