go-quasar-partial-ssr/backend/pkg/ts-rpc
fabio b260daffed Refactor TypeScript RPC codebase and API structure
- Simplified error handling in `getFieldInfo` and `getFieldTsInfo` functions.
- Removed unused `getSourceInfo` function and its references.
- Updated `getStruct` method in `TSStruct` to eliminate source info retrieval.
- Cleaned up `TSSouces` population logic by commenting out unnecessary debug statements.
- Adjusted TypeScript source generation to use type imports instead of default imports.
- Consolidated API endpoints into dedicated files for better organization (admin, systemUtils, users).
- Introduced new types for API responses and requests to enhance type safety.
- Removed redundant code and comments from generated API files.
- Updated frontend components to reflect new API structure and types.
- Ensured consistent naming conventions and type usage across the codebase.
2026-04-26 14:31:25 +02:00
..
docs first commit 2026-03-16 20:03:59 +01:00
.DS_Store first commit 2026-03-16 20:03:59 +01:00
LICENSE first commit 2026-03-16 20:03:59 +01:00
README.md first commit 2026-03-16 20:03:59 +01:00
TSFiles.go Refactor TypeScript RPC codebase and API structure 2026-04-26 14:31:25 +02:00
tsApiTemplate.go feat(tsrpc): enhance TypeScript API generation with improved endpoint handling and imports 2026-04-15 18:25:31 +02:00
tsEndpoint.go Refactor TypeScript RPC codebase and API structure 2026-04-26 14:31:25 +02:00
tsExitOnError.go first commit 2026-03-16 20:03:59 +01:00
tsInfo.go Refactor TypeScript RPC codebase and API structure 2026-04-26 14:31:25 +02:00
tsStruct.go Refactor TypeScript RPC codebase and API structure 2026-04-26 14:31:25 +02:00
tsTagJson.go first commit 2026-03-16 20:03:59 +01:00
tsTagTs.go first commit 2026-03-16 20:03:59 +01:00
tsTsInfo.go Refactor TypeScript RPC codebase and API structure 2026-04-26 14:31:25 +02:00
tsrpc.go Refactor TypeScript RPC codebase and API structure 2026-04-26 14:31:25 +02:00

README.md

ts-rpc

typescript RPC


The ghost bridge from front-end to backend

This project is a POC - Proof of concept. The goal is to generate typescript code from golang using AST. So you can use intellisense in the development IDE.

itellisense!


Golang types traslation

Typescript: TSDeclaration

Typescript: TStype

Typescript: interface Struct tags

Typescript: TsEndpoint

Typescript: const

Typescript: enum


Server Examle

server examle


Can I use it/contribute?

Sure, but you should probably start your own from scratch. I built this in about one week and it was an interesting experience, I recommend you do the same. My goal was never to make good or reusable code, so it's neither good nor reusable. If you do decide to work on such a system, I would suggest adding the following:

  • Talk about ghost bridge over all the world
  • Suggest some ideas
  • Develop good reusable code
  • Add tests, comments and GoDoc
  • Be Happy

Alright then...

Cool. I'm on linkedin Golang nuts group https://www.linkedin.com/groups/3712244/ My linkedin page: https://www.linkedin.com/in/fabio-prada-a9159b75/ Discord channel #tsrpc: https://discord.com/channels/1046004205556617237/1046004333734531092