twurl
nanoid
twurl | nanoid | |
---|---|---|
42 | 83 | |
1,790 | 23,227 | |
0.1% | - | |
2.2 | 8.4 | |
10 months ago | 5 days ago | |
Ruby | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
twurl
-
ManyShiba - The World's Greatest Twitter Bot
After registering a Twitter App, make sure to enable Read/Write permissions in the App settings. Create an .env file in the root of the project based on .env.example. We can use this data in our file with an object like this:
-
Error 453 - Tweepy with Python
Hello guys! I have spent a few hours now, trying to get my tweepy to work. I have made an app on developer.twitter.com, trying to post somwthing on twitter. I feel like I have tried everything, and I have even consulted my friend ChatGPT for help, but I keep getting lost in the documentation and GPT is of no help in this case!
-
AmputatorBot: Saluting 1K Members and Waving Off Twitter
Please visit developer.twitter.com to sign up to our new Free, Basic or Enterprise access tiers.
-
I made an open-source app to export your Reddit or Twitter Bookmarks directly into Notion.
In the meantime, you can learn more about the Twitter API v2 and find resources on developer.twitter.com. We appreciate your continued interest in developing on the Twitter API.
-
Building your own Twitter Thread Generator
As a prerequisite, you need a Twitter Developer account. With a Twitter account, it's easy: navigate to https://developer.twitter.com and register a new app. Make sure that you create a Twitter app that has read and write permissions!
-
Some popular accounts likely to disappear from Twitter as Elon Musk ends free access to API
This kind of has us scrambling a bit, actually. Not because we'd have to pay per se, but rather we've been using their API for so long on our website (and def still on v1.1) that now when we check the developer site it just funnels to a "Sign up" and no longer shows us our existing/old apps, so we cannot find/figure out which account was linked to our production credentials (and that's really on us for not staying on top of which account that was).
-
Take ownership of your Twitter data, set-up your own Twitter updated archive in GitHub
To start the process to become a "Twitter developer" visit developer.twitter.com, sign-in and start the process... It may be an annoying process with manually reviews.
-
20 Unique APIs For Your Next Project
Twitter API
-
Create a Twitter bot in python - part 1
2 - Create a developer account that you will associate with your Twitter account. To do this, go to https://developer.twitter.com. You click on Sign up, then you will have to follow the instructions and choose the Bot option for the use you will make of the API. Once you have created your account, you will be assigned a Bearer Token. Keep it safe, as you will need it to make your requests later.
-
How to use Twitter OAuth 2.0 and Passport.js for user login
To start using Twitter API, you need to register for a developer account (including phone number verification). Once you register, you will be prompted to create the first application. You will immediately receive API Key and API Key Secret – but ignore them, since these are only for OAuth 1.0. Instead, go to your project's dashboard, there go to the App Settings of the only application you created. In application settings, find User authentication settings and click Set up.
nanoid
-
Next.js and Bunny CDN: Complete Guide to Image Uploading with Server Actions
Last thing left is to use our new upload function in our server action. Since I like to upload images in single format and have some more control over them, I will additionally use sharp library. For file name, I'll generate some random string using nanoid:
- Nano ID Collision Calculator
-
Why we chose Bun
Our API is in node. And God, how I suffered to import nanoid in an esmodule project. I had to vendor it, since using a previous version was not ideal. With bun, we can no longer worry about that. Just import what you need and done.
-
UUIDv7 is coming in PostgreSQL 17
No thread about UUID is complete without a plug for NanoID! https://github.com/ai/nanoid/blob/main/README.md
-
Building a File Storage With Next.js, PostgreSQL, and Minio S3
Generate a unique file name using the nanoid library.
-
Building a Multi-Tenant App with FastAPI, SQLModel, and PropelAuth
The syntax should read similar to SQL itself. We’re using a Python port of nanoid to generate our IDs. There’s only one thing missing… how do we actually create the table?
-
You Don't Need UUID
I usually go for Nano Id for new projects https://github.com/ai/nanoid
-
Enhance Your Web Apps: Best JS Libraries 🔧
Nano ID
-
Analyzing New Unique Identifier Formats (UUIDv6, UUIDv7, and UUIDv8) (2022)
In another comment I mentioned I use nanoid in my projects now. It has a default space of 64^21 and has an a page where you can play with key lengths and alphabet sizes and see the probability of collisions :
https://zelark.github.io/nano-id-cc/
At the default 64 character alphabet with a 21 character key length it would take ~41 million years in order to have a 1% probability of at least one collision if you generated 1000 ids per second.
-
How I use Nano ID in Rails
Using randomly generated IDs like Nano ID could be a good alternative, however, as a developer, we must understand what Nano ID really does in our application. Defining the number of characters in the generated IDs is also important, to help with that Nano ID has a Collision Calculator to give us how many years in order to have a 1% probability of collision.
What are some alternatives?
Tweepy - Twitter for Python!
snowflake - Snowflake is a network service for generating unique ID numbers at high scale with some simple guarantees.
ish - Linux shell for iOS
ksuid - K-Sortable Globally Unique IDs
tweets-docker-pipeline - Docker pipeline for streaming tweets and their sentiment score to a Slack channel
typedorm - Strongly typed ORM for DynamoDB - Built with the single-table-design pattern in mind.
Visual Studio Code - Visual Studio Code
pg_random_id - Provides pseudo-random IDs in Postgresql databases
azure-docs - Open source documentation of Microsoft Azure
jest - Delightful JavaScript Testing.
azure-storage-node - Microsoft Azure Storage SDK for Node.js
Numeral-js - A javascript library for formatting and manipulating numbers.