Type-Safe RPC with jstack
Featul uses jstack, a type-safe RPC framework built on top of Hono, to provide full end-to-end type safety between the server and client. Unlike traditional REST APIs, jstack gives you:- Full TypeScript type safety - autocomplete and type checking for all API calls
- Automatic validation - runtime validation with Zod schemas
- Simple client usage - no need to manually define types or handle serialization
- Built on Hono - fast, lightweight, and edge-ready
Client Usage Pattern
All API calls follow the same pattern:HTTP Methods
The client uses special suffixes to indicate the HTTP method:.$get()- GET request.$post()- POST request.$put()- PUT request.$delete()- DELETE request
Response Handling
All responses are standard Fetch API Response objects:SuperJSON Support
Featul uses SuperJSON for serialization, allowing you to pass and receive:- Dates (automatically serialized/deserialized)
- BigInt values
- Regular expressions
- Maps and Sets
API Structure
The API is organized by resource:client.workspace.*- Workspace managementclient.board.*- Board and tag operationsclient.post.*- Post (feedback) creation and updatesclient.comment.*- Comments and mentionsclient.changelog.*- Changelog entriesclient.member.*- Member activity and statistics
Next Steps
Authentication
Learn about session-based authentication
Workspaces
Manage workspaces and settings
Posts
Create and manage feedback posts
Comments
Handle comments and mentions