Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Changelog of npm version: https://github.com/Bobris/Bobril/blob/master/CHANGELOG.md
Component oriented framework inspired by ReactJs (Virtual DOM, components with state) and Mithril (small size, more complete framework). Compared to ReactJS Added speeeed, autoprefixer, CSS in JS, router, additional livecycle methods, only rAF based repaint. Bobril ignores Isomorphic JavaScript, because it would increase size and is not needed for SEO anyway (Google bot supports JavaScript). Client applications are expected to be written in TypeScript. Because it is heavily used in production, backward compatibility is king. Any new feature must be optional or its perceived value to minified size ratio must be high enough.
It is intended to be used with bobril-build.
Old Examples: http://bobris.github.io/Bobril/
For modern code look at Bobril Material: https://github.com/Bobril/Bobril-m
Tutorial videos [cz][en sub]:
See it in vdom-benchmarks: http://vdom-benchmark.github.io/vdom-benchmark/
Chrome plugin to help you to inspect running Bobril application: https://chrome.google.com/webstore/detail/clouseau/npfemnefhbkiahihigplihehpbgkbhbj (Github source for it is here: https://github.com/klesta490/bobril-clouseau)
Features:
Optional addins - separate npm modules:
Whole simple applications including Bobril could fit into 17kb gzipped. Bobril-build does dead-code elimination and module flattening.
Uses NodeJs, NPM, TypeScript, Jasmine
MIT Licensed
Install npm i bobril-build -g
.
And then just start bb
(bobril-build).
For helping writing TypeScript you can use VSCode.
If you want to work on something create bug with description, so work is not duplicated.
17.0.0
Nominal types Nominal<string,"Bobril">
.
IBobrilStyleDef
is now not plain string but nominal type.
sprite
without color creates another nominal type ColorlessSprite
. spriteWithColor
now takes only ColorlessSprite
type making it compile time type safe, function for evaluation could be also passed.
New method svg
allows to embed svg in JS source and then use it as ColorlessSprite
. It is not expected to directly use svg
method but instead sprite
and bobril-build will load svg from disk and change that call to this method.
New method svgWithColor
allows to resize previously defined svg or recolor multiple colors not just gray
for which you can still use spriteWithColor
.
When you need to use jQuery selectors with Bobril and you already have nice key
in VDom to use with bbseeker
, you can now enable automatic publishing of keys to classNames by b.setKeysInClassNames(true); b.ignoreShouldChange();
without need to change your application.
FAQs
Component Oriented MVC Framework with virtual DOM and CSS
The npm package bobril receives a total of 102 weekly downloads. As such, bobril popularity was classified as not popular.
We found that bobril demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.