open-index/open-npm huggingface dataset:
npm package: @sasm/router
Description: HTTP Router for SASM
Author: Spencer A. Lockhart
Latest version: 3.0.1

# SasmRouter

> HTTP Router for SASM

[![NPM Version][npm-image]][npm-url]
[![Node Version][node-image]][node-url]
[![Sasm Version][sasm-image]][sasm-url]
[![SasmRouter Version][sasmRouter-image]][sasmRouter-url]

## Install

```bash
npm i @sasm/router
```

## Usage
> **Please see [![Sasm Version][sasm-image]][sasm-url] for information on how to use Sasm and extensions.**

The router requires you to have a public directory for web files and a designated index HTML file in that directory.

For example, if your project is in a folder named "project", here is an example document tree layout for that directory:
```
project>
	package.json
	server.js
	public>
		index.html
```
With the default configuration left alone, the above document tree will work.

### Configuration
You can, of course, change the defaults to your liking- and modify the public directory and default index filename. The default configuration is accessible under `sasm.router`.
1. public (string:directory): Public directory. [Default: "/public"]
2. index (string:HTMLfile): Default index file. [Default: "index.html"]

For example, if your document tree looks like the following:
```
project>
    package.json
    server.js
    publicHTML>
    	index.htm
```

Your `server.js` file could have the following code:
```JavaScript
const sasm = require('@sasm/system');
const router = require('@sasm/router');
sasm.
	start().
	registerRoot(__dirname).
	registerExtension(router);
sasm.router.public = "/publicHTML"
sasm.router.index = "index.htm"
sasm.listen();
```



[npm-image]: https://img.shields.io/badge/npm-5.8.0-green.svg
[npm-url]: https://www.npmjs.com/
[node-image]: https://img.shields.io/badge/NodeJS-9.10.1-green.svg
[node-url]: https://nodejs.org/
[sasm-image]: https://img.shields.io/badge/@sasm/system-latest-red.svg
[sasm-url]: https://www.npmjs.com/package/@sasm/system
[sasmRouter-image]: https://img.shields.io/badge/@sasm/router-latest-green.svg
[sasmRouter-url]: https://www.npmjs.com/package/@sasm/router
npm package: @sasonarik/nextapi-swagger
Description: CLI tool to generate Next.js API routes and types from Swagger/OpenAPI specs
Author: Sason
Latest version: 1.0.5

# nextapi-swagger

> CLI tool to generate Next.js API routes, types, and clients from Swagger/OpenAPI specs

[![npm version](https://img.shields.io/npm/v/@sasonarik/nextapi-swagger.svg)](https://www.npmjs.com/package/@sasonarik/nextapi-swagger)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE)

---

## 🚀 What is this?

`nextapi-swagger` is a developer-friendly CLI tool designed to **automatically generate Next.js App Router API routes, TypeScript types, and API client utilities** based on your Swagger/OpenAPI JSON specifications.

- Streamline your Next.js backend API development
- Avoid repetitive manual coding of API types and routes
- Stay in sync with your API spec effortlessly

---

## 💡 Why use this?

- Supports **multiple Swagger/OpenAPI JSON URLs**
- Generates **Next.js 13+ App Router API routes**
- Produces **strongly-typed TypeScript interfaces**
- Builds a reusable **API client helper** for requests
- Highly customizable prompts via CLI
- Written in TypeScript for type safety and maintainability

---

## 🛠️ Installation

You can install the CLI via npm:

```bash
npm install @sasonarik/nextapi-swagger

```

## Usage

You can run the CLI directly using `npx` without installing:

```bash
npx @sasonarik/nextapi-swagger

```

## You will be prompted to:

- Provide one or more Swagger/OpenAPI JSON URL

- Choose whether to generate TypeScript types (types/api.ts)

- Choose whether to generate Next.js API routes

- Choose whether to generate the API client helper

## Generated Files Structure

The generated files will be placed inside your Next.js project directory structure:

```
my-nextjs-project/
├── app/
│   └── api/           # Generated Next.js API routes
├── types/
│   └── api.ts         # Generated TypeScript types from OpenAPI
├── utils/
│   └── apiRequests.ts # Generated API client helper
|   └── apiBaseUrls.ts # Swagger/OpenAPI API urls
├── ...
```

## Example

```
$ nextapi-swagger

? Enter one Swagger/OpenAPI JSON URL: https://petstore.swagger.io/v2/swagger.json
? Generate types/api.ts? Yes
? Generate Next.js App Router API routes? Yes
? Generate utils/apiRequests.ts client? Yes

✅ Types generated at types/api.ts
✅ API routes generated under app/api
✅ API client helper generated at utils/apiRequests.ts

🎉 Generation complete!

```

### This CLI works best with Swagger 3.0 or higher for improved results.
npm package: @sasoria/housing-prices
Description: A simple cli that finds Norwegian housing prices in a given location
Author: sasoria
Latest version: 2.3.1

# Housing-prices

A simple cli that finds the latest Norwegian housing prices in a given location.

- The results are taken from the awesome sites at finn.no ✨
- Currently the districts of Oslo are supported as locations

### 🚀 Usage

```
$ npx @sasoria/housing-prices <options>
```

### 🌎 Options

```
--location, -l  Housing location
```

### 📚 Examples

```
$ npx @sasoria/housing-prices --location sentrum
Sjøgangen 4, Oslo
🏡 kr 6 156 305
🏘️ kr 2 950

Dronningens gate 12, Oslo
🏡 kr 7 586 342
🏘️ kr 4 925

Kongens gate 10C, Oslo
🏡 kr 7 996 342
🏘️ kr 5 322
```