{"id":49718607,"url":"https://github.com/karmaniverous/smoz","last_synced_at":"2026-05-08T22:13:01.299Z","repository":{"id":312739929,"uuid":"1033841147","full_name":"karmaniverous/smoz","owner":"karmaniverous","description":"SMOZ: a TypeScript toolkit for AWS Lambda combining Serverless, Middy, OpenAPI 3.1 and Zod for schema‑first apps with robust HTTP middleware and typed validation.","archived":false,"fork":false,"pushed_at":"2026-01-04T23:45:27.000Z","size":7931,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T14:50:34.496Z","etag":null,"topics":["api-docs","api-gateway","aws-lambda","content-negotiation","cors","error-handling","http-middleware","lambda-handlers","middy","openapi","openapi-3-1","openapi-generator","schema-first","serverless","serverless-framework","smoz","toolkit","typescript","validation","zod"],"latest_commit_sha":null,"homepage":"https://docs.karmanivero.us/smoz/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karmaniverous.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-07T12:32:57.000Z","updated_at":"2026-02-22T05:49:21.000Z","dependencies_parsed_at":"2025-10-22T13:11:08.298Z","dependency_job_id":"47ffbf9d-d50a-4502-96c0-b0706d7336de","html_url":"https://github.com/karmaniverous/smoz","commit_stats":null,"previous_names":["karmaniverous/serverless-zod-openapi","karmaniverous/smoz"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/karmaniverous/smoz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmaniverous%2Fsmoz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmaniverous%2Fsmoz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmaniverous%2Fsmoz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmaniverous%2Fsmoz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karmaniverous","download_url":"https://codeload.github.com/karmaniverous/smoz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmaniverous%2Fsmoz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32799420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-docs","api-gateway","aws-lambda","content-negotiation","cors","error-handling","http-middleware","lambda-handlers","middy","openapi","openapi-3-1","openapi-generator","schema-first","serverless","serverless-framework","smoz","toolkit","typescript","validation","zod"],"created_at":"2026-05-08T22:13:00.601Z","updated_at":"2026-05-08T22:13:01.293Z","avatar_url":"https://github.com/karmaniverous.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# SMOZ\n\n[Serverless](https://www.serverless.com/) · [Middy](https://middy.js.org/) · [OpenAPI 3.1](https://spec.openapis.org/oas/latest.html) · [Zod](https://zod.dev/)\n\n[![npm version](https://img.shields.io/npm/v/@karmaniverous/smoz.svg)](https://www.npmjs.com/package/@karmaniverous/smoz)\n![Node Current](https://img.shields.io/node/v/@karmaniverous/smoz)\n[![docs](https://img.shields.io/badge/docs-website-blue)](https://docs.karmanivero.us/smoz)\n[![changelog](https://img.shields.io/badge/changelog-latest-blue.svg)](https://github.com/karmaniverous/smoz/tree/main/CHANGELOG.md)\n[![license](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](https://github.com/karmaniverous/smoz/tree/main/LICENSE.md)\n\n\u003c/div\u003e\n\nSMOZ is a small, pragmatic toolkit for authoring AWS Lambda handlers with [Middy] and [Zod], then aggregating Serverless functions and hand‑crafted OpenAPI 3.1 paths from a single, schema‑first application definition.\n\n- Keep prod code testable and framework‑agnostic\n- HTTP middleware with validation, shaping, errors, CORS, negotiation, and HEAD\n- Non‑HTTP flows stay lean (no middleware overhead)\n\n## Quick start (from zero)\n\nFrom an empty directory:\n\n```bash\nnpx @karmaniverous/smoz init -i\nnpx smoz dev -p 3000\n```\n\n- The first command scaffolds a new app and installs dependencies (including a local `smoz` bin).\n- The second command starts the inline local backend and keeps registers + OpenAPI fresh.\n- Open http://localhost:3000/openapi in your browser.\n\nPrefer `serverless‑offline`?\n\n```bash\nnpx smoz dev -l offline -p 3000\n```\n\nAdd your first endpoint (avoid clashing with the template’s hello):\n\n```bash\nnpx smoz add rest/foo/get\n```\n\n## Quick links\n\n- [Overview](./docs-src/overview.md)\n- [Why smoz?](./docs-src/why-smoz.md)\n- [Getting started](./docs-src/getting-started.md)\n- [10-minute tour](./docs-src/tour-10-minutes.md)\n- [HTTP Middleware](https://docs.karmanivero.us/smoz/documents/HTTP_middleware.html)\n- [Recipes](./docs-src/recipes/index.md)\n  - [SQS function](./docs-src/recipes/sqs.md)\n  - [Step Functions function](./docs-src/recipes/step.md)\n  - [Contexts + Cognito authorizer](./docs-src/recipes/contexts-auth.md) - [Custom middleware insertion](./docs-src/recipes/custom-middleware.md)\n  - [Per‑function env](./docs-src/recipes/per-function-env.md)\n  - [Observability](./docs-src/recipes/observability.md)\n  - [Troubleshooting](./docs-src/recipes/troubleshooting.md)\n- [Templates](./docs-src/templates.md)\n- [CLI](./docs-src/cli.md)\n- [Contributing](./CONTRIBUTING.md)\n\n## Install\n\n```bash\nnpm i @karmaniverous/smoz zod zod-openapi\n```\n\n## Dev tooling (recommended):\n\n```bash\nnpm i -D typescript typescript-eslint eslint prettier typedoc\n```\n\n## Docs and reference\n\n- [Docs site](https://docs.karmanivero.us/smoz)\n- [Changelog](./CHANGELOG.md)\n- [License](LICENSE)\n- [Middy](https://middy.js.org/)\n- [Zod](https://zod.dev/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarmaniverous%2Fsmoz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarmaniverous%2Fsmoz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarmaniverous%2Fsmoz/lists"}