Skip to content

Add size limit#40

Open
azirbel wants to merge 7 commits intomainfrom
size-limit
Open

Add size limit#40
azirbel wants to merge 7 commits intomainfrom
size-limit

Conversation

@azirbel
Copy link
Copy Markdown
Owner

@azirbel azirbel commented Jan 4, 2026

Size limit is set to 100KB — need to query the DB, consider what an appropriate limit would be, and email users with active documents over the limit.

This is part of a measure to keep costs manageable. See https://www.npoint.io/changelog for more info, quoted here:

n:point has happily been running for 7 years now, and still works well. I'm proud of it. It's currently handling about 10M requests/day, helping people all over the world run small apps and prototype.

However, the costs have started to become significant. Since n:point was built to quickly edit small config files, it doesn't cache as effectively as it could, and doesn't have strict size or rate limits. Over time, some large bins that are frequently accessed have contributed to a high bandwidth & storage cost and the site is now costing $500/mo to run.

I will consider a paid tier, but don't have the time to build it out at the moment. My priority is keeping the site online and free. So I'm updating the site to add usage limits and better caching. Thanks for understanding!

How it works:

  • Existing documents are still served as-is. The header is updated with a warning (ignore the 30KB, that's for testing):
image
  • New updates over MAX_CONTENTS_SIZE_BYTES are rejected
  • The frontend shows an error as you edit a large document, and saving is disabled
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant