
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@lrpc/server
Advanced tools
Simple server aimed at making rapid back-end prototyping easier. Setup you functions on the server and call tem on the client as if it were the same codebase.
This is available as @lrpc/server on npm, so just install it as usual:
npm i @lrpc/server
# Or, with yarn
yarn add @lrpc/server
This package exports the createServer function, which creates an HTTP server using Node's internal http module.
createServer receives two parameters: and object with the functions you want to be able to call from the front-end (the handlers object), and an object with options.
import { createServer } from '@lrpc/server'
const server = createServer({
greet: ({ name }: { name: string }) => ({
ok: true,
data: {
greeting: `Hello, ${name}!`
}
})
})
server.listen(3000, () => { console.log('Listening on port 3000') })
Do note that your handlers must return an object containing, at least, the ok property, and that all data that you wish to send to the client must be inside data.
After that, your server is listening on port 3000, and is ready to be consumed by your client.
There are no automated testes yet, so that's the main contribution I'm looking for, right now, but every contribution is welcome.
Just fork this repo, make sure ESlint and Commitlint are happy with your code and commits, and PR 😄
lRPC stands for light Remote Procedure Calls. The idea for this came from a tweet.
FAQs
lRPC server package
We found that @lrpc/server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.