Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

UserStyles.world

Free/Libre and Open-Source platform for hosting userstyles.
Collective - Host: opensource - https://opencollective.com/userstyles - Website: https://userstyles.world - Code: https://github.com/userstyles-world

chore(db): implement a migration for OAuth rewrite

github.com/userstyles-world/userstyles.world - a01d495231440364113a50e2cfd3dd5d06e0d7a2 authored almost 2 years ago by vednoc <[email protected]>
feat(ui): add back weekly updates for userstyles

I may have forgotten to add this back a *really* long time ago.

github.com/userstyles-world/userstyles.world - e3de576bc17785d7ec6b2171e7f3387973280317 authored almost 2 years ago by vednoc <[email protected]>
Merge PR 'rewrite-oauth-storage' into dev (#137)

github.com/userstyles-world/userstyles.world - fce684f0c5f2aa20fc04a10771652d19470298c2 authored almost 2 years ago by vednoc <[email protected]>
fix(util): remove trailing dash from slug URL

github.com/userstyles-world/userstyles.world - f05f5e786c4030b33a19a9c51e52b04f92f70b71 authored almost 2 years ago by vednoc <[email protected]>
fix(oauth): rewrite OAuth v1 to v2 migration

github.com/userstyles-world/userstyles.world - 969a43b2438ce1d239ed77e8f79355739943d45c authored almost 2 years ago by vednoc <[email protected]>
feat(db): add database stats to Prometheus

github.com/userstyles-world/userstyles.world - d54521c62bb205a51d519ef0846d273ed5fdafcb authored almost 2 years ago by vednoc <[email protected]>
chore(deps): bump github.com/prometheus/client_golang (#147)

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1....

github.com/userstyles-world/userstyles.world - d04228277ca5bcf051a8794e9a4d246f0bdb0954 authored almost 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump golang.org/x/image (#146)

Bumps [golang.org/x/image](https://github.com/golang/image) from 0.0.0-20220413100746-70e8d0d3ba...

github.com/userstyles-world/userstyles.world - 96896d0239c8e0b20e030a0d21a82b11f5498395 authored almost 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
perf(api): remove LRU cache to test some things

As per @Gusted's suggestion.

github.com/userstyles-world/userstyles.world - 7b8d78d6f7ebebb233890ec7a29104f4100ba556 authored almost 2 years ago by vednoc <[email protected]>
feat(cache): improve how in-memory cache is used

github.com/userstyles-world/userstyles.world - 0af4d1f4e4467d575ac87861101240e53d3a21bd authored almost 2 years ago by vednoc <[email protected]>
refactor(api): simplify compact index endpoint

Generating compact index on-demand is bad when multiple users try to
access it at the same time....

github.com/userstyles-world/userstyles.world - f04cee478b67c5e871bcfcdd23850469ffd3de4d authored almost 2 years ago by vednoc <[email protected]>
perf(api): generate compact index in chunks

It doesn't need to generate the index instantly since that causes large
CPU spikes when there ar...

github.com/userstyles-world/userstyles.world - f70ff947d299d31e4a0f633f01bfc4e52164acc0 authored almost 2 years ago by vednoc <[email protected]>
feat(api): add metrics endpoint for Prometheus

github.com/userstyles-world/userstyles.world - 965ad73f89ec38c6feca0a09468e427637dda514 authored almost 2 years ago by vednoc <[email protected]>
chore(deps): bump github.com/gofiber/fiber

github.com/userstyles-world/userstyles.world - fd010cde190325e9e5d5e1e497acac0b2392002b authored almost 2 years ago by vednoc <[email protected]>
chore(deps): bump golang.org/x/net (#144)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20221014081412-f15817d10f9b t...

github.com/userstyles-world/userstyles.world - f6e7fd0180dea8f89a9229c545a240e5cea4e5a8 authored almost 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix(mirror): re-enable mirroring userstyles

*cough* Nothing to see here. *cough*

In all seriousness, this is test code from my development ...

github.com/userstyles-world/userstyles.world - 5e7830ca5e5e5aaaab6461721f06330c78f3120c authored almost 2 years ago by vednoc <[email protected]>
perf(api): bypass middlewares for some routes

github.com/userstyles-world/userstyles.world - 9aed78e590dc925a2f40cd183b4fce0b3cb8198f authored almost 2 years ago by vednoc <[email protected]>
chore(db): remove code for latest migration

github.com/userstyles-world/userstyles.world - 44dd9330b8a52834a13d3c6ee47e1e0f3e76ac4b authored almost 2 years ago by vednoc <[email protected]>
Merge branch 'rewrite-archive' into dev

Fixes #101

github.com/userstyles-world/userstyles.world - 591ff633505612e70e8ef486fb1bb69495822485 authored almost 2 years ago by vednoc <[email protected]>
feat(db): add migration for data in styles table

github.com/userstyles-world/userstyles.world - 5316e56d13d220a0c84f7c8acedc5b3881086ee1 authored almost 2 years ago by vednoc <[email protected]>
perf(api): optimize performance for code endpoint

Due to recent changes, this step is no longer necessary. As a result,
it should lead to signifi...

github.com/userstyles-world/userstyles.world - 9174a8606f97b77b278301e2f3029cd7845b01e0 authored almost 2 years ago by vednoc <[email protected]>
feat(archive): remove `@updateURL` metadata fields

Now, this is a lot better than my previous idea. At least, it seems to
be better at this time. ...

github.com/userstyles-world/userstyles.world - ce9d44282a1c9a9f94c991b99c1f34f7b2d02012 authored almost 2 years ago by vednoc <[email protected]>
refactor(archive): improve code consistency

github.com/userstyles-world/userstyles.world - c565e9bfebeb28340dcd95a7ec4c1153caaeef71 authored almost 2 years ago by vednoc <[email protected]>
fix(archive): include pages for old USo-archive

github.com/userstyles-world/userstyles.world - 646d0ecf57bde5cb0886f19e3198a17250dc5c1a authored almost 2 years ago by vednoc <[email protected]>
fix(ui): allow old and new USo-archive URLs

github.com/userstyles-world/userstyles.world - 094b7aeb09959260ea398c2e9d46b895405faa0e authored almost 2 years ago by vednoc <[email protected]>
fix(import): include a fallback for preview images

github.com/userstyles-world/userstyles.world - f8138d2059086920eb75b6344c2a4204b6786fc6 authored almost 2 years ago by vednoc <[email protected]>
feat(style): switch to URL rewrites and overrides

I'm not a fan of this workaround because the second query seems
unnecessary and it can potential...

github.com/userstyles-world/userstyles.world - 76f514dda2425e98af99ab7fe15146acba1f0c65 authored almost 2 years ago by vednoc <[email protected]>
feat(archive): make `extractID` more flexible

github.com/userstyles-world/userstyles.world - 4ba2f4f28549896e51e0abf8c6231cd22e5bc4b1 authored almost 2 years ago by vednoc <[email protected]>
feat(archive): include all USo-archive URLs

github.com/userstyles-world/userstyles.world - 01072a21e99d1505a8954fd54baf75572991755a authored almost 2 years ago by vednoc <[email protected]>
feat(archive): implement a way to consolidate URLs

github.com/userstyles-world/userstyles.world - 9de5bb8a147bf2d8f540ba49b8c188fbad732f20 authored almost 2 years ago by vednoc <[email protected]>
refactor(utils): extract code for USo-archive

github.com/userstyles-world/userstyles.world - 80be97185ebb04872880615af34cffbce514fcdd authored almost 2 years ago by vednoc <[email protected]>
feat(api): add a simple health endpoint

github.com/userstyles-world/userstyles.world - 4ae0439305c3220b8f953e2a92e804c8d8718c1f authored almost 2 years ago by vednoc <[email protected]>
Merge branch 'flatten-util-package' into dev

github.com/userstyles-world/userstyles.world - 4248ee782066d535156cf0d7fca3a88acd542fe8 authored almost 2 years ago by vednoc <[email protected]>
perf(util): optimize `HashIP` function

The 2 leftover allocations seem to be from the underlying machinery, but
I'm guesstimating here ...

github.com/userstyles-world/userstyles.world - a0dbb63e6b806aabf627b390d9ccf6e8b1e9ea15 authored almost 2 years ago by vednoc <[email protected]>
test(util): add benchmark for `HashIP` function

github.com/userstyles-world/userstyles.world - d9a6cdfdb374f54fc35291cf41f355443822207e authored almost 2 years ago by vednoc <[email protected]>
refactor(util): move `crypto` to `util` package

github.com/userstyles-world/userstyles.world - 818c19ecceed8a41e6de654de29bec4e48e36d36 authored almost 2 years ago by vednoc <[email protected]>
Merge branch 'rewrite-rel-time' into dev

github.com/userstyles-world/userstyles.world - f47bd29ec2dfceb6e4e22b90184317c913590bed authored almost 2 years ago by vednoc <[email protected]>
test(util): simulate our static files for FS tests

github.com/userstyles-world/userstyles.world - 837ab7e6c78218b62052419970c395d601bcde8b authored almost 2 years ago by vednoc <[email protected]>
refactor(util): simplify code for embedding files

github.com/userstyles-world/userstyles.world - f8a0382e63a2374200bc7aa9fb8164aacf0f440c authored almost 2 years ago by vednoc <[email protected]>
refactor(util): simplify embedding internal files

github.com/userstyles-world/userstyles.world - 6cd243974714ae42f4f61bd7545bf20f600780d9 authored almost 2 years ago by vednoc <[email protected]>
docs(util): add package documentation for `godoc`

github.com/userstyles-world/userstyles.world - da858cb0ae2cc0ad0419f9bf07f2946b17cc1825 authored almost 2 years ago by vednoc <[email protected]>
refactor(util): move real IP header to config

github.com/userstyles-world/userstyles.world - 0b8c70fafa0a8a2cb50d6b48edc96fb2b1b4b512 authored almost 2 years ago by vednoc <[email protected]>
refactor(util): move `httputil` to `util` package

github.com/userstyles-world/userstyles.world - 1925533252c2adde26a6f955579e4063c3910c6e authored almost 2 years ago by vednoc <[email protected]>
feat(templates): switch to new `RelTime` function

github.com/userstyles-world/userstyles.world - 2e835da276f055603adb4a82fa041bc0e2dec5d1 authored almost 2 years ago by vednoc <[email protected]>
perf(util): optimize `RelTime` function

Currently, this function is 4–7 times faster and doesn't create any
memory allocations in compar...

github.com/userstyles-world/userstyles.world - ce86ace9fadb5a453f4598516ce6813699ae23cc authored almost 2 years ago by vednoc <[email protected]>
feat(util): implement weeks, months, and years

I also improved correctness because the code beforehand wasn't
subtracting processed time.

github.com/userstyles-world/userstyles.world - 21f1d17d51efb0c9c76393cda2a451a74034b206 authored almost 2 years ago by vednoc <[email protected]>
refactor(util): add helpers for time constants

github.com/userstyles-world/userstyles.world - 04533eb2d369bee581fcf022a78e766e37e10d41 authored almost 2 years ago by vednoc <[email protected]>
refactor(util): simplify counting maximum parts

```
benchmark old ns/op new ns/op delta
BenchmarkRelTime/now-8 ...

github.com/userstyles-world/userstyles.world - c1c8f540d95803226309a5054bd1481198859143 authored almost 2 years ago by vednoc <[email protected]>
refactor(util): simplify writing to byte slice

```
benchmark old ns/op new ns/op delta
BenchmarkRelTime/now-8 ...

github.com/userstyles-world/userstyles.world - f37abed0606a46a394a2269a95c5d39eb02f92ea authored almost 2 years ago by vednoc <[email protected]>
refactor(util): convert `strings.Builder` to bytes

```
benchmark old ns/op new ns/op delta
BenchmarkRelTime/now-8 ...

github.com/userstyles-world/userstyles.world - 4541a5f260f58428c8f1beefd2cb6c4e12d4d304 authored almost 2 years ago by vednoc <[email protected]>
feat(util): limit granularity to just two parts

github.com/userstyles-world/userstyles.world - d71bda35317421e918ce62a2c8b47b34a42ef25a authored almost 2 years ago by vednoc <[email protected]>
feat(util): increase granularity for relative time

github.com/userstyles-world/userstyles.world - df153b188bd4f672b180077d0eff7ad1d892333b authored almost 2 years ago by vednoc <[email protected]>
test(util): add tests and benchmarks for proxy

github.com/userstyles-world/userstyles.world - 98efd2a2ad5efc7d1ce44df77d7d8dadbf7c4222 authored almost 2 years ago by vednoc <[email protected]>
feat(util): add singular numbers to relative time

github.com/userstyles-world/userstyles.world - 888e3be8ba98d87fe2dd3f06e70f3e8d1f5c0e8d authored almost 2 years ago by vednoc <[email protected]>
test(util): add benchmarks for time functions

```
goos: linux
goarch: amd64
pkg: userstyles.world/modules/util
cpu: AMD FX(tm)-8350 Eight-Core...

github.com/userstyles-world/userstyles.world - bd07dfbb7f98b26652ea7d89e62d71c6d24ac621 authored almost 2 years ago by vednoc <[email protected]>
feat(util): implement a simple `RelTime` function

The idea is to increase granularity since the function from humanize
package doesn't provide thi...

github.com/userstyles-world/userstyles.world - d2bf5ecb33130b89eb594b12a41a0326f776c8f3 authored almost 2 years ago by vednoc <[email protected]>
Merge branch 'rewrite-rel-numbers' into dev

github.com/userstyles-world/userstyles.world - 513ace6cfb250f49dd20ec7980424316548dbc82 authored almost 2 years ago by vednoc <[email protected]>
refactor(util): inline code for slug separators

github.com/userstyles-world/userstyles.world - 24f087f0d0610e26527b21f860ee001f86cc9a8a authored almost 2 years ago by vednoc <[email protected]>
perf(util): simplify uppercase-to-lowercase logic

```
benchmark old ns/op new ns/op delta
BenchmarkSlu...

github.com/userstyles-world/userstyles.world - 2ac9d970660c43ea02afb23601c6b95f18164deb authored almost 2 years ago by vednoc <[email protected]>
perf(util): remove allocations from `Slug`

```
benchmark old ns/op new ns/op delta
BenchmarkSlu...

github.com/userstyles-world/userstyles.world - 944c9f161c49a374fa0accbdecc0d64c30438d3b authored almost 2 years ago by vednoc <[email protected]>
chore(util): remove unused code

github.com/userstyles-world/userstyles.world - c069b8c4e74f126d5f98ddd5657dc96cfddad66c authored almost 2 years ago by vednoc <[email protected]>
perf(util): optimize `Slug` function

```
benchmark old ns/op new ns/op delta
BenchmarkSlu...

github.com/userstyles-world/userstyles.world - b91f5e96c02c71d1f1cfa05d8986544fa602b166 authored almost 2 years ago by vednoc <[email protected]>
test(util): add benchmark for `Slug` function

```
goos: linux
goarch: amd64
pkg: userstyles.world/modules/util
cpu: AMD FX(tm)-8350 Eight-Core...

github.com/userstyles-world/userstyles.world - 377cc2361070736ddf6ea115b6e5c75f0c781f3a authored almost 2 years ago by vednoc <[email protected]>
refactor(util): rename `SlugifyURL` to `Slug`

github.com/userstyles-world/userstyles.world - d313b76a10e018194c998e1fbc83f1413dd8983d authored almost 2 years ago by vednoc <[email protected]>
test(util): tidy up code for slug tests

github.com/userstyles-world/userstyles.world - ba20ae635e1cac24916aff477b6a2ac353a04f60 authored almost 2 years ago by vednoc <[email protected]>
refactor(util): move `strutils` to `util` package

github.com/userstyles-world/userstyles.world - 0d6cebd9e32bc03fe2109655c3b737953b83cbd5 authored almost 2 years ago by vednoc <[email protected]>
perf(util): speed up appending numbers even more

Single-precision floating-point numbers are sufficient for this task.

```
benchmark ...

github.com/userstyles-world/userstyles.world - 30a00fec9f03df63e49fbee58d5aeae780956f88 authored almost 2 years ago by vednoc <[email protected]>
refactor(util): switch to 'K' letter for thousands

Just for the sake of consistency.

github.com/userstyles-world/userstyles.world - fd54b44ce57eb829d2f7cd225dabe3b1f46deaaf authored almost 2 years ago by vednoc <[email protected]>
refactor(oauth): relocate `ProfileURL` function

github.com/userstyles-world/userstyles.world - 380577f489e095efb07abd708f1c800ddbe6c7cc authored almost 2 years ago by vednoc <[email protected]>
fix(util): resolve rounding issues in edge-cases

```
benchmark old ns/op new ns/op delta
BenchmarkRelNumber/100T-8 ...

github.com/userstyles-world/userstyles.world - 8ec74738e673f8d6a5fea32cf36daf815f33be3b authored almost 2 years ago by vednoc <[email protected]>
feat(util): add support for billions and trillions

I've just changed my mind. In the future, this function will also be
used in places where numbe...

github.com/userstyles-world/userstyles.world - cd338dd0609d4644c939115f5d1a19748760e0c1 authored almost 2 years ago by vednoc <[email protected]>
fix(oauth): include OAuth provider in migrations

github.com/userstyles-world/userstyles.world - b8364b739033be9a992d18c9c31539d72411c44c authored about 2 years ago by vednoc <[email protected]>
refactor(templates): simplify passing a function

github.com/userstyles-world/userstyles.world - 404e1f76721ee3a2bab431250d5bb3281d8d6339 authored about 2 years ago by vednoc <[email protected]>
test(util): simplify test data for `RelNumber`

github.com/userstyles-world/userstyles.world - d357c09a3c2bbbfdd14fe7ee59775cfa583453e9 authored about 2 years ago by vednoc <[email protected]>
feat(util): increase float precision to 2 decimals

```
benchmark old ns/op new ns/op delta
BenchmarkRe...

github.com/userstyles-world/userstyles.world - 341d3875e541431b6417f3e5bdb28b42255cc926 authored about 2 years ago by vednoc <[email protected]>
feat(util): add support for numbers over a million

We're probably not going to need this upper limit, so I don't think I'll
be adding additional ca...

github.com/userstyles-world/userstyles.world - c5234b5c0eac480c17147742a837f0f62de2711a authored about 2 years ago by vednoc <[email protected]>
perf(util): add optimization for small numbers

It's fascinating how the underlying function optimizes small numbers.
With this guard in place, ...

github.com/userstyles-world/userstyles.world - b16209a18ba971d5d7e29ab5bfd1a3ab039eca21 authored about 2 years ago by vednoc <[email protected]>
perf(util): remove allocations and improve speed

It's pretty interesting that there's a performance regression in "tens"
test. I'm not entirely ...

github.com/userstyles-world/userstyles.world - 0c1cc7de8158408435f91a7f855d578f3fa64cbb authored about 2 years ago by vednoc <[email protected]>
refactor(util): simplify `RelNumber` function

```
benchmark old ns/op new ns/op delta
BenchmarkRe...

github.com/userstyles-world/userstyles.world - 2aba088bb5fdd5c0b8b536cd16b1af83051a8003 authored about 2 years ago by vednoc <[email protected]>
test(util): add benchmark for `RelNumber` function

github.com/userstyles-world/userstyles.world - 116e4d4eabcaaed93c52323a43c6b9274e242878 authored about 2 years ago by vednoc <[email protected]>
refactor(util): move `RelNumber` to a new package

github.com/userstyles-world/userstyles.world - 7c0f00b2614a7ba16613d035631b127e796ba0a9 authored about 2 years ago by vednoc <[email protected]>
chore(security): switch to a new GPG key

github.com/userstyles-world/userstyles.world - 5ef7f99a96d77a7ae734d0f7dde218c9dd5a6021 authored about 2 years ago by vednoc <[email protected]>
refactor(oauth): update return values

github.com/userstyles-world/userstyles.world - c1542156ef1e40d48b124295fed4d21e44a25127 authored about 2 years ago by vednoc <[email protected]>
chore(oauth): remove dead code

github.com/userstyles-world/userstyles.world - 87217ed02c4c6d605f552d4e33ad7813192bcd9e authored about 2 years ago by vednoc <[email protected]>
fix(db): add external_users table to migrations

github.com/userstyles-world/userstyles.world - 23c6c501d90466f8425c232c587b8b24c8863f35 authored about 2 years ago by vednoc <[email protected]>
fix(oauth): rewrite how external info is stored

github.com/userstyles-world/userstyles.world - 43b0ea0603edd4422fb782618efeb6e0828081ff authored about 2 years ago by vednoc <[email protected]>
fix(monitor): add a workaround for empty addresses

github.com/userstyles-world/userstyles.world - dce4344472f5ff1055c592e4eaa30827b15bbb7d authored about 2 years ago by vednoc <[email protected]>
fix(ui): use a proper `error` var in alert partial

github.com/userstyles-world/userstyles.world - a20e866e6335e7051c23536e4ad6d386a60edf38 authored about 2 years ago by vednoc <[email protected]>
feat(monitor): allow introspection in production

@Gusted I think you might like this.

github.com/userstyles-world/userstyles.world - c24bb55f037335e5129871605706d931cba148b6 authored about 2 years ago by vednoc <[email protected]>
refactor(ui): temporarily disable history charts

github.com/userstyles-world/userstyles.world - da04e6a51ba9b1eb968ae88175dec3cf59306dba authored about 2 years ago by vednoc <[email protected]>
fix(ui): check pagination bounds on profile page

Shoutout to multiple people on Discord for reporting this bug.

github.com/userstyles-world/userstyles.world - f5efe6d434704c8900453f66f79d931937df96a6 authored about 2 years ago by vednoc <[email protected]>
fix(ui): fill the thumbnail area in style cards

References bacdc4c

github.com/userstyles-world/userstyles.world - 2ff2becf6e773d0b1f25f4f7e5004fae3ab3c6ad authored about 2 years ago by vednoc <[email protected]>
fix(login): use lax mode for authorization cookie

If you still experience issues, log out and back in to resolve them.

Fixes #126

github.com/userstyles-world/userstyles.world - 4654b1fe6f285c6df96f06b0c23845968fb82ba8 authored about 2 years ago by vednoc <[email protected]>
fix(ts): include full URL when redirecting

Fixes #126

github.com/userstyles-world/userstyles.world - beaa05ed705d39374e2bf4f5a7836cbb2962e44e authored about 2 years ago by vednoc <[email protected]>
fix(register): enable verify endpoint

Mistakes were made.

github.com/userstyles-world/userstyles.world - 3e54c71393821093de48d5d7b6dc027be63d5a67 authored about 2 years ago by vednoc <[email protected]>
fix(oauth): temporarily disable this functionality

References #134

github.com/userstyles-world/userstyles.world - 3a904033102a87a5aebb4c9e27475ced0c8896a4 authored about 2 years ago by vednoc <[email protected]>
fix(styles): optimize what we render on view page

We don't need to run expensive queries just to show them to bots. For
what it's worth, Fedivers...

github.com/userstyles-world/userstyles.world - 9d894346131b42eb68dad701a8b2e4232cb0ad08 authored about 2 years ago by vednoc <[email protected]>
feat(cache): introduce caching for installs/views

This change should reduce a bunch of I/O-related issues since we're
running upsert queries non-s...

github.com/userstyles-world/userstyles.world - d8ee0cfa1e06720c4c9f748bdf4443199e123be7 authored about 2 years ago by vednoc <[email protected]>
fix(ui): pass sort method to templates

References #131

github.com/userstyles-world/userstyles.world - 45d20fd56254879a569e744487496491dddaf2b0 authored about 2 years ago by vednoc <[email protected]>