
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@sebspark/openapi-express
Advanced tools
A typed router for express based on type definitions from openapi-typegen
@sebspark/openapi-express-routerA typed router for express based on type definitions from openapi-typegen
yarn add @sebspark/openapi-express`
or
npm install @sebspark/openapi-express`
import express from 'express'
import { TypedRouter } from '@sebspark/openapi-express'
import { MarketdataServer } from './schemas/marketdata'
import { getMarkets, getMarket } from './markets'
const api: MarketdataServer = {
'/markets': {
get: {
handler: async () => {
const markets = await getMarkets()
return [200, {data: markets}]
},
},
},
'/markets/:id': {
get: {
handler: async ({ params }) => {
const market = await getMarket(params.id)
return [200, {data: market}]
},
},
},
}
const router = TypedRouter(api)
const app = express()
app.use(router)
Example can be found in @sebspark/openapi-e2e
FAQs
A typed router for express based on type definitions from openapi-typegen
The npm package @sebspark/openapi-express receives a total of 354 weekly downloads. As such, @sebspark/openapi-express popularity was classified as not popular.
We found that @sebspark/openapi-express demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.