Search tldr

Telefunc

Telefunc replaces API-layer patterns such as REST, GraphQL, tRPC, and Server Actions with server-defined functions that can be called directly from the browser. It combines end-to-end TypeScript support, runtime validation, permissions, streaming, and broad framework compatibility.

Share

Telefunc

Author: Telefunc | Published: Unknown | Generated: 2025-06-05 | Domain: telefunc.com Tags: ‘#typescript’ ‘#rpc’ ‘#fullstack’ ‘#webdevelopment’ ‘#realtime’


TLDR

Telefunc is a remote-function framework that lets developers export server-side functions and import them in browser code; client imports are transformed into thin HTTP clients rather than shipping server code. It aims to simplify frontend–backend interaction by removing a separately designed API layer while retaining automatic runtime argument validation, programmatic permissions, streaming, real-time channels, and support for major JavaScript frameworks and bundlers.

Key Takeaways

  • Remote functions replace API endpoints: Functions defined in .telefunc.ts files are callable from the browser, with Telefunc issuing the underlying HTTP request to the server.
  • Server logic stays server-side: Browser imports do not load the server module; Telefunc transforms them into lightweight clients, enabling direct use of SQL or ORM queries within telefunctions.
  • End-to-end safety: TypeScript support includes IDE tooling, while runtime validation guarantees declared argument types—such as text: string—at execution time.
  • Permissions and resilience: The framework emphasizes programmatically defined permissions, advanced safety techniques, and hooks/configuration for aborts, bugs, middleware, headers, transports, and shielding.
  • Real-time workloads are first-class: Telefunctions can stream values for AI tokens, progress, and file transfers, and support real-time channels and broadcasts.

Images & Media

Keep reading