{"repo":"avoidwork/tenso","free":true,"listed":false,"github":"https://github.com/avoidwork/tenso","clone":"git clone https://github.com/avoidwork/tenso.git","description":"Tenso is an HTTP REST API framework","language":"JavaScript","stars":176,"topics":["rest","api","api-gateway","gateway","microservice","microservices","cqrs"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"Tenso Lightweight HTTP REST API framework with built-in hypermedia support 🚀 Features REST/Hypermedia : Automatic hypermedia link generation and pagination Multiple Authentication : Basic, Bearer Token, JWT, OAuth2, SAML support Flexible Routing : Express-style routing with middleware support Content Negotiation : Automatic serialization for JSON, XML, YAML, CSV, HTML Security Built-in : CORS, CSRF tokens, rate limiting, security headers Session Management : Memory or Redis-based sessions EventSource Streams : Built-in server-sent events support File Serving : Static file serving with directory browsing Prometheus Metrics : Built-in metrics collection TypeScript Support : Full TypeScript definitions included 📦 Installation 🚀 Quick Start Basic Server REST API with Routes Using the Class 📖 Table of Contents - Creating Routes - Request and Response Helpers - Extensibility - Responses - REST / Hypermedia - Configuration - Authentication - Sessions - Security - Rate Limiting - Upload Size Limiting - Logging - HTML Renderer - Serving Files - EventSource Streams - Prometheus - Benchmarks - Testing - TypeScript - Examples - Troubleshooting - License 🛤️ Creating Routes Routes are loaded as a module, with each HTTP method as an export, affording a very customizable API server. You can use res to: - res.send(body[, status, headers]) - res.redirect(url) - res.error(status[, Error]) Route Types Protected Routes Protected routes require authorization for access and will redirect to au","default_branch":null,"files":null,"tree":[],"storefront":"/r/avoidwork","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/avoidwork/tenso/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}