Über uns
Lightweight self-hosted bookmark dashboard and start page in Go, with no database dependency and optional offline mode, weather, editor, and login.
Daten und AnalyseWhat you can do
- Written in Go (Golang) and a little Modern vanilla Javascript only.
- HTTP stack: native Fiber v3 with a 64 KiB request reader.
- Doesn't depend on any database or any complicated framework.
- Single executable, no dependencies required, good docker support.
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
Flare
A lightweight self-hosted bookmark dashboard and start page, written in Go.
The current release is 0.7.0. It adds custom theme colors and themes that an instance brings itself, as theme files and as directories with a stylesheet, images and fonts; the bundled themes look as before. Read the release and upgrade notes before updating. See the documentation index for version scope and usage.
Features
Simple, Fast, Lightweight and super Easy to install and use.
- Written in Go (Golang) and a little Modern vanilla Javascript only.
- HTTP stack: native Fiber v3 with a 64 KiB request reader.
- Doesn't depend on any database or any complicated framework.
- Single executable, no dependencies required, good docker support.
- You can choose whether to enable various functions according to your needs: offline mode, weather, editor, account, and so on.
Bookmark import and export
The editor includes browser HTML and native Flare YAML import/export, with preview, duplicate handling, conflict detection, and automatic pre-import backups. See Bookmark transfer for usage and limits.
Themes
Fifteen themes are bundled. Since 0.7.0 the theme page also takes custom colors,
and an instance can bring themes of its own in a themes directory: a theme file
sets colors, style tokens, values for light and dark and layout options, and a
theme that is a directory adds a checked stylesheet, images and fonts. See
themes and custom colors, theme files
and theme stylesheets.
Screenshots
See the deployment screenshots. See the English and Chinese editor screenshots for the editor shipped in 0.6.5; older deployment screenshots show the earlier UI.
Documentation
Start with the documentation index, including configuration, backup/restore, reverse proxies, development builds and release availability.
Build and HTTP behavior
go run build/build.go
go build -o /tmp/flare .
/tmp/flare
Generate resources after a clean checkout or changes under embed/; see
build and test instructions.
Production and container builds use Fiber on its native fasthttp listener.
Native-listener regressions exercise that path; HTTP integration tests also use a
net/http compatibility adapter. Current source uses persistent server-side
authentication; the legacy Gorilla cookie adapter remains for compatibility tests
and embedders. See accounts and private access for version scope.
Request ownership uses Immutable; editor upload limits remain enforced.
The 64 KiB reader limits request lines and headers; requests exceeding its capacity can receive HTTP 431. Bodies have a
32 MiB global limit. Embedded favicon and SVG resources retain
net/http.ServeContent for conditional and range responses.
Performance records
Performance decisions and complete experiment index records the 1 MiB, default 8 KiB and 64 KiB comparisons, raw per-round data, server CPU/allocation profiles, and redirect optimization. The final choice is 64 KiB: memory is close to 8 KiB while allowing larger request headers and URLs. The measurements do not establish that Fiber uses less RSS than Echo.
Run the current Fiber baseline with ./scripts/baseline-metrics.sh. The original
in-process baseline includes client allocations; separate server measurements
and profiling use scripts/analyze-redirect.py. Historical Echo/Fiber comparisons
are replayed from a frozen experiment commit by scripts/compare-http-stacks.py;
Echo is no longer part of the production dependency graph. See
methods and reproduction for the two measurement scopes.
Container images
Published stable versions are available from both registries:
docker pull soulteary/flare:0.7.0
docker pull ghcr.io/soulteary/flare:0.7.0
Both images support linux/amd64, linux/arm64, linux/arm/v7, and
linux/arm/v6. The latest tag follows the current stable release. GHCR copies
the verified Docker Hub image by digest, so both registries contain the same
multi-platform image rather than separate builds. Existing containers still
need to be recreated after pulling an update.
See docker-flare for deployment examples and container publishing for the release workflow, verification, and historical backfills.
Access logs and Docker log rotation
HTTP access logs now default to failed requests (returned errors and HTTP 4xx/5xx).
Set FLARE_ACCESS_LOG=all or --access_log=all to restore ordinary access logs,
or use off to disable access logs. Application startup and diagnostic logs keep
their existing levels. The all mode keeps the existing successful health-check,
static-resource and redirect filters.
Container deployments also need Docker log rotation to bound retained logs.
See logging configuration and upgrade steps / 日志配置与升级说明
for the local driver with 10m files and a limit of 3 files, configuration
precedence, and rebuilding existing containers while preserving application data.
Accounts and private access
Version scope: stable 0.7.0 includes persistent single-administrator accounts, session revocation and per-entry/category privacy. Stable 0.6.7 retains the legacy login model. Use the documentation index to choose the matching instructions.
For 0.6.7, use FLARE_DISABLE_LOGIN=false to protect administration and also
FLARE_VISIBILITY=PRIVATE to protect the whole site. Per-entry private flags
alone do not protect data in 0.6.7. Preserve .flare-cookie-secret and configure
FLARE_COOKIE_SECURE=true when HTTPS terminates at a reverse proxy.
Current source restores the 0.4.0 defaults: login disabled, public navigation,
and immediate use without administrator initialization. Internal security state
is prepared automatically. Anyone who can access the instance can modify content
when the editor is enabled. Enable FLARE_DISABLE_LOGIN=false for protected
management; add FLARE_VISIBILITY=PRIVATE for whole-site protection. Previously
recorded private defaults remain effective. Published 0.6.8 used private defaults
for new installations; 0.7.0 retains the restored behavior already present in 0.6.12.
Persist the security directory as well as YAML. Read accounts,
configuration, upgrade/rollback,
backup/restore and reverse proxies
before changing an existing deployment.
Date, time and time zones
The optional live clock supports server, visitor-device and custom IANA time zones, with a static no-JavaScript fallback. Existing configurations keep their original static display. See clock configuration and behavior / 日期时间配置说明.
Project layout
build/ Resource generation
cmd/ Command-line and environment configuration
config/ Runtime models and configuration persistence
embed/ Web assets, templates and translations
internal/auth/ Authentication, accounts and request authorization
internal/security/ Persistent single-administrator security state
internal/requestsource/ Explicit external-origin and trusted-proxy policy
internal/bookmarks/ Bookmark import and export
internal/clock/ Clock rendering and time zones
internal/pages/ Homepage, editor and guide handlers
internal/resources/ Embedded assets, icons and templates
internal/search/ Search validation and local matching
internal/searchui/ Search presentation
internal/server/ HTTP routing and request protections
internal/settings/ Settings handlers
scripts/ Performance and release verification tools
tests/ Browser, container and release acceptance
docs/ User, operator and development guides
metrics-reports/ Historical measurements and release evidence
main.go Application entry point
Ähnliche Projekte entdecken
Wird geladen…