Skip to content

trying to make a RESTful-compatible adaptor for tRPC

License

Notifications You must be signed in to change notification settings

NotEvenANeko/trpc-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trpc-restful

inspired by trpc-openapi, trying to make a RESTful-compatible adaptor for tRPC

What I want to do

  • Basic HTTP (different methods, path parameters, query parameters, headers, cookies, etc.)
  • OpenAPI document generation with typescript (?)
  • Support subscription through SSE or WebSocket
  • A tRPC link which provides similar DX as the original tRPC client (a metadata endpoint might exist)
  • Find a better way to differentiate between params, query, and body in the input
  • Octet-stream support (ctx.getRequestBody()?)
  • Support WriteableStream as a response
  • ESLint & Prettier & a bundler (tsup maybe)

What I have done

check tests/restfulHandler.ts

About

trying to make a RESTful-compatible adaptor for tRPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published