Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ShortCipher5/affine-importer
AFFiNE Importer - quickly and easily import your existing content into AFFiNE.
https://github.com/ShortCipher5/affine-importer
Last synced: 8 days ago
JSON representation
AFFiNE Importer - quickly and easily import your existing content into AFFiNE.
- Host: GitHub
- URL: https://github.com/ShortCipher5/affine-importer
- Owner: ShortCipher5
- License: mpl-2.0
- Archived: true
- Created: 2023-03-02T06:08:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-03T07:29:51.000Z (over 1 year ago)
- Last Synced: 2024-08-02T00:25:24.038Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-affine - affine-importer - a tool that can help you import your data into AFFiNE (Tools)
README
# 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.