
Product
Introducing Immutable Scans
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.
@kilpi/core
Advanced tools
Kilpi Core · Kilpi is the authorization framework for full-stack TypeScript applications, designed for flexible, powerful, agnostic, intuitive and developer friendly authorization.
Kilpi is the open-source TypeScript authorization library designed for developers who need flexible, powerful, and intuitive authorization.
Designed and created by Jussi Nevavuori with ❤️ in Brisbane & Helsinki
...or any other framework - Kilpi is easy to integrate into any TypeScript application.
Define policies declaratively
// Kilpi.ts
export const Kilpi = createKilpi({
getSubject,
policies: {
documents: {
update(user, doc: Document) {
if (!user) return deny({ message: "Unauthenticated" });
return user.id === doc.ownerId ? grant(user) : deny();
},
},
},
});
Authorize actions with one line
const user = await Kilpi.authorize("documents:update", document);
Protect your data right at the source
const getDocument = Kilpi.query(async (id: string) => await db.documents.get(id), {
async protector({ output: doc }) {
if (doc) await Kilpi.authorize("documents:read", doc);
return doc;
},
});
await getDocument.protect("1");
And much more.
FAQs
Kilpi Core · Kilpi is the authorization framework for full-stack TypeScript applications, designed for flexible, powerful, agnostic, intuitive and developer friendly authorization.
The npm package @kilpi/core receives a total of 36 weekly downloads. As such, @kilpi/core popularity was classified as not popular.
We found that @kilpi/core demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.