
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Easy to build front-end app.
npm install --save hyper-app
Application
use()
mount plugin.Hyper App
mixin()
mixin store and css module.render()
render component with mixin assets.router()
set react routes.run()
react-dom rendering.import App from 'hyper-app'
import Store from './index.st'
import styles from './index.css'
const app = new App()
app.mixin(Store, styles)
app.render(({ children }, { store }) => {
return (
<div>Hi, this is an app.</div>
)
})
app.use((ctx, app) => {
// ctx will be passed to component
ctx.hi = 'hello guys'
})
app.use((ctx, app) => {
// add app singleton
app.hi = (text) => {
ctx.halo = text
}
})
app.hi('halo')
// component(props, ctx)
app.render(({ children }, { hi, halo }) => {
return (
<div>{hi}, {halo}</div>
)
})
FAQs
front-end app framework
The npm package hyper-app receives a total of 3 weekly downloads. As such, hyper-app popularity was classified as not popular.
We found that hyper-app 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.