Creating annotations, each requiring distinct metadata and content, distributed across a source document.
https://text-json-annotator.vercel.app/
- Upload text files to create json based annotations.
- Select text and hit Enter to create annotations.
- Customizable JSON structure for annotations.
- Export annotations as a JSON file.
- Preserve annotations across page reloads using IndexedDB.
- Upload a File: Drag and drop a text file or PDF into the designated area, or click to select a file.
- Customize JSON: Modify the JSON structure of the annotations in the JSON Configuration section.
- Select Text: Click and drag your mouse over the text to select the part you want to annotate.
- Create Annotation: Hit Enter or click the "Create Annotation" button to create an annotation for the selected text.
- Export Annotations: Click the "Export Annotations" button to download your annotations as a JSON file.
- Remove Selection: To remove a selection, simply select the same text again.
Customize the JSON structure of your annotations using the provided template. Available template features:
- {{text}}: The selected text.
- {{start}}: The start index of the selection.
- {{end}}: The end index of the selection.
- {{length}}: The length of the selection.
To run the project locally:
- Install Dependencies: Run
yarn
to install necessary dependencies. - Start the Development Server: Run
yarn dev
to start the development server. - Open in Browser: Open http://localhost:3000 to view the app.
This project is licensed under the MIT License.