Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

AFFiNE Importer - quickly and easily import your existing content into AFFiNE.

License

Notifications You must be signed in to change notification settings

ShortCipher5/AFFiNE-Importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFFiNE-importer

AFFiNE (https://github.com/toeverything/affine) is a next-gen knowledge base.

At the time of creation, app.affine.pro does not have an API so you can use this script to quickly and easily import Markdown .md files into your own AFFiNE workspace.

Run

npm run start

Setup

Create an .env file and define the variables

DEBUG = false
TARGET_URL = app.affine.pro
WORKSPACE_NAME = new_affine_workspace
LOGIN_TOKEN = myToken123
FILES_DIR = source/path/of/md/files

DEBUG = true|false If true, this mode allows you to see the browser and elements to be clicked will be highlighted

TARGET_URL = app.affine.pro the deployment of AFFiNE you wish to use

WORKSPACE_NAME = new_affine_workspace the name of your new workspace

LOGIN_TOKEN = myToken123 your login token, see below for more info

FILES_DIR = source/path/of/md/files the directory of your files to be uploaded

Login Token

For the login token, this value can be found in the developer console after you've logged into AFFiNE. Make sure you use the refresh token value. Screenshot 2023-03-02 at 14 15 49

About

AFFiNE Importer - quickly and easily import your existing content into AFFiNE.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published