
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
CANT inc. application build ecosystem.
innet is designed to simplify and standardize application development with a flexible and modern ecosystem.
It combines the best features from popular libraries and frameworks, offering a familiar yet uniquely powerful experience.
innet is a JavaScript ecosystem built around a single function-based core, offering an out-of-the-box solution for a variety of application types:
innet comes with built-in support for JSX, providing a smooth developer experience for writing components.
You can use JSX not only on the client side but also on the server side.
Check out @innet/jsx for more details.
JSX works seamlessly on both client and server!
innet's functionality is split across modular plugins. Include only what you need:
You can use the same plugins on client and server!
innet fully supports components as a powerful way to build reusable parts of your application.
Same components can be used on server and client!
Explore the many features below to get started!
Using npm:
npm i innet
Using yarn:
yarn add innet
You can start working with innet using @innet/dom for frontend apps, @innet/server for backend apps, or @innet/native for native mobile development.
The main innet function accepts two required parameters and two optional:
Example usage:
import { innet } from 'innet'
import app from './app' // what to do
import handler from './handler' // how to do it
innet(app, handler)
The app can be any type, while the handler must be a Handler object. Create a handler using the createHandler function:
import { createHandler } from 'innet'
export default createHandler([])
By default, the handler does nothing until you add plugins to define functionality.
const sum = () => ([a, b]) => {
console.log(a + b)
}
// sum is a plugin
const plugins = [
sum,
]
const handler = createHandler(plugins)
innet([1, 2], handler) // Outputs: 3
Plugins are functions that run during handler creation and return a HandlerPlugin.
Example: a logger plugin
import { HandlerPlugin, NEXT, useApp } from 'innet'
function logger(): HandlerPlugin {
console.log('logger: initialization')
return () => {
console.log('logger: app', useApp())
return NEXT
}
}
HandlerPlugin functions have access to two hooks: useApp and useHandler.
Example of an async plugin to handle promises:
import { innet, HandlerPlugin, NEXT, useApp, useHandler } from 'innet'
function async(): HandlerPlugin {
return () => {
const app = useApp()
if (!(app instanceof Promise)) return NEXT
const handler = useHandler()
app.then(data => innet(data, handler))
}
}
Try using both plugins together:
const app = new Promise(resolve => resolve('test'))
const handler = createHandler([
logger,
async,
])
// > 'logger: initialisation'
innet(app, handler)
// > 'logger: app', Promise
await app
// > 'logger: app', 'test'
Plugin order matters:
const app = new Promise(resolve => resolve('test'))
const handler = createHandler([
async, // change order
logger,
])
// > 'logger: initialisation'
innet(app, handler)
// nothing happens
await app
// > 'logger: app', 'test'
You can extend handlers using createHandler by passing plugins and an existing handler to build on:
const handler1 = createHandler([
async,
sum,
])
const handler2 = createHandler([
logger,
], handler1)
Control the execution priority of innet tasks with the third and the fourth optional arguments.
true, switches the order of the queue from the default FIFO to LIFO.import { queueNanotask } from 'queue-nano-task'
const handler = createHandler([logger])
queueNanotask(() => {
innet('Mounted', handler, 2)
innet('Mounting', handler, 1)
innet('Rendering', handler, 0)
innet('WillMount', handler, 1, true)
})
// log: ['Rendering', 'WillMount', 'Mounting', 'Mounted']
Explore more general plugins and utilities in @innet/utils
If you find bugs or want to suggest features, please open an issue on GitHub.
FAQs
CANT inc. application build ecosystem.
The npm package innet receives a total of 59 weekly downloads. As such, innet popularity was classified as not popular.
We found that innet demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.