open-index/open-npm huggingface dataset:
npm package: @photonjs/hono
Description: Hono adapter for Photon.
Latest version: 0.1.12

# @photonjs/hono

Hono adapter for Photon.

## Features

- Ultrafast performance with Hono
- Edge-first design for Cloudflare Workers, Deno, Bun
- Universal middleware support
- Multi-runtime deployment
- HMR support
- Full TypeScript support

## Installation

```bash
npm install @photonjs/hono hono
```

## Getting Started

```ts
// src/server.ts
import { Hono } from 'hono'
import { apply, serve } from '@photonjs/hono'

const app = new Hono()

app.get('/', (c) => c.text('Hello Hono!'))
app.get('/api/users', (c) => c.json({ users: ['Alice', 'Bob'] }))

apply(app)
export default serve(app)
```

```ts
// vite.config.ts
import { photon } from '@photonjs/core/vite'

export default {
  plugins: [
    photon({
      server: './src/server.ts'
    })
  ]
}
```

## With Middleware

```ts
import { Hono } from 'hono'
import { cors } from 'hono/cors'
import { logger } from 'hono/logger'
import { apply, serve } from '@photonjs/hono'

const app = new Hono()

app.use('*', logger())
app.use('*', cors())

app.get('/', (c) => c.json({ message: 'Hello!' }))
app.get('/api/health', (c) => c.json({ status: 'ok' }))

apply(app)
export default serve(app)
```

## API

### `apply(app, middlewares?)`

Apply Photon middlewares to a Hono app.

```ts
apply(app) // Apply configured middlewares
apply(app, [customMiddleware]) // Apply additional middlewares
```

### `serve(app, options?)`

Start the server with HMR support.

```ts
serve(app, { port: 3000 })
```

## Deployment

Hono works across all JavaScript runtimes:

- **Node.js** - `node dist/server/index.js`
- **Cloudflare Workers** - Deploy with Wrangler
- **Deno** - `deno run dist/server/index.js`
- **Bun** - `bun run dist/server/index.js`

## Commands

```bash
npm run dev     # Start dev server
npm run build   # Build for production
npm run preview # Preview production build
```

## Examples

```ts
// Custom context
type Env = {
  Variables: { user: { id: string } }
}

const app = new Hono<Env>()
app.use('*', async (c, next) => {
  c.set('user', { id: '1' })
  await next()
})
```

```ts
// Error handling
app.onError((err, c) => {
  console.error(err)
  return c.text('Error', 500)
})
```

See [examples](../../example/app-hono) for more.
npm package: @photonjs/runtime
Description: A convenience package that provides Photon with automatic fallback functionality for quick prototyping and development.
Latest version: 0.1.17

# @photonjs/runtime

A convenience package that provides Photon with automatic fallback functionality for quick prototyping and development.

## Overview

The runtime package is designed to make getting started with Photon as simple as possible by:
- **Automatic fallback**: Provides a default minimal server when no server entry is specified
- **Zero configuration**: Works out of the box without any setup
- **Development friendly**: Perfect for prototyping and quick experiments
- **Production ready**: Can be used in production with proper configuration

## Installation

```bash
npm install @photonjs/runtime
# or
pnpm add @photonjs/runtime
# or
yarn add @photonjs/runtime
```

## Usage

### Quick Start

The simplest way to get started with Photon:

```ts
// vite.config.ts
import { photon } from '@photonjs/runtime/vite'

export default {
  plugins: [
    photon()
  ]
}
```

That's it! The runtime package will automatically:
1. Create a fallback Hono server if no server entry is provided
2. Apply any universal middlewares you've defined
3. Set up the development server with HMR

### Fallback Server

When no server entry is specified, the runtime package creates a default server equivalent to:

```ts
// Automatically generated fallback
import { apply, serve } from '@photonjs/hono'
import { Hono } from 'hono'

function startServer() {
  const app = new Hono()
  apply(app) // Applies your universal middlewares
  return serve(app)
}

export default startServer()
```

### With Custom Configuration

You can still provide custom configuration while using the runtime package:

```ts
// vite.config.ts
import { photon } from '@photonjs/runtime/vite'

export default {
  plugins: [
    photon({
      entries: {
        'api/users': './src/api/users.ts',
        'middleware/auth': './src/middleware/auth.ts'
      }
    })
  ]
}
```

### Overriding the Fallback

If you want to use your own server entry, simply specify it:

```ts
// vite.config.ts
import { photon } from '@photonjs/runtime/vite'

export default {
  plugins: [
    photon({
      server: './src/my-server.ts' // This overrides the fallback
    })
  ]
}
```

## Examples

See the [examples directory](../../example) for complete working examples.

## License

MIT
npm package: @photonjs/srvx
Description: Srvx adapter for Photon.
Latest version: 0.1.13

# @photonjs/srvx

Srvx adapter for Photon.

## Features

- Ultrafast performance with Srvx
- Edge-first design for Cloudflare Workers, Deno, Bun
- Universal middleware support
- Multi-runtime deployment
- HMR support
- Full TypeScript support

## Installation

```bash
npm install @photonjs/srvx @universal-middleware/core
```

## Getting Started

```ts
// src/server.ts
import { apply, serve } from '@photonjs/srvx'
import { enhance } from ' @universal-middleware/core'


export default serve(apply([
  enhance(
    () => new Response('/api'),
    {
      name: "my-app:api",
      path: "/api",
      method: ["GET", "POST"],
    }
  ),
  enhance(
    () => new Response('OK'),
    {
      name: "my-app:catch-all",
      path: "/**",
      method: "GET",
    }
  )
]))
```

```ts
// vite.config.ts
import { photon } from '@photonjs/core/vite'

export default {
  plugins: [
    photon({
      server: './src/server.ts'
    })
  ]
}
```

## API

### `apply(middlewares?)`

Pipes Photon middlewares and returns a srvx request handler.

```ts
const app = apply() // Apply configured middlewares
const app = apply([customMiddleware]) // Apply additional middlewares
```

### `serve(app, options?)`

Start the server with HMR support.

```ts
serve(app, { port: 3000 })
```

## Deployment

Srvx works across all JavaScript runtimes:

- **Node.js** - `node dist/server/index.js`
- **Cloudflare Workers** - Deploy with Wrangler
- **Deno** - `deno run dist/server/index.js`
- **Bun** - `bun run dist/server/index.js`

## Commands

```bash
npm run dev     # Start dev server
npm run build   # Build for production
npm run preview # Preview production build
```
npm package: @photonsh/photon-node-local
Description: photon-node-local is a standalone Node.js library for Photon
Author: Photon
Latest version: 0.1.2

# photon-node-local

photon-node is a standalone Node.js library for [Photon](https://photon.sh).

![Photon](https://raw.githubusercontent.com/photonsh/photon-node-local/master/demo.png)

*We have a lot of plugins but you do not have to use them all!*

**Note**: If you are using JavaScript on the browser, refer to the [photon-js](https://github.com/photonsh/photon-js) library.

## Resources

* **[Website](https://photon.sh)**
* **[Sign Up](https://photon.sh/signup)**
* **[Demo](https://photon.sh/demo)**
* **[Documentation](https://photon.sh/docs/libraries/nodejs)**
* **[Twitter](https://twitter.com/photondotsh)**

## License

[MIT License](https://github.com/photonsh/photon-node-local/LICENSE)
npm package: @photonswap/sdk
Description: 🛠 An example SDK for building applications on top of Photonswap.
Latest version: 1.0.41

# Cronswap SDK

Cronswap SDK is fork of Uniswap SDK. So all the documentation from Uniswap SDK is applicable for the package.

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/cronswap/cronswap-sdk/workflows/CI/badge.svg)](https://github.com/cronswap/cronswap-sdk)
[![npm version](https://img.shields.io/npm/v/@cronswap/sdk/latest.svg)](https://www.npmjs.com/package/@cronswap/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@cronswap/sdk/latest.svg)](https://bundlephobia.com/result?p=@cronswap/sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Address Modifications

When deploying a new instance on cronos chain, you need to modify the address in the following files:

WETH: `./src/entities/token.ts`
Factory: `./src/constants.ts`

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/cronswap/cronswap-sdk.git
```

Move into the uniswap-sdk working directory

```sh
cd cronswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @photoserv/astro-loader
Description: Astro.js loader for Photoserv
Author: Max Loiacono
Latest version: 0.1.0

# Photoserv Astro Loader

Allows you to seamlessly use Photoserv with your Astro site.

## Usage

`npm i @photoserv/astro-loader`

In your Astro `content.config.ts`:

```typescript
const photos = defineCollection({
	loader: photosLoader({
		apiUrl: import.meta.env.PHOTOSERV_API_URL,
		apiKey: import.meta.env.PHOTOSERV_API_KEY,
		sizes: ["display_md", "thumb_lg"], // sizes to fetch
	})
});

const albums = defineCollection({
	loader: albumsLoader({
		apiUrl: import.meta.env.PHOTOSERV_API_URL,
		apiKey: import.meta.env.PHOTOSERV_API_KEY,
        recursive: true, // OPTIONAL: whether to fetch photos in sub-albums for each album
        recursiveAlbums: ["album-uuid", "another-album-slug"], // OPTIONAL: Fetch these albums recursively, even if recursive is false
	})
});

const photoTags = defineCollection({
	loader: tagsLoader({
		apiUrl: import.meta.env.PHOTOSERV_API_URL,
		apiKey: import.meta.env.PHOTOSERV_API_KEY,
	})
});
```

> [!IMPORTANT]
> Photos will be downloaded to `public/photoserv-cache`. You should add this to your gitignore.

Then, utilize the PhotoservPicture component:

```js
---
import PhotoservPicture from "@photoserv/astro-loader/components/PhotoservPicture.astro";
---

<PhotoservPicture
    photo="uuid"                    // required
    size="display_md"               // required
    alt="Alt text here"
    class="additional-class"
    draggable="false"               // additional props
    oncontextmenu="return false;"   // additional props
    title="photo title"             // additional props
    {...rest}                       // additional props
/>
```

It is recommended to wrap the provided component in your own, like so:

```js
---
import PhotoservPicture from "@photoserv/astro-loader/components/PhotoservPicture.astro";
import type { Photo } from "@photoserv/astro-loader/definitions";

export interface Props {
    photo: Photo;
    size?: string;
    [key: string]: any;
}

const { photo, size = PHOTOSERV_DISPLAY_SIZE, class: className = "max-h-[90vh]", ...rest } = Astro.props as Props;
const { height, width } = photo.sizes.find((_size) => _size.slug == size) || {};
if (height && width) {
    rest.height = height;
    rest.width = width;
}
---

<div class={`flex justify-center ${className}`}>
    <PhotoservPicture
        photo={photo}
        size={size}
        alt={rest.alt || photo.description || photo.title}
        class=`select-none object-contain ${className}`
        draggable="false"
        oncontextmenu="return false;"
        title={photo.title}
        {...rest}
    />
</div>
```

## Compatibility

| Loader Version (this) | Maximum Photoserv Version |
| --- | --- |
| Current | Current |
| 0.0.x | 0.8.0 |
npm package: @photostructure/windows-registry
Description: Native node module to access the Windows Registry, with prebuilts
Author: Microsoft Corporation
Latest version: 1.1.0

# @photostructure/windows-registry

[![npm version](https://img.shields.io/npm/v/@photostructure/windows-registry.svg)](https://www.npmjs.com/package/@photostructure/windows-registry)
[![Build](https://github.com/photostructure/vscode-windows-registry/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/photostructure/vscode-windows-registry/actions/workflows/build.yml)

> **Fork of [@vscode/windows-registry](https://github.com/microsoft/vscode-windows-registry) with prebuilt binaries.**
>
> The upstream package requires a C++ build toolchain at install time. This fork
> ships prebuilt NAPI binaries for `win32-x64` and `win32-arm64`, so no build
> tools are needed on the target machine.

Native node module to access the Windows Registry.

## Cross-platform support

This package installs cleanly on all platforms and architectures — no need for
`optionalDependencies`. On non-Windows platforms, all functions return
`undefined` (the same as when a registry key doesn't exist on Windows), so
calling code doesn't need platform checks.

## Installing

```sh
npm install @photostructure/windows-registry
```

## Using

```javascript
const { GetStringRegKey } = require('@photostructure/windows-registry');
console.log(GetStringRegKey('HKEY_LOCAL_MACHINE', 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion', 'ProgramFilesPath'));
```

## Development

```sh
npm install
npm run build:native  # builds the prebuilt binary
npm test # builds if necessary, then runs tests
```

## License
[MIT](https://github.com/photostructure/vscode-windows-registry/blob/main/License.txt)

Upstream copyright Microsoft Corporation.
npm package: @phototology/mcp
Description: MCP server for Phototology AI vision API
Latest version: 0.1.3

# @phototology/mcp

MCP server for the [Phototology](https://api.phototology.com/v1/docs) AI vision API. Gives AI coding assistants the ability to analyze photos.

[![npm version](https://img.shields.io/npm/v/@phototology/mcp)](https://www.npmjs.com/package/@phototology/mcp)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)

## Tools

| Tool | Description |
|------|-------------|
| `analyze_photo` | Analyze a photo with AI vision. Returns structured data: dating, people, location, atmosphere, entities, and more. 14 composable modules, 8 presets. |
| `list_modules` | List available analysis modules and presets. Call this first to discover capabilities. |

## Setup

### Claude Code

Add to `~/.claude/settings.json`:

```json
{
  "mcpServers": {
    "phototology": {
      "command": "npx",
      "args": ["-y", "@phototology/mcp"],
      "env": {
        "PHOTOTOLOGY_API_KEY": "pt_live_..."
      }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "phototology": {
      "command": "npx",
      "args": ["-y", "@phototology/mcp"],
      "env": {
        "PHOTOTOLOGY_API_KEY": "pt_live_..."
      }
    }
  }
}
```

### VS Code Copilot

Add to `.vscode/mcp.json`:

```json
{
  "servers": {
    "phototology": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@phototology/mcp"],
      "env": {
        "PHOTOTOLOGY_API_KEY": "pt_live_..."
      }
    }
  }
}
```

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `PHOTOTOLOGY_API_KEY` | Yes | Your API key (`pt_live_...` or `pt_test_...`) |
| `PHOTOTOLOGY_BASE_URL` | No | API base URL (default: `https://api.phototology.com`) |

Keys starting with `pt_test_` use the test sandbox (instant responses, zero cost).

## Example Output

Calling `analyze_photo` with a family photo:

```json
{
  "id": "ana_7f3a9c2e",
  "outputSchema": "photo",
  "output": {
    "estimatedDate": {
      "year": 1992,
      "decade": "1990s",
      "confidence": "high"
    },
    "warmCaption": "A family gathered around a birthday cake in a sunlit kitchen",
    "people": {
      "count": 4,
      "descriptions": ["..."]
    },
    "location": {
      "setting": "indoor",
      "type": "residential kitchen"
    }
  },
  "usage": {
    "totalTokens": 1500,
    "estimatedCostUsd": 0.0003,
    "modulesUsed": ["dating", "people", "location", "atmosphere"]
  }
}
```

## Links

- [TypeScript SDK](https://www.npmjs.com/package/@phototology/sdk) — `npm install @phototology/sdk`
- [API Documentation](https://api.phototology.com/v1/docs)
- [OpenAPI Spec](https://api.phototology.com/v1/openapi.json)
- [GitHub](https://github.com/nlakios/family-photo-chronology/tree/main/packages/phototology-mcp)

## License

MIT
npm package: @php-etl/material-ui-cron
Description: A React cron editor using material ui
Author: Parichay Barpanda
Latest version: 0.2.0

## Material UI Cron

[![npm package](https://img.shields.io/npm/v/material-ui-cron/latest.svg)](https://www.npmjs.com/package/material-ui-cron)
[![MIT License Badge](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/baymac/material-ui-cron/blob/master/LICENSE.md)

A React cron editor built with [material ui](https://material-ui.com/)

Live **demo** and **usage** at
[https://baymac.github.io/material-ui-cron/](https://baymac.github.io/material-ui-cron/?path=/story/material-ui-cron--scheduler-demo)

![material-ui-cron demo](/docs/material-ui-cron-demo.png)

## Inspired by

- [react-cron-js](https://github.com/xrutayisire/react-js-cron)

## Installation

Be sure that you have these dependencies on your project:

- react (>=17.0.1)
- @mui/material (>=5.0.0)

More dependencies

```bash
# Yarn
yarn add material-ui-cron

# NPM
npm install --save material-ui-cron
```

## Usage

```javascript
import Scheduler from 'material-ui-cron'
import React from 'react'

export default function SchedulerDemo() {
  const [cronExp, setCronExp] = React.useState('0 0 * * *')
  const [cronError, setCronError] = React.useState('') // get error message if cron is invalid
  const [isAdmin, setIsAdmin] = React.useState(true) // set admin or non-admin to enable or disable high frequency scheduling (more than once a day)

  return (
    <Scheduler
      cron={cronExp}
      setCron={setCronExp}
      setCronError={setCronError}
      isAdmin={isAdmin}
    />
  )
}
```

## TypeScript

`material-ui-cron` is written in TypeScript with complete definitions.

## Internalization and Localization

This library supports Internalization (i18n). Currently languages supported are:

1. English
2. Chinese (Simplified)

We are welcoming translation contributions from the community.

### How to contribute to translation

1. Clone `/src/localization/enLocal.ts` and rename it to desired langauge prefix
   (based on
   https://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code).

2. Add language prefix to `definedLocales` type inside `/src/types.ts`

3. Add locale mapping inside `/src/i18n.ts`

### How to use translation

#### Using predefined locale:

```javascript
<Scheduler
  cron={cronExp}
  setCron={setCronExp}
  setCronError={setCronError}
  isAdmin={isAdmin}
  locale={'en'} // if not supplied, localization defaults to en
/>
```

#### Using custom locale:

```javascript
<Scheduler
  cron={cronExp}
  setCron={setCronExp}
  setCronError={setCronError}
  isAdmin={isAdmin}
  customLocale={{...your translations}} // should be a valid object of type Locale, overrides value supplied to locale prop
/>
```

## Acknowledgement

This library was developed as a part of [Udaan](https://udaan.com/)'s Data
Platform for scheduling queries. Big thanks to
[Amod Malviya](https://github.com/amodm) for supporting this project.

## License

MIT © [baymac](https://github.com/baymac)
npm package: @php-etl/react-admin-json-view
Description: JSON field and input for react-admin.
Author: Grégoire Hertault
Latest version: 2.0.1

# React Admin JSON view ![GitHub release (latest by date)](https://img.shields.io/github/v/release/MrHertal/react-admin-json-view) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/MrHertal/react-admin-json-view/Node.js%20CI)

JSON field and input for [react-admin](https://github.com/marmelab/react-admin).
Built with [react-json-view](https://github.com/mac-s-g/react-json-view).

Field:

![JSON show](docs/images/json-show.png)

Input:

![JSON edit](docs/images/json-edit.png)

## Installation

```sh
npm install react-admin-json-view
```

## Usage

```jsx
import { JsonField, JsonInput } from "react-admin-json-view";

// ...

export const ExampleShow = (props) => (
  <Show {...props}>
    <SimpleShowLayout>
      <JsonField
        source="example"
        jsonString={false} // Set to true if the value is a string, default: false
        reactJsonOptions={{
          // Props passed to react-json-view
          name: null,
          collapsed: true,
          enableClipboard: false,
          displayDataTypes: false,
        }}
      />
    </SimpleShowLayout>
  </Show>
);

export const ExampleEdit = (props) => (
  <Edit {...props}>
    <SimpleForm>
      <JsonInput
        source="example"
        validate={[required()]}
        jsonString={false} // Set to true if the value is a string, default: false
        reactJsonOptions={{
          // Props passed to react-json-view
          name: null,
          collapsed: true,
          enableClipboard: false,
          displayDataTypes: false,
        }}
      />
    </SimpleForm>
  </Edit>
);
```
npm package: @php-perfect/aviation-calculator-wasm
Description: WASM bindings for the aviation calculator
Latest version: 0.2.2

## About

This repository provides WASM bindings for the Aviation Calculator as well as a build workflow to publish it as a npm
package that can be used in JS projects.

## Usage

### 🔬 Dev Build

```
wasm-pack build --dev --scope php-perfect -- --features console_error_panic_hook
```

### 🛠️ Prod Build

```
wasm-pack build --release --scope php-perfect
```

### 🔬 Test in Headless Browsers

```
wasm-pack test --headless --firefox
```
npm package: @php-vm/php-vm
Description: Linux command line tool for managing locally installed PHP versions.
Latest version: 0.4.1

# pvm
A simple PHP Version manager.

## Installation

### PNPM
```bash
pnpm i -g pvm
```

### NPM
```bash
npm i -g pvm
```

## Usage
```bash
Options:
  -v, --version                  output the current application version
  -h, --help                     display help for command

Commands:
  status|s                       Show current PHP version status
  setup                          Setup php version manager. Will setup php repository list
  ls [options]                   List PHP available versions and modules
  use|u <version>                Switch PHP version
  install|i [options] <version>  Installs a PHP version or composer
  xdebug|x [sapi] [status]       Manage XDebug status
  restart|r                      Restart PHP-FPM and NGINX
  help [command]                 display help for command
```

Example for updating from PHP 7.4 to PHP 8.2:
```bash
pvm i 8.2
pvm use 8.2
```