Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allister-grange/startertab
A custom new tab page, keeping all the best info handy (a work in progress, feedback is invaluable)
https://github.com/allister-grange/startertab
gmail nextjs outlook react spotify strava twitter
Last synced: 6 days ago
JSON representation
A custom new tab page, keeping all the best info handy (a work in progress, feedback is invaluable)
- Host: GitHub
- URL: https://github.com/allister-grange/startertab
- Owner: allister-grange
- License: gpl-3.0
- Created: 2021-12-13T05:47:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T04:52:06.000Z (7 days ago)
- Last Synced: 2024-10-29T05:31:20.487Z (7 days ago)
- Topics: gmail, nextjs, outlook, react, spotify, strava, twitter
- Language: TypeScript
- Homepage: https://startertab.com
- Size: 83.4 MB
- Stars: 388
- Watchers: 2
- Forks: 36
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-linux-ricing - Starter Tab
- awesome-startpage - startertab - A custom new tab page, keeping all the best info handy. (Projects / Hosted)
README
# [Starter Tab](https://startertab.com/)
https://github.com/allister-grange/startertab/assets/18430086/e8173522-c566-4cec-a894-061925c8c4ff
I was getting sick of the same old new tab page. I wanted to have a dashboard for everything I reach for in my typical workday, so I built it.
StarterTab is here to revolutionize the way you start your day on the internet. With a completely customizable webapp to replace your new tab homepage, you can personalize your online experience like never before.
You can install the [chrome extension here](https://chrome.google.com/webstore/detail/custom-new-tab-url/mmjbdbjnoablegbkcklggeknkfcjkjia?hl=en), or the [firefox extension here](https://addons.mozilla.org/en-US/firefox/addon/startertab-your-next-new-tab/) and make StarterTab the site that opens up on every one of your new tabs.
## Tech
Local storage is being used for storing all of your customizations, meaning you own your data! All of the settings, tokens and themes sit on your own browser. Some may call it laziness that I don't want to maintain a database, you could also see it as me helping prevent your data being in yet another cloud service.
Written in NextJS with CharkaUI. The frontend and functions are hosted on Vercel, the database on Neon.
## Current API Integrations
- [Strava API](https://developers.strava.com/docs/reference/) for my swims/runs for the week
- [Spotify API](https://developer.spotify.com/documentation/web-api/) for Spotify controls and your favorite artists
- [Weather API](https://www.weatherapi.com/) for the weather data for my city
- [Hacker News](https://hackernews.api-docs.io/) for the top ask posts for the day
- [Stocks API](https://finnhub.io/docs/api) for the stick ticker info
- [Twitter API](https://developer.twitter.com/en/docs/twitter-api) for your feed
- [Google Calendar API](https://developers.google.com/calendar/api/guides/overview) for your Google Calendar
- [Microsoft Outlook Calendar API](https://learn.microsoft.com/en-us/graph/outlook-calendar-concept-overview) for your Outlook calendar## Future API Integrations Ideas
- Public transport provider
## Getting Started
### 1. Clone the repository and install dependencies
```
git clone https://github.com/allister-grange/startertab.git
cd startertab
yarn install
```### 2. Configure your local environment
Copy the `.env.local.example` file in this directory to `.env.local` (which will be ignored by Git):
```
cp .env.local.example .env.local
```Add details for all providers you want to use:
```
STRAVA_CLIENT_ID=
STRAVA_SECRET=
WEATHERAPI_TOKEN=
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
FINNHUB_SECRET=
TWITTER_CLIENT_ID=
TWITTER_CLIENT_SECRET=
TWITTER_CODE_CHALLENGE_KEY=
TOKEN_ENCRYPT_KEY=
OUTLOOK_CLIENT_ID=
OUTLOOK_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
ANALYTICS_ENABLED=
```### 3. Start the application
To run your startertab locally, use:
```
yarn dev
```To run it in production mode, use:
```
yarn build && yarn start
```## Creating a New Tile
1. Create your new Tile component in the `src/components/tiles` folder. Make sure to accept a 'tileId' prop, this enables you to change the color of the text based off the settings changed in the sidebar.
```js
type PageProps = {
tileId: number;
};export const YourNewTile: React.FC = ({ tileId }) => {
const color = `var(--text-color-${tileId})`;return ();
}
```2. Add your tile type to the TileType in `src/types/settings.ts`.
3. Add your new tile into the corresponding sizes you want available for your tile in the switch statement for `tileSize` in `src/components/sidebar/OptionsForTileTypeSelect.tsx`
4. Add your tile type to the switch statement for the `tileType` in `src/components/TileContainer.tsx`**if you need persistent storage**
1. Add your new value into the `TileSettings` type within `src/types/settings.ts`
2. Create a new selector in recoil for your new setting value in `src/recoil/UserSettingsSelectors.tsx`
3. Use that selector within your tileselector example:
```ts
export const imageFilePathSelector = createTilePropertySelector(
"imageFilePath",
(theme, newValue) => {
theme.imageFilePath = newValue;
}
);
```using that selector in a tile:
```ts
const [fileValue, setFileValue] = useRecoilState(
imageFilePathSelector (tileId)
) as [string | undefined, SetterOrUpdater];
```**creating a sidebar menu item for options**
1. Add your new option to the `OptionType` in `src/types/settings.ts`
2. Add your option into the sizes that pertain to it in `src/helpers/sideBarOptions.ts`
3. Edit the `src/components/sidebar/SettingOptionContainer.tsx` to include the new option type