# Vague plan > [!NOTE] > This is simply a guidance for development. Nothing here is final or guranteed. | Command | Description | | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `anical generate --id ` | Generates an ICS file at ``. The `--id` flag is optional and takes priority over the AniList ID set in the environment. | | `anical fetch --id ` | Fetches dates and returns to STDOUT without saving. The `--id` flag is optional and takes priority over the AniList ID set in the environment | | `anical install [--user]` | Installs the AniCal server as a systemd service. System-wide by default; `--user` installs it as a user service using `systemctl --user`. | | `anical uninstall [--user]` | Removes the AniCal server service. Use `--user` to remove a user service instead of the system-wide one. | | `anical serve [flags] [--config ]` | Runs the server directly without installing it. Reads the config file at `` if given, otherwise uses the flags. Flags take priority over the config file. | | `anical config set ` | Sets a config value by dotted path, such as `global.notify.email.username`. Checks that the value matches the expected type before writing. | | `anical config get ` | Prints the value at a dotted config path, such as `global.notify.email.username`. | The project is written in Go, and it uses Lua for scripting. TOML, YAML, or JSON config all works WebDAV support which alters a webdav to add the dates directly via the WebDAV subset of commands (i.e. `anical webdav fetch --id ...`). WebDaV and normal installations can live side by side without breaking. WebDAV serve can either periodically modify an existing webdav or serve a custom implemented read only. Manga support for notifications on new chapters Proper credits to services I use and clean up github. Proper documentation and cleaned up repo. Utilise gitea wiki. Proper utilisation of ical format (i.e. for weekly releases, auto detect and use repeating event, or event length be the real episode length). Movie detection (either based on length, or if possible anilist api) More granualar cache (based on show release schedule) These configs are just an idea and can be added to or changed | Config | Description | | --------------- | ------------------------------------------------------------------------------------------------------------------ | | Cache lifetime | How long the cache can be before declared stale (on request with stale cache, refetch and regenerate just in time) | | Anilist user id | Anilist user id | | Media format | Manga, Anime or both | | Lists | Anilists to fetch from | | Split data | True or false, either combine manga.ics and anime.ics or serve from two different paths. | Plugin support written in Lua - Hooks e.g. when regenerating or when someone fetches the list - Middleware e.g. altering the web fetching or any component really such as altering returned ics - Plugins e.g. api that adds new webserver paths To install a plugin you just make a folder pluginname and then inside you populate with subfolders required for the plugin: | Folder | Description | | ---------- | ---------------------- | | hooks | Hook lua scripts | | middleware | Middleware lua scripts | | plugins | Plugin lua scripts | Custom folders can be created and will be ignored by anical, i.e. a config folder which a plugin reads and generates hooks and middleware files from. Plugins cannot be created at runtime, hooks and middleware can. Running hooks and middleware is atomic so it never exits unfinished ## Folder structure ```text assets/ ├── anical.png └── banner.png internal/ ├── config.go # load and parse configs, including flags ├── fetch/ │ ├── format/ │ │ ├── manga.go # format manga-related data │ │ └── anime.go # format anime-related data │ └── fetch.go # wrapper for fetching, including caching ├── calendar/ │ ├── ical.go # generate iCal output │ └── webdav/ # WebDAV server components ├── debug/ │ └── debug.go # extra information shown in debug mode └── plugin/ ├── luaApi.go # interface between Go and Lua plugins └── plugin.go # manage and run plugins main.go .gitignore go.mod go.sum LICENSE readme.md todo.md ``` ## Other - [ ] Add web view and web gui - [ ] Add tray icon - [ ] Make it so if you open the app from tray or from desktop file it opens in defualt browser - [ ] Multi user? - [ ] Make gitea workflows & Makefile + make install and so on