crosswalk
ts-websocket-compressor
crosswalk | ts-websocket-compressor | |
---|---|---|
3 | 1 | |
83 | 1 | |
- | - | |
0.0 | 6.9 | |
almost 2 years ago | 9 months ago | |
TypeScript | TypeScript | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
crosswalk
-
TypeScript and SQL: Six Ways to Bridge the Divide
The lack of RTTI in TypeScript _is_ definitely a pain but the jump to "must use decorators" and "TypeScript is not a server language" is unjustified. There are many approaches to validation and RTTI with TS. For example, you can generate JSONSchema from your TS types (see https://github.com/danvk/crosswalk for an example of this approach) or you can use a tool like Zod (https://zod.dev/) to declare your schemas as runtime values and derive TS types from those.
Writing your backend in Java or C# comes with its own issues, i.e. you can't share code between backend and frontend.
-
tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy
I built something that sounds very similar at my last company called crosswalk. Open sourced here: https://github.com/danvk/crosswalk
One thing that worked surprisingly well: codegen TypeScript types from your database and use those in your API schema.
- recommended design pattern for TS+express?
ts-websocket-compressor
-
tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy
Update: I've implemented a simple TS library around this: https://github.com/TimonLukas/ts-websocket-compressor
I will add wrappers for WebSocket/WebSocketServer in the future to allow using this without the library having to support it, like in the PoC with trpc.
What are some alternatives?
vellum-client-generator - Vellum’s Fern API which is used to generate SDKs.
telefunc - Remote Functions. Instead of API.
sdk-node - Node.js SDK for the Squidex API
fern-java - Generate Java models, clients, and server interfaces from your API definition.
oto - Go driven rpc code generation tool for right now.
zact - Nothing to see here
transmission-material-ui - Web Interface for Transmission using React and MUI.
vellum-client-python - Python SDK for Vellum API
electron-trpc - Build type-safe Electron inter-process communication using tRPC
openapi-typescript - Generate TypeScript types from OpenAPI 3 specs