
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
callbag-jsx
Advanced tools
Callbags + JSX. No virtual DOM, compile-time invalidation, or other magic tricks.
đ Read the Docs
Sample Todolist app:
import { makeRenderer, List } from 'callbag-jsx';
import { state } from 'callbag-state';
const renderer = makeRenderer();
const todos = state([{title: 'Do this'}, {title: 'Do that'}]);
const next = state('');
const add = () => {
todos.set(todos.get().concat([{title: next.get()}]));
next.set('');
};
renderer.render(
<>
<h1>Todos</h1>
<ol>
<List of={todos} each={todo => <li>{todo.sub('title')}</li>}/>
</ol>
<input type='text' _state={next} placeholder='What should be done?'/>
<button onclick={add}>Add</button>
</>
).on(document.body);
đ Long Answer Here
Main purpose of callbag-jsx is to provide full control over DOM while being as convenient as tools like React.
In other words, unlike other frameworks and tools, callbag-jsx DOES NOT infer when and how to update the DOM,
it gives you the tools to conveniently outline that.
As a result:
đ Comparison with Other Frameworks
Easiest way is to use one of these templates:
You can also just install the package:
npm i callbag-jsx
and use the following jsx pragmas in your .jsx/.tsx files:
/** @jsx renderer.create */
/** @jsxFrag renderer.fragment */
đ Read the docs for more info/options
import { makeRenderer } from 'callbag-jsx';
const renderer = makeRenderer();
renderer.render(<div>Hellow World!</div>).on(document.body);
import expr from 'callbag-expr';
import state from 'callbag-state';
const count = state(0);
const add = () => count.set(count.get() + 1);
const color = expr($ => $(count) % 2 ? 'red' : 'green');
renderer.render(
<div onclick={add} style={{ color }}>
You have clicked {count} times!
</div>
).on(document.body);
đ Read the Docs
There are no contribution guidelines or issue templates currently, so just be nice (and also note that this is REALLY early stage). Useful commands for development / testing:
git clone https://github.com/loreanvictor/callbag-jsx.git
npm i # --> install dependencies
npm start # --> run `samples/index.tsx` on `localhost:3000`
npm test # --> run all tests
npm run cov:view # --> run tests and display the code coverage report
npm i -g @codedoc/cli # --> install CODEDOC cli (for working on docs)
codedoc install # --> install CODEDOC dependencies (for working on docs)
codedoc serve # --> serve docs on `localhost:3000/render-jsx` (from `docs/md/`)
FAQs
callbags + JSX: super fast and super thiny interactive web apps
We found that callbag-jsx 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
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.