phero icon indicating copy to clipboard operation
phero copied to clipboard

Full-stack type-safety with pure TypeScript

Results 37 phero issues
Sort by recently updated
recently updated
newest added

The following example RPC export async function test(): Promise { return undefined } will always trigger the following error on the client when called: Uncaught (in promise) SyntaxError: JSON.parse: unexpected...

**Skimmed down version of the Vercel export** The vercel export will - create a folder dist/phero-vercel - dist/phero-vercel/ will have subfolders with each service - dist/phero-vercel/ will also have a...

I haven't used this project yet but as a concept it is very interesting. I'm thinking that it could be used in frameworks like `Nuxt` which handle both server and...

enhancement

I'm using a backend and a set of microservices. I'd like to use phero for communication. Problem is I'd like to start phero server in same process space as my...

According to the docs at https://phero.dev/docs/using-phero/context-and-middleware @phero/server should export "PheroParams" but this does not seem to be the case. Did things change and the docs are simply outdated? (I am...

It would be nice to include [JSDoc](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html) comments in the generated source file. This would allow the text editor to show documentation on the client side. The specific need I'm...

I'm defining a database middleware per the docs as follows: ```typescript // src/db/index.ts /* eslint-disable no-var */ import { type Collection, MongoClient, type Db } from "mongodb"; import { env...

bug

The following code throws: ```ts import { createService } from '@phero/server' import { OpenAI, CreateChatCompletionRequest} from 'openai-streams' async function ChatCompletion(params: CreateChatCompletionRequest): Promise { return OpenAI("chat", params) } export const AiService...

At the moment, `phero server build` is identical to `./node_modules/.bin/phero-server build` (we call these "command-redirects"). This means though, that when you're in a higher-level directory (the root of a mono-repo...

enhancement