Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Holectus

Document collection infrastructure for developers — a document collection API and React embeds for upload, review, expiry, and renewal inside your product, with signed webhooks.

Add document collection to your project in minutes — plug-n-play React components, a typed client, and webhooks against the hosted Holectus API.

Client SDKs (@holectus/core, @holectus/react, @holectus/next) are MIT on npm.

SDK and docs are ready; the hosted product is in open beta.

Install

npm install @holectus/react @holectus/core

On Next.js App Router, also install @holectus/next for createHolectusSessionRoute.

Quickstart

  1. Create an API key in the Holectus dashboard.
  2. Add a server session route that mints tokens via POST /api/auth/token (Next.js: createHolectusSessionRoute from @holectus/next).
  3. Mount DocumentChecklist (subject uploads) or DocumentManager (admin review).
import { DocumentChecklist } from '@holectus/react';
import '@holectus/react/styles.css';

export function SubjectDocuments({ subjectId }: { subjectId: string }) {
  return (
    <DocumentChecklist
      tokenEndpoint={`/api/holectus/session?subjectId=${encodeURIComponent(subjectId)}`}
    />
  );
}

Learn more

License

Published SDK packages are MIT. See LICENSE.

About

Add document collection to your project in minutes. The document collection infrastructure for developers, with plug-n-play React components.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors