Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
tessellate-server
Advanced tools
Web service runtime for tessellate services.
import { TessellateServer } from 'tessellate-server'
name: string
Optional application name (see koa.app.name)Add koa Middleware that runs before any routes are handled. If defer
is set to true
, the middleware will run after all routes. Also see koa.app.use.
Start the koa application server and prometheus metrics server on the specified ports. The default value for metricsPort
is port + 1
.
koa-rx-router instance. Use it to add routes.
Stop all koa servers.
import { nconf } from 'tessellate-server'
Wrapper around nconf with default values and convenience methods.
set(key: string, value: any)
- see nconfget(key: string)
- see nconfgetObject(key: string): Object
- see get
getString(key: string): string
- see get
argv(args: Object)
- see nconfdefaults(defaults: Object)
- see nconfimport { Problem } from 'tessellate-server'
A throwable Error class modeled after Zalando Problem.
Run npm start
or check out the code below:
import { TessellateServer, Problem } from '../src'
import { Observable } from 'rxjs'
const server = new TessellateServer()
server.use((ctx, next) => {
console.log('Hi, this is middleware.')
return next()
})
server.router.get('/', o => o.mapTo('Hello!'))
server.router.get('/error', o => o.switchMapTo(Observable.throw(
new Problem({
title: 'Teapot',
detail: 'I am a teapot.',
status: 418
}))
))
server.start(3001)
FAQs
Tessellate server runtime.
The npm package tessellate-server receives a total of 0 weekly downloads. As such, tessellate-server popularity was classified as not popular.
We found that tessellate-server 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.